我正在编写代码,以从我的a = OS.objects.get(pk=3) # This is a Windows instance
a.<magic>.built_in_antivirus
True
b = OS.objects.get(pk=14) # This is a Linux instance
b.<magic>.desktop_environment
和android
的本机应用程序中启动其他应用程序。
使用ios
形式的本机反应我可以重定向到Linking
,但是
如果已安装App,该如何启动?
*我正在从服务器获取应用程序列表
Play Store/App Store
如果安装了Linking.openURL('https://play.google.com/store/apps/details?id=com.example.myapp&hl=en')
,是否可以以其他方式启动app
?
答案 0 :(得分:1)
经过多次搜索,我发现没有android
的{{1}}的替代方法是使用本机模块react-native-intent-launcher使用deep link URL
启动另一个应用程序。
您可以在package-name
中调用本机函数startActivity
来对react-native
进行操作,而这只能通过android Intent
来解决。
正在寻找没有native code
的{{1}}解决方案,如果有潜在客户,请在此处更新
一旦发现我会在这里更新
谢谢
答案 1 :(得分:0)
您的其他应用程序需要处理深度链接。如果还不是这种情况,请看看here for Android和here for iOS。
这将使您拥有自己的应用程序的URL方案,例如testapp://example
然后,您可以简单地使用Linking API,但是不必打开HTTP URL,而可以使用之前定义的Deeplink URL方案。
Linking.openURL('testapp://example');