vendredi 29 mai 2015

Deep linking unable to get data in Activity - Android?

I am enabling deep linking in App. It is working pretty fine. but I am facing problem when the app is already opened in background.

Case 1 - if my activity is set to "singleTop" and running in the background, so,the moment I open the link from browser it redirects to the same activity and call onNewIntent().

but I am not getting any data in onNewIntent()

onNewIntent(){
    Uri data = getIntent().getData();
    // data = null
}

Case 2- if I remove "singleTop" then everything works fine, but creating more instances of Activity.

Did anybody face this issue? How can we solve the Case 1 issue?

Aucun commentaire:

Enregistrer un commentaire