Geolocation Plugin not working on Oppo smartphones

We have built many ionic applications and we have deployed to a lot of clients. From a year and half we are observing that when our applications are used by Oppo users, they give us feedback that the location capturing isn’t happening. I believe it’s the plugin issue, since the device is able to render Google maps and navigations. The device fails to capture when it’s our ionic app that is being used. Any heads up will be greatly appreciated. Recently we found some users using Micromax phones also facing similar issue.

The same works on all other devices. We have tested on Motorolla, Lenovo, Samsung, Oneplus, MI, etc.

#ngcordova

Thanks
Shreyas

How are you requesting Geolocation? Using any plugins?

Yes. cordova-plugin-geolocation .

Hmm seems you are not alone: http://stackoverflow.com/questions/42061649/geolocation-html5-not-working-for-oppo-and-honor-android-phones

Does geolocation work in other apps?

Shreyas, your hunch about the issue being plugin-related is a good one. Here are some potential causes for the location capture issues you’re facing specifically with Oppo and Micromax phones, while it works on others:

  1. Customised Android OS: Oppo and Micromax heavily customize their Android builds. These customizations might interfere with the location services used by your Ionic app’s plugin.
  2. Plugin Issues: The plugin you’re using for location capture might have compatibility issues with Oppo and Micromax’s custom OS versions.
  3. Location Permissions: Double-check if your app properly requests and receives location permissions on Oppo and Micromax devices. Some custom OSes might have stricter permission management.