question

JassimAlRahma-9056 avatar image
1 Vote"
JassimAlRahma-9056 asked sreejukg edited

Open Linkedin app

Hi,

I have the following string coming from my database:

 string linkedin_profile = "https://www.linkedin.com/in/jassimrahma/";


How can I open it in Linkedin app using Xamarin?

I tried a normal Launch but it's opening in the browser only.


Thanks,
Jassim

dotnet-csharpdotnet-xamarinformsdotnet-runtime
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How can I open it in Linkedin app using Xamarin?

To open a linking app when loading a url, the url needs to contains the scheme. For example, I created a custom linking application and set the DataScheme to "aaa" and DataHost to "my-app. com". We can use the scheme to open the linking app.

string url = "aaa://my-app.com";
Intent action = new Intent(Intent.ActionView, Android.Net.Uri.Parse(url));
StartActivity(action);

In your case, please add the 'Linkedin' app scheme to the url.

0 Votes 0 ·

How about Xamarin Forms?

0 Votes 0 ·

How about Xamarin Forms?

Could you please post more details about the problem? If you're talking about the app linking in xamarin.forms, this function should be achieved on each platform. In your case, the scheme is controlled by the 'linkedin app' instead of your application. Please just try to get the scheme of the linkedin app and add it in your test.

0 Votes 0 ·
Show more comments

1 Answer

sreejukg avatar image
0 Votes"
sreejukg answered sreejukg edited

To open the linkedin app from the mobile applications you can use the following URL Scheme..

linkedin://profile/[id]

Refer: https://stackoverflow.com/questions/15407170/url-scheme-for-linkedin

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.