Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android PendingIntent not launching IterableTrampolineActivity after opened from background from notification #444

Open
KarlLvSq opened this issue Apr 16, 2022 · 2 comments

Comments

@KarlLvSq
Copy link

KarlLvSq commented Apr 16, 2022

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.

@leowroth
Copy link

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

@Ayyanchira
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants