You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to achieve a specific behavior on Android (currently) and IOS for our React Native app:
Goal: Redirect users directly from an Mindbox (via FCM) push notification to a Telegram channel (or browser as fallback) without our React Native app launching/appearing.
What we've tried:
Using a custom FirebaseMessagingService to intercept FCM Data Payload (Mindbox sends data containing eventType: "navigate", target: "tg", link: "https://t.me/channel").
Creating and showing a custom notification.
Embedding a PendingIntent in this notification that directly launches an ACTION_VIEW Intent for the Telegram link (or browser fallback) with FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_CLEAR_TOP.
Problem:
The push arrives, our custom notification appears, and clicking it correctly opens Telegram/browser. However, after that, especially upon returning from Telegram/browser, our React Native app's MainActivity still launches/comes to the foreground.
Question:
How can we ensure our React Native app does not launch/appear when handling such a deep link redirect from an FCM push notification on Android?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
We're trying to achieve a specific behavior on Android (currently) and IOS for our React Native app:
Goal: Redirect users directly from an Mindbox (via FCM) push notification to a Telegram channel (or browser as fallback) without our React Native app launching/appearing.
What we've tried:
Problem:
The push arrives, our custom notification appears, and clicking it correctly opens Telegram/browser. However, after that, especially upon returning from Telegram/browser, our React Native app's MainActivity still launches/comes to the foreground.
Question:
How can we ensure our React Native app does not launch/appear when handling such a deep link redirect from an FCM push notification on Android?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions