简体   繁体   English

mvvmcross,如何使用参数从另一个应用程序以编程方式打开另一个应用程序

[英]mvvmcross, how to open another app programatically from another app with parameter

I using url scheme to open my second app from my first app, I have some parameters that are passed from first app and I read them at OPENURL method in my second app. 我使用url方案从第一个应用程序打开第二个应用程序,我从第一个应用程序传递了一些参数,并在第二个应用程序中通过OPENURL方法读取了它们。

But the problem is, OPENURL is called after FinishedLaunching. 但是问题是,在FinishedLaunching之后调用OPENURL。 So I could not use paramaters that I pass from my first app to open second app using those paramaters. 因此,我无法使用从我的第一个应用程序传递来的参数来使用这些参数打开第二个应用程序。

Can any one suggest any best practices how to do it? 有人可以建议任何最佳做法吗? I am open to any ideas. 我愿意接受任何想法。

Regards Div 关于Div

A great way of doing this is using the App links standard. 一种很好的方法是使用应用链接标准。 There is a Xamarin component called Rivets which will allow you to integrate this. 有一个名为Rivets的Xamarin组件,它允许您集成它。

It does mean this app you are wanting to link to needs to have App links set up. 这确实意味着您要链接到的应用程序需要设置应用程序链接。

Hope this helps... 希望这可以帮助...

Rivets 铆钉

App Links 应用程式连结

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM