I want to open ios setting app from my app. the settings destination is [ settings => notification => myapp ]. to turn on & turn off push notification.
There are so
Since React Native 0.60 to open App settings use:
Linking.openSettings()
try this
Linking.openURL('app-settings://notification/myapp')
You can deep-link referencing the settings's index like so:
Linking.openURL('app-settings:')
Above method only for IOS
Try this one for Open Specific System URL - Linking.openURL('App-Prefs:{3}')
Use Linking.openURL
. For example, below is how to check and open Health app on iOS
import { Linking } from 'react-native'
async goToSettings() {
const healthAppUrl = 'x-apple-health://'
const canOpenHealthApp = await Linking.canOpenURL(healthAppUrl)
if (canOpenHealthApp) {
Linking.openURL(healthAppUrl)
} else {
Linking.openURL('app-settings:')
}
}
To access specific settings screens, try this:
Linking.openURL("App-Prefs:root=WIFI");
Linking to app-settings
only opens the settings for the
Reference: iOS Launching Settings -> Restrictions URL Scheme (note that prefs
changed to App-Prefs
in iOS 6)