I'm developing winrt (or windows store) application. I would like to navigate to another (installed) application, but I didn't find solution for it. E.g. I have twitter section with tweets and after clicking on some tweet user should be redirected to windows store twitter application directly to clicked tweet. I read How to launch the default app for a URI but there is not what I need. Do you have some experience with this issue please?
Related
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 scheme
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.
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
I am following this https://csharp.christiannagel.com/2016/11/15/deeplinking/ to support deep-linking in my UWP app.
Everything works fine if I click the link from some other app(my UWP app is automatically launched on the click of the link) but if I click the link from the browser, it stays on the browser itself.
I need a way to navigate to my app from the browser just like it is done in apps like Microsoft Teams etc
Microsoft teams example:-
user receives email
when the user clicks on the link
How do I make my Universal Application launch an another application like Twitter?
For example, opening Twitter and make it show a given profile (#somebody).
I came across this webpage while trying to launch an external windows store app through a webpage.
This was very handy to get it done.
https://comentsys.wordpress.com/2015/05/13/windows-10-universal-windows-platform-web-browser/
I would like my app to link to other installed apps on the users phone, such as facebook. Once they click the icon/button it should switch from my app to the selected app, the code should check that app is on their phone. If it is open the app, if it is not open the store page, for that app so they can download it.
Is there a way to link or to navigate to the app? or store? (c# and XAML).
Thank you in advance for your help :)
All you need is URI for the app. It will open the app for you and if the app is not available. It will automatically take the user to the store so that he can download it. This will only work if that app has a Uri available.
Here and Here is a list of apps that support Uri scheme
For example, You can open Facebook App by this code
Windows.System.Launcher.LaunchUriAsync(new Uri("fb:"));
I am trying to embed Facebook comment box in a windows 8 store app. Is it possible to directly integrate the comment box or are there any other alternative solutions?
What I am trying now >>>> create a web page and add the Facebook comment box to webpage. Then access the webpage that I created through a Webview control. But when I try to login to Facebook using the comment box's link, it will not open the login dialogue inside the webview but it opens the browser where my windows 8 Store app pulled to the background.
I would recommend that you use the Facebook API, as recommended by another SO user answering a similar question
There is a Facebook API for Windows 8
You can find an example on Github here
I haven't tried this API, but did a WPF app using a similar API and it's usually straight forward.
If you would like to, and I know you didn't ask about that - this is just a tip, there is a web authentication broker in the WinRT API's to enable single sign on (SSO) connections to OAuth providers like Facebook etc.
You can find a sample here
Hope this helps, best of luck.