Answered

React Native: Push notifications don't open the app on Android 12+

  • 6 April 2022
  • 1 reply
  • 464 views

Hey,

After updating our app to use the official React Native lib, we're getting a trampoline error when clicking the notification on Android 12+ so that the notification is just dismissed and the app does not open (neither any deeplink is triggered).

 

Here's some logs when this issue happens (the bundle id was omitted)

ActivityTaskManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=myapp://subscription flg=0x10000000 cmp=android/com.android.internal.app.ResolverActivity} from uid 10420
NotificationService: Indirect notification activity start (trampoline) from **** blocked
ActivityTaskManager: Background activity start [callingPackage: ****; callingUid: 10420; appSwitchAllowed: true; isCallingUidForeground: false; callingUidHasAnyVisibleWindow: false; callingUidProcState: RECEIVER; isCallingUidPersistentSystemProcess: false; realCallingUid: 10420; isRealCallingUidForeground: false; realCallingUidHasAnyVisibleWindow: false; realCallingUidProcState: RECEIVER; isRealCallingUidPersistentSystemProcess: false; originatingPendingIntent: null; allowBackgroundActivityStart: false; intent: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=myapp://subscription flg=0x10000000 cmp=android/com.android.internal.app.ResolverActivity }; callerApp: ProcessRecord{98b38da 27450:****/u0a420}; inVisibleTask: false]
ActivityTaskManager: Abort background activity starts from 10420

App env info:

  • @intercom/intercom-react-native: 3.0.0
  • com.google.firebase:firebase-messaging: 20.2+
  • react-native: 0.67.3

 

Thanks

icon

Best answer by Lisa B11 12 April 2022, 08:12

View original

1 reply

Hey @elton​ 👋

 

Would you mind sending us a message through the Messenger with all of these details so a Support Engineer can look into this for you 👋

Reply