nordnet / cordova-universal-links-plugin

[DEPRECATED] - Cordova plugin to support Universal/Deep Links for iOS/Android.
https://github.com/nordnet/cordova-universal-links-plugin/issues/160
MIT License
349 stars 529 forks source link

Event not fired when AndroidLaunchMode = singleTask or singleInstance #85

Closed clemorphy closed 7 years ago

clemorphy commented 7 years ago

When compiling with AndroidLaunchModeset to singleTaskor singleInstance, if the app has not been launched, it is working. It launches the app and the event is fired. But if the app has already been launched, it brings the app to foreground, but no event is fired in JS.

Am I missing something ?

I am testing on a Nexus 5 with Android 6.

nikDemyankov commented 7 years ago

Sorry, a bit swamped with work right now. Will try to reproduce that tomorrow. For now my guess is that native side is not receiving launch intent when app is resumed. Which would be strange...

clemorphy commented 7 years ago

Some news. I have tested again today, rebuilding the app with AndroidLaunchMode set to singleTask, and guess what, now it works everytime! Even when the app is already launched, it brings it to foreground, and the JS event is fired.

I don't know what happened the previous times I tested it. I remember that I had rebuilt the app many times, and it was always failing, with singleTask or singleInstance... So I went back to standard mode.

But today I try singleTask again, and it works. I didn't change any other parameter.

Maybe that was a temporary problem on my Nexus 5.

nikDemyankov commented 7 years ago

Could not reproduce it as well... Maybe you had some JS error on the page? Anyway, good, that it works now. Closing it, then. If you get this problem again - just reopen the issue.