Open micahlt opened 3 years ago
Hi, are you able to debug your code and determine if / why https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/blob/master/src/android/IntentShim.java#L642 is being invoked multiple times? That onIntent() method should just map to https://developer.android.com/reference/android/app/Activity#onNewIntent(android.content.Intent) but I see logic in the code related to deferred / delayed firing so it is possible something is going wrong there.
This may be related: we are experiencing startActivityForResult firing multiple times (on some occasions).
@KoenLav are there reproducible reproduction steps?
I'm now thinking it may have to do with us not providing a requestCode, because of which 1 is used by default, but it seems requestCode is like an 'Intent identifier' rather than 'just' the code it returns.
Testing that theory now.
This plugin works perfectly and I thank you so much for it!
However, I'm experiencing some issues with intents occurring multiple times. My context is an unofficial mobile client for the children's programming site Scratch. I'm using this plugin to offer users the opportunity to forward links from the Scratch website directly to the app. Opening with my app works fine, but when you select "Open with Chrome", the "open with" popup appears up to four or five times before it finally opens the site. Any ideas of what could be causing this? Here's my only implementation of your plugin: