Description
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server and the Parse Android SDK.
Issue Description
Notification trampoline restrictions have been introduced in Android 12 which restricts how activities can be started. As this article describes it:
To improve app performance and UX, apps that target Android 12 or higher can't start activities from services or broadcast receivers that are used as notification trampolines. In other words, after the user taps on a notification, or an action button within the notification, your app cannot call startActivity() inside of a service or broadcast receiver.
Steps to reproduce
Trigger a push notification and tap on the notification on the Android device. This triggers onPushOpen in the ParsePushBroadcastReceiver
Actual Outcome
Nothing happens. Logcat displays error:
E/NotificationService: Indirect notification activity start (trampoline) from {insert package name} blocked
Expected Outcome
App should open
Environment
Parse Android SDK
- SDK version: 3.0.0
- Operating system version: 12.0