Denis
Denis

Reputation: 127

Is there a possibility to create a iOS or Android shortcut by pressing a link?

Is there a possibility to create an iOS or Android shortcut by pressing a link on a website? I want to create a deeplink as shortcut on the homescreen for my customers.

Upvotes: 0

Views: 114

Answers (1)

Andrea Olla
Andrea Olla

Reputation: 11

For the Android app you could use a button.

On Button click event listener write this:

Uri uri = Uri.parse("http://www.google.com"); // missing 'http://' will cause crashed
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

that open the your URL.

I cannot help you for iOS.

Upvotes: 1

Related Questions