I am working on display near stores based on device location.I have enable the permission but unable to turn the location on.
How to enable location service automatically whenever i entered into my application if in off mode.
Whether it can achieved by write a platform channel to enable location on?
Sorry but in Android, you can't turn on the location via code. You can show user a System Dialog and allow them to enable it.
Even Google maps can't turn on location off and on by itself. It asks user to do so.
PS: I don't know about iOS, but I think there also you can't turn on/off by yourself.