Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17171] iOS: Support settings link in iOS Permission Prompts

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-04-10T17:27:04.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
LabelssupportTeam
ReporterEduardo Gomez
AssigneeUnknown
Created2014-06-17T16:00:57.000+0000
Updated2018-08-06T17:49:31.000+0000

Description

Feature Request

To support settings link in iOS Permission Prompts on iOS 7.1 & 8

Description

In iOS 7.1 and iOS 8 there is some functionality for permission dialogs which we would like to take advantage of in the future if its possible. In the native Apple Maps the first time the user clicks on the [My Location] button they are prompted with the normal location access dialog. If the user clicks [Don't Allow] the prompt goes away as expected. If the user then clicks the [My Location] button again they are prompted with a new second dialog which has 2 options [Settings | Cancel] If the user clicks on [Settings] they are then taken to the Locations Services page where they can enable or disable location access for the Apple Maps application. Can Titanium add support for the settings link as shown in the second dialog or if that is controlled by iOS so it cannot be accessed.

Comments

  1. Srikanth Sombhatla 2015-11-16

    -We can achieve API parity with Android as well since Android 6.0 has similar app permissions. But direct launching of aggregated permission page as in iOS is not available. User will be launched to app settings page and one click away from permissions.- Can be down with [~fokkezb] solution.
  2. Fokke Zandbergen 2015-11-17

    You can do so via:
       	if (OS_IOS) {
       		Ti.Platform.openURL('app-settings:');
       	}
       
       	if (OS_ANDROID) {
       		var intent = Ti.Android.createIntent({
       			action: 'android.settings.APPLICATION_SETTINGS',
       		});
       		intent.addFlags(Ti.Android.FLAG_ACTIVITY_NEW_TASK);
       		Ti.Android.currentActivity.startActivity(intent);
       	}
       
    Haven't managed to get Android to open the settings for the specific app
  3. Hans Knöchel 2017-04-10

    Opening the settings via openURL and displaying the location prompt are already supported since a while now. Resolving as fixed based on that.
  4. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source