I am developing a application in Ionic 3, which requires background geolocation. I am using this(https://github.com/mauron85/cordova-plugin-background-geolocation) plug-in. Which is currently working.
When the app starts the user is prompted to choose the permissions (Never, While in use or Always). If the user chooses Never or Always the application behaves as it should, but when i choose ‘While in use’ the plugin still executes the code and a blue bar glows on the top of the iPhone saying ‘Your app is actively using your location’.
How can i prevent the application to run this code, when the user has chosen this permissions options?