Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19989] API to open app's page in system settings

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2016-01-15T08:24:51.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
Componentsn/a
Labelsn/a
ReporterSrikanth Sombhatla
AssigneeSrikanth Sombhatla
Created2015-11-16T06:51:05.000+0000
Updated2016-01-15T08:24:56.000+0000

Description

Applicable to above iOS 8 and Android 6.0 and above. Provide an api via Ti.App module to open the application's page in system settings. This is very helpful for the app to present permissions page in case User wants to revisit his decision.

Comments

  1. Fokke Zandbergen 2015-11-17

    You can use:
       	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 found a way to open the settings for the specific app on Android though.
  2. Srikanth Sombhatla 2016-01-14

  3. Fokke Zandbergen 2016-01-15

    Reopening to close as duplicate

JSON Source