Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Complete widget not showing on release apk even with SHA1 registered #172

Open
ghost opened this issue Sep 7, 2021 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Sep 7, 2021

Hi Guys,

So i started using the auto complete widget and it's working well on debug,
i can search and select the location and it returns me the expected result,
but when i build the apk --release
and tried it on my phone,
the page just show me a blank screen,
both the search and maps are not showing
but when i run the debug version of apk on the same device
it works,
and if i comment the code for the autocomplete widget,
then the maps will also show just fine,
anyone have any idea what might be wrong?

i haven't uploaded the app to google console yet

(refer to screenshot below)

Expected Result on release:
image

What actually happened:
Screenshot_20210907-153315

code from the app:
Container( color: Colors.transparent, child: TextButton.icon( onPressed: () async { Prediction? p = await PlacesAutocomplete.show( context: context, apiKey: google_geocode_api, mode: Mode.overlay, offset: 0, radius: 10000000, strictbounds: false, region: "sgp", language: "en", types: [], components: [ new Component(Component.country, "sgp") ], onError: (val) => print(val)); if(p != null) displayPrediction(p); }, icon: Icon(Icons.search), label: Text('Search', style: TextStyle(fontSize: 18))), ),

setting on google api console:
image

sha1 from signinReport for release:
image

any help is appreciated, thanks guys

@MatteoAntolini
Copy link

Same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant