iterable-android-sdk
iterable-android-sdk copied to clipboard
Android PendingIntent not launching IterableTrampolineActivity after opened from background from notification
trafficstars
Reproduce
- Using Iterable Android SDK version 3.4.3 or abover and iterable/react-native-sdk version 1.1.3
- Terminate App
- Receives notification
- Clicks notification
- App launches and IterableTrampolineActivity successfully created to handlePushAction.
- Then hold on app in foreground
- Resend a new notification
- tap this new notification
- IterableTrampolineActivity is not launched as expected.
Root Cause
I've finally find root cause of this issue, seems LaunchMode of IterableTrampolineActivity changed from singleInstance to singleTop start with 3.4.3. If i change it back to singleInstance on version 3.4.3, everything fine.
We just ran into the same problem and I can't understand, how this is not fixed in the SDK?
Solution: add this to your manifest to override the launchMode
<activity
android:name="com.iterable.iterableapi.IterableTrampolineActivity"
android:exported="false"
android:launchMode="singleInstance"
android:theme="@style/TrampolineActivity.Transparent"
tools:node="replace" />
Hi @leowroth , we do have launchMode set to singleInstance. Github Can you please share what functionality in the app breaking because of this? Is the push deep links not arriving on the SDK correctly?