Windows Phone 8.1: Launch App for specific URL - windows-phone-8.1

Is it possible to register an app to a specific URL (like http://dev.stack.com)?
If I click this URL as link in an email client, the app should start.
thanks

Not possible with the current SDK.

Related

Inside a Windows Store 8.1 app can i share a link to a web address which allows a user to download a .exe file?

My requirement is to associate a .exe file with a Windows Store 8.1 app. Is it acceptable to give a link through about section of the store app to a web address from where the user can download the .exe file. Will there be any problem with the certification process. Please suggest any suitable alternative if possible.
There is nothing in the Windows Store Policies that says otherwise. You can't attempt to run the *.exe file programmatically of course, but you should be fine otherwise.
Since the app is network-capable, remember to add a Privacy Policy (see here) detailing whether any user information is sent to an external website/server.

Check if any app can handle URI scheme

I'm creating a Windows Phone 8 app (Store apps) in which I will have some links for the user to open other apps.
My goal is to hide or show only the links for which I have apps that can handle them.
For instance, I have a link for
mymoneyapp://user=123
and another for
mymusic://user=123
So, if I have an app that can handle the mymoneyapp scheme I want the link to show if not then I hide it.
The only why I found to test this is using
LauncherOptions options = LauncherOptions();
options.FallbackUri = new Uri("http://myfallbackpage.com");
Launcher.LauncherUriAsync(new Uri("mymoneyapp://user=123"), options);
But in this case I get my fallback Uri launched if no app can handle that schema.
Is there any way just to test if an app can launch it without actually do it?
There is no API for this on Windows Phone 8. Windows 10 adds Launcher.QueryUriSupportAsync to allow checking if there is a handler before launching it.
https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.queryurisupportasync.aspx

Auto-launching DailyMotion Windows Phone from another App

I have read about Auto-launching apps from another app on Windows Phone. I have a app that shows some videos, these videos are mainly from DailyMotion. Now my Question is if there is any possibility to check, if DailyMotion App is installed on my Phone, than open this video in this DailyMotion app instead of browser.
You can use custom URL to launch the dailymotion app. For example, using the line of code
string dailyUrl = "dailymotion://myurl";
Windows.System.Launcher.LaunchUriAsync(new Uri(dailyUrl));
It will automatically open the dailymotion app if it is installed on the phone, but otherwise it will probably perform nothing. So with the previous answer explaining how you might check if the app is installed, and this piece of code, you might be able to perform what you need :)
You cannot get the list of applications that are installed on the Windows Phone that are published by someone other than the publisher of the calling application.
There is a way, however, to get the list of applications that are installed on the device and are originating from the publisher of the caller ape.
Have a look over here
IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);

Launching windows phone 8 app from webpage

I added a uri association to my WMAppManifest.xml file in my Windows Phone 8 project and I'm able to successfully launch my app from within another app using LaunchUriAsync. I've also registered the same protocol in my Windows 8 project.
// windows phone 8 uri map
<Extensions>
<Protocol Name="myprotocol" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>
On Windows 8, I am able to launch the app with by a simple hyperlink using my given protocol "myprotocol:".
On Windows Phone 8, I tried typing the protocol in the browser location bar, but I get an IE error saying this type of address is not supported. This makes me concerned I won't be able to launch my app from a web page simply by using my app specific protocol in the hyperlink.
Does anybody have any experience with this? Am I just paranoid?
fyi: here's the info on URI Associations in WP8
sometimes the simple answer is often overlooked.
Yes, everything is in place to function correctly. It appears to only be a restriction with IE Mobile.
I set up a web page on my server with a link click me and was able to successfully launch my app view IE Mobile on the emulator.

How to open links using a chrome app? (Similar to how Android prompts you on what app you want to use to handle certain URLs)

I have a chrome app which displays data pulled from website A.
If a user has the app installed, and is on website A, how can I make the chrome app detect that the user is on website A and then prompt the user to open website A in the chrome app?
I'm trying to mimic how Android does this if you try to open a Google Play Store URL for example.
Thanks in advance,
Dimitry
Your app needs to define a webRequest (part of permissions) in the manifest file. You might use the blocking response to then handle all the stuff yourself.