Home > Back-end >  Map not showing in APK but showing in Emulator
Map not showing in APK but showing in Emulator

Time:11-06

Guys can anyone solve my problem I have created my new Flutter app but the problem is map is not showing on my android device but it will show on the emulator I have search many times this issue on google but I never found that

CodePudding user response:

On the emulator, you are compiling in debug mode. Which gives the app a lot of permission. In the release mode, you have to add the permissions. I think you should check your Android manifest file for missing permissions. Maybe these can be related to your problem: INTERNET ACCESS_FINE_LOCATION ACCESS_COARSE_LOCATION

CodePudding user response:

Showing of maps corresponds to API key added in the project and SHA of signing certificate added on Google API console for that API Key.

Things to check:

1.) Check if there is separate file from where your API key is fetched on release build and check if there is value added on it.

2.) Add the SHA of signing certificate on Google API Console against above API key.

  • Related