Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Android Deep Link Not firing on Resume #9

Closed
mikeduarte opened this issue Oct 9, 2015 · 3 comments
Closed

Android Deep Link Not firing on Resume #9

mikeduarte opened this issue Oct 9, 2015 · 3 comments
Labels
Milestone

Comments

@mikeduarte
Copy link

@nikDemyankov

I'm having an issue on Android. If my app is not running and I click on a link that launches the app, the app loads from a cold start and the universal link plugin event fires just fine. If I leave the app running, then click on another link, the app opens, fires the onResume event, but the universal plugin link event doesn't seem to fire. Any ideas?

My device is running Android 4.4.2 and tested on another device running 4.4.4. Both have same issue.

@nikDemyankov
Copy link
Member

Not yet, but I will look into that, thanks.

@nikDemyankov
Copy link
Member

Yep, this is a bug. If you press "Home" button - app is still alive in the background. And if you launch it again from the link - event is not firing. But if you press "Back" button and then launch from link - it works. Will try to fix it soon.

@nikDemyankov nikDemyankov added this to the v1.0.1 milestone Oct 21, 2015
nikDemyankov added a commit that referenced this issue Oct 21, 2015
@nikDemyankov
Copy link
Member

Okey, this should work now. If application was launched from the link "A", putted to sleep by pressing "Home" button, and then resumed by clicking on link "B" - JS event is firing.

But if you launched app from the link "A", putted app to sleep, and then resumed by clicking on the same "A" link - event is not gonna fire, because this is an old Intent, and android (or cordova) not gonna tell us about it. But, probably, that's fine, since we already handled that intent and no need to do it again.

chaffeqa added a commit to sportstech/cordova-universal-links-plugin that referenced this issue Nov 10, 2015
* master:
  Bump version
  Added changelog file
  Updated android web integration section (nordnet#12). Fixed some broken links. Added some additional docs on android.
  Updated readme with info about Universal Links and iOS. Relates to nordnet#7
  Fix for Issue nordnet#9
  Removed scheme from host matching. Issue nordnet#6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants