Xamarin: check if any specific application is installed on iOS device

I am using xamarin.forms, I can start the facebook application using the class Deviceas follows:

Device.OpenUri(new Uri("fb://profile/page_id"));

What to do if the application is not installed on the device. How to check if the application is installed on the device.

I wrote the above line of code in a block try, but when the application is not installed, the code works without output and exception. I want to redirect to itunes to install as follows:

CrossShare.Current.OpenBrowser("https://itunes.apple.com/us/app/facebook/id284882215/");

I am using Plugin.share in xamarin.forms.

+4
source share
1 answer

AppLinks. .

- - , , .

. , , URL.

.

Rivets.AppLinks.Navigator.Navigate("http://any.old.url");

URL, , UIApplication.OpenUrl ios/ Android, , .

+2

Source: https://habr.com/ru/post/1652205/


All Articles