简体   繁体   中英

In Windows Phone 8, is it possible to determine source app when Launcher.LaunchUriAsync was called from that source application?

My windows phone 8 app is associated with an URI scheme ( myapp: ). When other apps use Launcher.LaunchUriAsync ( http://msdn.microsoft.com/library/windows/apps/hh701476 ) and call my uri scheme, is it possible to determine the name or namespace app that initiated the launch?

I have looked around and have not found an official way to do it. Any help is appreciated, thank you!

There's no way to know which apps launched yours. One workaround is to educate developers launching your app and ask them to add a referrer parameter:

myapp://yourUrl?referrer=NameOfTheApp

Still, you won't be able to know the name of the app is the caller omits the parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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