infobip / mobile-messaging-react-native-plugin

Mobile Messaging SDK plugin for React Native projects
28 stars 6 forks source link

Combining Push Notifications with In-App Notifications #73

Open moustafadevrn opened 7 months ago

moustafadevrn commented 7 months 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 7 months 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 7 months ago

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

moustafadevrn commented 7 months 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.

riskpp commented 3 months ago

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