evollu / evollu/react-native-fcm

notif.opened_from_tray evaluates true when opening app via app icon

Open
#501 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

**Versions**
react-native-cli: 2.0.1
react-native: 0.42.3
react-native-fcm: 7.5.1
Device: Android Emulator Version 6

**Problem**

Q1. `notif.opened_from_tray` evaluates to true even though no notification has been sent to the device when the application is brought from background to foreground.

This is the contents of the notif object

`{
"opened_from_tray": 1,
"fcm": {
"action": "android.intent.action.MAIN"
},
"profile": 0
}`

Is this a valid result?

Further, calling FCM.getInitialNotification does not return the visible contents that were presented in the notification

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Android handling behind FCM.getInitialNotification and the notif.opened_from_tray value. Reproduce the app-icon foreground transition without a notification, then compare it with a notification launch; done requires the observed flag and initial-notification contents to match the documented behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.