[英]How can I launch google photos app from within Xamarin.Forms?
When using使用时
Launcher.OpenAsync("http://maps.google.com")
the google maps application opens beautifully but with谷歌地图应用程序打开很漂亮,但
Launcher.OpenAsync("http://photos.google.com")
it opens the application in browser.它在浏览器中打开应用程序。
According to the official docs ,根据官方文档,
the
OpenAsync(String)
Launches the app specified by the uri schemeOpenAsync(String)
启动 uri 方案指定的应用程序
So if you set the url like below it'll start the google photos application.I tested it on my side and it does open the application.因此,如果您像下面这样设置 url,它将启动 google photos 应用程序。我在我这边对其进行了测试,它确实打开了应用程序。
await Launcher.OpenAsync("http://photos.google.com");
Update:更新:
If you want to launch the app respectively, please try use the following format of links:如果您想分别启动应用程序,请尝试使用以下格式的链接:
for instagram
instagram://user?username=yourUserName
for twitter
twitter://userName?user_id=userId
for facebook
fb://page/page_id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.