Android industry metrics link

I use Branch lib for Android to create links that I send later via sms. If the user does not have an application installed on the phone, your link will go to the Play Store correctly (link in the toolbar). After installing and running the application, it gets all the data from the link, as expected.

However, if I already have an application installed on my phone, clicking this link does not open the application, but redirects me to the Play Store again. If I click the "Open" button, the application will receive information, but how to start the application directly from the browser? I saw the iOS implementation of the same library, and it works flawlessly - i.e. When I have an application and I click the link, it opens the application without sending me to storage.

Perhaps I did something wrong in my manifest declaration?

Thanks in advance,

Kalin

+2
source share
1 answer

Chrome , , Android, , . - , Chrome . Branch for deeplinks, :

TL; DR, , Branch

  • host = "open" on Activity, ://open
  • URI, Branch, , AndroidManifest.xml
  • : android.intent.category.BROWSABLE

, Branch , , Intent, :

intent:
HOST/URI-path // Optional host 
#Intent; 
  package=[string]; 
  action=[string]; 
  category=[string]; 
  component=[string]; 
  scheme=[string]; 

;

Branch , , android:host open:

:// # , = , = , "

window.location. , open android:host, Chrome.

android.intent.category.BROWSABLE . .

+3

All Articles