infobip / mobile-messaging-react-native-plugin

Mobile Messaging SDK plugin for React Native projects
24 stars 4 forks source link

Combining Push Notifications with In-App Notifications #73

Open moustafadevrn opened 1 month ago

moustafadevrn commented 1 month ago

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.

fortesdev commented 1 month ago

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.

riskpp commented 3 weeks ago

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

moustafadevrn commented 2 weeks ago

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.