Reputation: 1167
I'm desperate.
I've build an application on Ionic4 and iOS and Android and some Ionic native libraries.
I'm using the Geolocation
Native API and it's working perfectly on iOS.
My problem is with Android. If I ran ionic cordova run android --livereload
the location works perfectly but if I build --prod, nothing happens. It doesn't prompt for the permission to use your location, nothing... It doesn't even show the loading spinner. Has someone experienced something similar? I've also tested using the GoogleMaps API, no success.
Thanks
Upvotes: 0
Views: 92
Reputation: 557
Could you please give some more details regarding your issue?
Also as a quick workaround could you please by wrapping your geolocation code inside this.platform.ready()
listner, for better debugging of your issue.
Upvotes: 1