How to use the expo-intent-launcher.ACTION_APPLICATION_DETAILS_SETTINGS function in expo-intent-launcher

To help you get started, we’ve selected a few expo-intent-launcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / IntentLauncherScreen.tsx View on Github external
render() {
    return (
      
        {this.renderSettingsLink(
          'Location Settings',
          IntentLauncher.ACTION_LOCATION_SOURCE_SETTINGS
        )}

        {this.renderSettingsLink(
          'Wireless Settings',
          IntentLauncher.ACTION_WIRELESS_SETTINGS
        )}

        {this.renderSettingsLink(
          'Application Details for Expo Client',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
          {
            data: 'package:host.exp.exponent',
          }
        )}

        {this.renderSettingsLink(
          'Application Details for Play Store',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
          {
            data: 'package:com.android.vending',
          }
        )}

        {this.renderSettingsLink(
          'Application Details for not existing package',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
github expo / expo / apps / native-component-list / src / screens / IntentLauncherScreen.tsx View on Github external
{this.renderSettingsLink(
          'Wireless Settings',
          IntentLauncher.ACTION_WIRELESS_SETTINGS
        )}

        {this.renderSettingsLink(
          'Application Details for Expo Client',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
          {
            data: 'package:host.exp.exponent',
          }
        )}

        {this.renderSettingsLink(
          'Application Details for Play Store',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
          {
            data: 'package:com.android.vending',
          }
        )}

        {this.renderSettingsLink(
          'Application Details for not existing package',
          IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
          {
            data: 'package:package.name.that.doesnt.exist',
          }
        )}
      
    );
  }
}
github expo / expo / home / utils / PermissionUtils.js View on Github external
onPress: async () => {
              if (Platform.OS === 'android') {
                const { manifest: { android: { package: packageName } = {} } = {} } = Constants;
                try {
                  await IntentLauncher.startActivityAsync(
                    IntentLauncher.ACTION_APPLICATION_DETAILS_SETTINGS,
                    { data: 'package:' + packageName }
                  );
                } catch (error) {
                  alert(`Couldn't open settings automatically.`);
                }
              } else {
                await Linking.openURL('app-settings:');
              }
              resolve(false);
            },
          },