mobile-messaging-react-native-plugin icon indicating copy to clipboard operation
mobile-messaging-react-native-plugin copied to clipboard

Combining Push Notifications with In-App Notifications

Open moustafadevrn opened this issue 10 months ago • 4 comments

Description: When combining push notifications with in-app notifications, the in-app notification appears too early when the push notification is received and clicked while the app is closed. The in-app notification appears parallel to the splash screen, which may not provide the optimal user experience.

Steps to Reproduce: Combine push notifications with in-app notifications. Send a notification while the app is closed. Click on the push notification to open the app.

Expected Behavior: The in-app notification should appear after the home screen fully loads, rather than during the splash screen.

Actual Behavior: The in-app notification appears in parallel with the splash screen.

moustafadevrn avatar Apr 18 '24 13:04 moustafadevrn

Hi @moustafadevrn, I am afraid the control for displaying manually the in-app notification is only exposed on native Android and iOS. On React Native it is displayed "automatically", as soon as it can.

fortesdev avatar Apr 19 '24 07:04 fortesdev

Hi @moustafadevrn, as a workaround you may consider building a Flow for an in-app notification campaign:

  • listen to app launch event
  • put pause element after this
  • send in-app notification

riskpp avatar Apr 26 '24 14:04 riskpp

Hi @riskpp , I followed the recommendation and attempted to create a flow on the dashboard to trigger the in-app notification after a delay of 10 seconds upon app launch. However, I encountered difficulties as the in-app notification was not triggered as expected. Despite configuring the flow to listen to the app launch event and inserting a pause element, the in-app notification did not appear after the specified delay.

Additionally, it would greatly streamline our processes if we could utilize the existing option to manage both types of notifications in a single interface. Specifically, leveraging the checkbox to include in-app notifications when creating broadcast notifications would consolidate our workflow and enhance efficiency, eliminating the need to manage notifications in two separate locations. I appreciate your assistance and would be grateful for any further guidance or solutions you can provide to address this issue.

moustafadevrn avatar Apr 29 '24 12:04 moustafadevrn

Hello @moustafadevrn , could you please contact your account manager regarding this issue, might be easier to resolve.

riskpp avatar Aug 16 '24 10:08 riskpp