我想從我的應用程序打開ios設置應用程序。設置目標是[settings => notification => myapp]。打開&關閉推送通知。通過IOS中的Linking.openURL反應本機打開設置
有一些關於如何鏈接到設置的文檔,但我不知道如何打開深層鏈接。 (通知=> myapp)。
我該怎麼做?
我想從我的應用程序打開ios設置應用程序。設置目標是[settings => notification => myapp]。打開&關閉推送通知。通過IOS中的Linking.openURL反應本機打開設置
有一些關於如何鏈接到設置的文檔,但我不知道如何打開深層鏈接。 (通知=> myapp)。
我該怎麼做?
您可以深層鏈接引用設置的指數,像這樣:
Linking.openURL('app-settings:')
以上方法僅適用於IOS
訪問特定設置的屏幕,試試這個: Linking.openURL("App-Prefs:root=WIFI");
鏈接到app-settings
只打開設置爲 參考:iOS Launching Settings -> Restrictions URL Scheme(請注意prefs
在iOS 6中更改爲App-Prefs
)
如何訪問更深層?到'notification => myapp'。 .that是我的問題... – Juntae
你試過我的代碼嗎? – Arunkumar
此鏈接對您有所幫助https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e – Arunkumar