我目前正在尝试在Android的React Native中添加一个链接到Teamviewer Host应用的按钮。无论我尝试使用什么URL,最终都会出现以下错误:
openTeamviewer() {
Linking.openURL('teamviewerhost://open')
Error: Could not open URL 'teamviewerhost://open': No Activity found to handle Intent { act=android.intent.action.VIEW dat=teamviewer10://open flg=0x10000000 }
有人知道Teamviewer主机的正确网址吗?
答案 0 :(得分:0)
最终使用react-native-send-intent,这是在Android上从React Native打开另一个应用程序的简单方法:
func foo(_ n: String ...) -> String {
return n.joined(separator: ", ")
}
func sum(_ numbers:Int ...) -> Int {
return numbers.reduce(0, +)
}
let arrInt = [3, 5, 10]
apply(sum, with: arrInt) // 18
let arrString = ["apple", "peer", "banana"]
apply(foo, with: arrString) // "apple, peer, banana"