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

fix: update notification receiver activity launchMode #274

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions messagingpush/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
<!-- Transparent activity for push interactions

Notes:
* Using launchMode="singleTop" because Android OS does not launch activity again in one session if the activity was launched recently from earlier notification
* Using launchMode="singleTask" because Android OS does not launch activity again in one session, if the activity
was launched recently from earlier notification.
* launchMode="singleTop" does not work well with ACTIVITY_NO_FLAGS if customer app also has launchMode="singleTop"
(e.g. Flutter apps) and have multiple instances launched from notifications in one session.

-->
<activity
android:name=".activity.NotificationClickReceiverActivity"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleTop"
android:launchMode="singleTask"
android:noHistory="true"
android:taskAffinity=""
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
Expand Down
Loading