Reputation: 8174
I am trying to open a youtube channel in youtube app in xamarin forms. I am able to open the specific facebook page and twitter page by writing these lines of code:
Device.OpenUri(new Uri("fb://page/page_id"));
Device.OpenUri(new Uri("twitter://user?user_id=userid"));
I found this for android and I tried this:
Device.OpenUri(new Uri("vnd.youtube://channel_id"));
But I am getting 400 network error after being launched in youtube application. Is there another way to open the youtube profile/channel.
Upvotes: 0
Views: 1172
Reputation: 8174
Answering to my question:
Device.OpenUri(new Uri("vnd.youtube://user/XamarinVideos"));
This directly launch the youtube channel in the youtube app if installed in device.
Upvotes: 2