Solutons Lounge

How to restirct google mapi api key for android app built in flutter. Facing error. How to fix?


I am using package of google maps and google place. When I am restricting my maps api key to android apps by the package name and SHA1 key, the maps are not loading and the search for places which uses the auto complete for google places is not working and not showing further suggestions. How to fix??

packages I used with version number:

google_place: ^0.4.3
google_maps_flutter: ^2.0.9
google_maps_webservice: ^0.0.20-nullsafety.2

I have visited some stack overflow solution that is saying to adding headers as x-android-package and SHA1 keys but I am using packages which in background is calling the http methods. so how can I add those?

Still am unable to figure out any processes . If anyone knows how to make it restricted properly do let me know. Because its important for my project.



Source link

Exit mobile version