Giter Site home page Giter Site logo

Comments (11)

alaingoldman avatar alaingoldman commented on July 24, 2024

Same error here for ios.

from react-native-notifications.

andrei-pham avatar andrei-pham commented on July 24, 2024

Same problem on Android.

from react-native-notifications.

nkov avatar nkov commented on July 24, 2024

I resolved this problem by sending the payload with key data instead of key notification as mentioned here.

from react-native-notifications.

Benjamin-Dobell avatar Benjamin-Dobell commented on July 24, 2024

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.

kholiavko-roman avatar kholiavko-roman commented on July 24, 2024

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.

Benjamin-Dobell avatar Benjamin-Dobell commented on July 24, 2024

@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.

kholiavko-roman avatar kholiavko-roman commented on July 24, 2024

Thanks, @Benjamin-Dobell

from react-native-notifications.

kaloncheung124 avatar kaloncheung124 commented on July 24, 2024

Having this same issue, has anyone found any solutions?

from react-native-notifications.

kaloncheung124 avatar kaloncheung124 commented on July 24, 2024

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.

stale avatar stale commented on July 24, 2024

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.

stale avatar stale commented on July 24, 2024

The issue has been closed for inactivity.

from react-native-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.