2017-06-16 28 views
2

我想從我的應用程序打開ios設置應用程序。設置目標是[settings => notification => myapp]。打開&關閉推送通知。通過IOS中的Linking.openURL反應本機打開設置

有一些關於如何鏈接到設置的文檔,但我不知道如何打開深層鏈接。 (通知=> myapp)。

我該怎麼做?

回答

7

您可以深層鏈接引用設置的指數,像這樣:

Linking.openURL('app-settings:') 

以上方法僅適用於IOS

+0

如何訪問更深層?到'notification => myapp'。 .that是我的問題... – Juntae

+0

你試過我的代碼嗎? – Arunkumar

+0

此鏈接對您有所幫助https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e – Arunkumar