dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
534 stars 354 forks source link

switchToSettings() in iOS #475

Closed MrPerfect0 closed 1 year ago

MrPerfect0 commented 1 year ago

I used switchtosettings() function for my location service enhancement but it open/redirect to the main settings page instead of app setting page in some ios devices. eg. Iphone 11 Pro.

Is tht anything I need to take note? because as i knw its a single line code which all device should open the app settings page.

dpa99c commented 1 year ago

The plugin's iOS implementation of switchToSettings() invokes the standard iOS API method UIApplicationOpenSettingsURLString which deep links to the app settings page. There is no other iOS API method available to perform this operation so if it is misbehaving this is due to its implementation in the iOS SDK which this plugin has no control over.