mParticle / mparticle-android-sdk

mParticle SDK for Android apps
http://www.mparticle.com
Other
58 stars 62 forks source link

mParticle attribution listener #254

Open JeremiahStephenson opened 2 years ago

JeremiahStephenson commented 2 years ago

I work in a project that is integrated with AppsFlyer and so we set an attribution listener through mParticle for deep links. This works great when the app is not in the foreground but the onResult method of the attribution listener is not called when the app is in the foreground. This can be tested when the app is in split screen mode with another app that has the deep link. When the user taps on the deep link nothing happens in the app I'm working on. We do set the intent in onNewIntent for the activity but onResult is not called in that scenario. I have noticed that if I also place AppsFlyerLib.getInstance().performOnDeepLinking(intent, context) in onNewIntent that it does resolve the issue but there are concerns that this is not what we should be doing and could have negative side effects. My question then is should the attribution listener work when the app is open and if not then what is the appropriate way to deal with this issue?

vinnyA3 commented 1 year ago

Bumping this ^^ .. While we do not have the same issue, I would like to clarify if onResume is meant to be called when the app is open