Comments (11)
Same error here for ios.
from react-native-notifications.
Same problem on Android.
from react-native-notifications.
I resolved this problem by sending the payload with key data
instead of key notification
as mentioned here.
from react-native-notifications.
This is not an issue with react-native-notifications
but rather a limitation of how GCM/FCM works. #71 somewhat addresses this by explaining this situation in the README. As @nkov has mentioned, if you want your callback to be called when the app is in the background you must send a "data only" push notification.
from react-native-notifications.
How to trigger callback if app was dropped from process on android ?
I tried different scenarios, only with data, with notification, with both, but nothing trigger callback if app killed from process. Anybody found the solution ?
from react-native-notifications.
@kholiavko-roman there is no way to achieve this with stock react-native-notifications. The implementation makes a few inaccurate assumptions unfortunately. My pull request addresses this but unfortunately it's not building at the moment due to a bug in Google's firebase plugin.
from react-native-notifications.
Thanks, @Benjamin-Dobell
from react-native-notifications.
Having this same issue, has anyone found any solutions?
from react-native-notifications.
I had an issue where I wasn't receiving the notifications on background or foreground. Turns out it was because I wasn't setting my listeners in a global scope. Changed to global scope like the example does, and now I receive foreground, background, and initial notifications.
from react-native-notifications.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
from react-native-notifications.
The issue has been closed for inactivity.
from react-native-notifications.
Related Issues (20)
- "$" getting copied HOT 1
- Code that setting NotificationChannel sound on Android might lead unexpected consequences HOT 1
- Application does not trigger registerNotificationOpened when it is closed, only when it is in the background.
- I can't get notifications to open my app HOT 1
- How to undo `Notifications.registerRemoteNotifications()` ? HOT 3
- Minification failure with R8: Compilation failed for ReactAppLifecycleFacade$1 in react-native-notifications
- Not receiving any notification on iOS release mode only HOT 1
- Huawei push notification in library
- dexOptions is obsolete
- Feature request: add support for iOS simulator push notifications HOT 3
- Does FCM work with this package in iOS? HOT 4
- Handle callback when notification in background / terminate app HOT 3
- When I click on the notification on my android app, entire app reloads HOT 4
- Question - is there support for the new RN architecture? HOT 1
- Suggestion - documentation update HOT 1
- Feature request: support for dynamic Live Activities on IOS
- What about the wiki for integration with react notification?
- registerRemoteNotificationsRegistrationDenied being called even when "Allowed" clicked
- is it possible to send local notification when App is closed
- [Question]: Grouping on iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-notifications.