braze-react-native-sdk icon indicating copy to clipboard operation
braze-react-native-sdk copied to clipboard

[Feature]: Background push handler for silent push notifications

Open mcalc001 opened this issue 1 year ago • 1 comments

What problem are you facing?

Braze doesn't give out the box solution for background & Quit state messages. Specifically the ability to detect Silent push notification's when in background/quit state.

Workarounds

Currently the only work around would be to create our own react native bridge or to integrate another push notification provider to handle silent push notifications.

Ideal Solution

Our ideal solution would be the introduction of a background push handler in Braze, specifically designed to handle silent push notifications. This would mimic the functionality of setBackgroundMessageHandler currently available from @react-native-firebase

Other Information

No response

mcalc001 avatar Dec 04 '23 08:12 mcalc001

Hey @mcalc001, thanks for raising this. Our handler methods aren't able to support background messages because they specifically notify of push updates via Braze, which require the SDK to be launched and running to be processed.

It's something we can look deeper into--if you wouldn't mind, could you file some product feedback here so we can assess how to prioritize this? Thank you!

jerielng avatar Jan 17 '24 19:01 jerielng

Hey @mcalc001, version 10.0.0 of our React Native SDK now supports push received events on iOS for the following scenarios:

  • a push is received in the foreground
  • a push with content-available=1 is received in the background.

Due to platform limitations, we cannot process push received events while the app is terminated (not in memory).

We will shortly be releasing updated documentation here for more details on this usage.

Thank you!

jerielng avatar Aug 15 '24 20:08 jerielng