我正试着从我的react原生应用程序中打开viber应用程序,但它不工作。我的错误越来越小。
Error: Unable to open URL: viber://contact?number=%2Bxxxxxxxxxxxx.
Add viber to LSApplicationQueriesSchemes in your Info.plist.我已经在我的Info.plist中列出了viber
<key>LSApplicationQueriesSchemes</key>
<string>viber://</string>这是我尝试打开viber的代码。
Linking
.canOpenURL('viber://contact?number=%2Bxxxxxxxx')
.then(res => {
console.log("Viber response->",res)
if(res) {
Linking.openURL('viber://contact?number=%2Bxxxxxxxxx')
}
})
.catch(err => {
console.log("Viber Error:", err)
})发布于 2020-08-12 18:54:51
这应该是可行的
<key>LSApplicationQueriesSchemes</key>
<array>
<string>viber</string>
</array>https://stackoverflow.com/questions/61913912
复制相似问题