问题描述
我想打开手机上安装的Microsoft团队和Yammer应用程序
Linking
.openURL('vnd.youtube://') //works
.openURL('skype://') //works
.openURL('facebook://') //works
.openURL('msteams://') // does not work
.openURL('microsoftTeams://') // does not work
.openURL('microsoft-teams://') // does not work
这是适用于youtube的代码示例,Microsoft团队和yammers等同于什么?
需要帮助!请:(
解决方法
如果您希望自己打开其他应用程序,则可以通过以下方法更轻松地使用意图
https://github.com/lucasferreira/react-native-send-intent
SendIntentAndroid.openApp("com.google.android.gm").then(wasOpened => {});
// You can also specify arbitrary intent extras to be passed to the app
SendIntentAndroid.openApp("com.mycorp.myapp",{
"com.mycorp.myapp.reason": "just because","com.mycorp.myapp.data": "must be a string",}).then(wasOpened => {});
,
我能够找到有关创建MS团队深层链接的以下参考:https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links
对于Yammer,请检查以下一项:https://developer.yammer.com/docs/ios-and-android