iterable-android-sdk icon indicating copy to clipboard operation
iterable-android-sdk copied to clipboard

Android PendingIntent not launching IterableTrampolineActivity after opened from background from notification

Open KarlLvSq opened this issue 3 years ago • 2 comments
trafficstars

Reproduce

  1. Using Iterable Android SDK version 3.4.3 or abover and iterable/react-native-sdk version 1.1.3
  2. Terminate App
  3. Receives notification
  4. Clicks notification
  5. App launches and IterableTrampolineActivity successfully created to handlePushAction.
  6. Then hold on app in foreground
  7. Resend a new notification
  8. tap this new notification
  9. 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.

KarlLvSq avatar Apr 16 '22 12:04 KarlLvSq

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" />

leowroth avatar Mar 14 '24 09:03 leowroth

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?

Ayyanchira avatar Mar 14 '24 20:03 Ayyanchira