Reputation: 60
Well, when I run my app via android studio it works normally, if I install it from play market it doesn't work, but as soon as I launch android studio and it finds my emulator it starts working normally. I bet the problem is with my manifest.
P.S. Application is using GoogleMaps and MS Azure Simple App.
Here is my AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<!-- Needed only if your app targets Android 5.0 (API level 21) or higher. -->
<uses-feature android:name="android.hardware.location.gps" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="My_APIKEY_is_actually_here:)" />
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Upvotes: 0
Views: 74
Reputation: 32016
You probably have not added the SHA-1 fingerprint of your release key to your Google maps API key. Follow the instructions on getting your SHA-1 fingerprints here -- https://developers.google.com/places/android-api/signup. Check in the API console to make sure you've added your release key in addition to your debug key.
Upvotes: 2