How can I launch google photos app from within Xamarin.Forms? - c#

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

Related

Uri Scheme for Movie in the Microsoft Store

I'm developing a Windows Store app. In the app I'm using the Groove SDK to query the Microsoft Store for movie titles. I can get the movie I'm looking for along with all of it's meta data. How can I launch the Windows Store app to show the user the same movie as available from Microsoft?
This has been very confusing. I have a Surface with Windows 8.1. It comes with the Windows Store app, a Music app and a Video app. The Video app says "xbox video." I've read that it has now changed to "Groove." I've look for documentation on how to link content but have found nothing.
the Groove SDK APIs will return deep links to content. Launch this deep link using Windows API
Launcher.LaunchUriAsync(new Uri(myGrooveDeepLink));
Notice that you will have to add a "target=app" parameter to your uri to launch the app instead of the web site.
https://msdn.microsoft.com/en-us/library/dn546675.aspx

Universal App: Open Twitter application from my app

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/

Windows 8 phone app linking to other downloaded applications and store

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:"));

Winrt app - navigate to another application

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?

integrate facebook comment box to xaml (windows 8 store apps) C#

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.

Categories

Resources