I am using google map direction api and my api key is on billing mode.When I try to use this map API..It works only on one device(When I installed it for the first time). I am unable to use it on any other device.My map becomes blank. Free trial api's works fine!!
Asked
Active
Viewed 229 times
0
-
issue with your api key – hasan_shaikh Apr 27 '18 at 10:02
-
Possible duplicate of :- https://stackoverflow.com/a/14761878/7319704 – Abhinav Gupta Apr 27 '18 at 10:02
-
free trial works .. – Hindavi Apr 27 '18 at 10:15
2 Answers
1
Please give the permissions with your manifest. First, in the following you need to replace the package name with your package.
<permission
android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
per your package name, should be --
<permission
android:name="com.example.barcodelibrary.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.example.barcodelibrary.permission.MAPS_RECEIVE"/>
Finally, you seem to be missing the following permissions.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
I hope it will work for you.

Dnyaneshwar Panchal
- 444
- 4
- 13
0
There are two possible
1.Please change your api key and check it.
2.Otherwise, you have to build an apk from which android studio id you give to get api key from android google map.

Agnel John Britto
- 25
- 9