Giter Site home page Giter Site logo

Comments (27)

ravirajn22 avatar ravirajn22 commented on July 24, 2024 4

'notificationReceivedBackground' is not called on IOS, any solution would be helpful ...

from react-native-notifications.

srijan02420 avatar srijan02420 commented on July 24, 2024 3

@d4vidi notificationReceivedBackground never fired for ios. Any luck?

from react-native-notifications.

tristanbbq avatar tristanbbq commented on July 24, 2024 1

@lidanh @srijan02420 same here, notificationReceivedForeground is fired but not notificationReceivedBackground, on iOS 😞

from react-native-notifications.

srijan02420 avatar srijan02420 commented on July 24, 2024 1

@guns2410 I am using Django. I used https://github.com/jleclanche/django-push-notifications for implementing VoIP. It works same as APNS as far as backend is concerned. You just need to generate VoIP certificate from apple developer console.

from react-native-notifications.

guns2410 avatar guns2410 commented on July 24, 2024

Having similar issues.

from react-native-notifications.

devLaaziz avatar devLaaziz commented on July 24, 2024

+1

from react-native-notifications.

d4vidi avatar d4vidi commented on July 24, 2024

You're on Android/iOS?

from react-native-notifications.

devLaaziz avatar devLaaziz commented on July 24, 2024

on android

from react-native-notifications.

d4vidi avatar d4vidi commented on July 24, 2024

Android API is slightly different (for example, no distinction between foreground and background). Please have a look at: https://github.com/wix/react-native-notifications#android-3

from react-native-notifications.

lidanh avatar lidanh commented on July 24, 2024

@srijan02420 Are you sure? I just received a remote notification by sending a push notification when the app was in background.

from react-native-notifications.

srijan02420 avatar srijan02420 commented on July 24, 2024

from react-native-notifications.

sticknor avatar sticknor commented on July 24, 2024

Hello, this is related:

In both the example project and my own, onNotificationReceived() is not fired for Android.
To my understanding, this function should be called when the notification is received, even if the user has not interacted with it. As soon as it shows up in the notification center.

I am using local notifications and haven't changed any code in the example I am running.

from react-native-notifications.

srijan02420 avatar srijan02420 commented on July 24, 2024

@tristanbbq @lidanh any luck?

from react-native-notifications.

tristanbbq avatar tristanbbq commented on July 24, 2024

@srijan02420 nope 😞

from react-native-notifications.

tristanbbq avatar tristanbbq commented on July 24, 2024

@srijan02420 what about you? any luck with this? still not getting notificationReceivedBackground event to get called when receiving the push notification for iOS

from react-native-notifications.

srijan02420 avatar srijan02420 commented on July 24, 2024

from react-native-notifications.

guns2410 avatar guns2410 commented on July 24, 2024

@srijan02420, what did you use for sending out VOIP notifications? I saw one signal and urban airship not supporting PUSHKIT.

from react-native-notifications.

d4vidi avatar d4vidi commented on July 24, 2024

As explained in a comment I made a while ago regarding this issue, please refer to: https://github.com/wix/react-native-notifications#android-3.
On Android, there's no distinction between foreground and background. If you wish to query for the trigger-notification that potentially caused the app to launch, apply a query to getInitialNotification(). Thanks!

from react-native-notifications.

tristanbbq avatar tristanbbq commented on July 24, 2024

@d4vidi thanks for the details. Just to be clear, there are two different issues here. Previous comments were about iOS

from react-native-notifications.

alaingoldman avatar alaingoldman commented on July 24, 2024

Having similar issues but for ios

from react-native-notifications.

ricms93 avatar ricms93 commented on July 24, 2024

I'm having the same issues in iOS, handler for notification received background is never triggered.

from react-native-notifications.

ericwhitefield avatar ericwhitefield commented on July 24, 2024

I have the same issue on iOS. Sending a pushKit notification using a .p8 key - the appdelegate.m function "didReceiveIncomingPushWithPayload" does in fact get called, even if the app is closed. This is excellent, however, no react native handlers are run on this event.

Sending APN notifications does fire the react native handlers as long as the app is in foreground or background. So APN is successful.

What is the expected behavior for pushKit? I intend to open the app for an incoming voip call. Is that beyond the scope of this project? Should I be adding my own code to didReceiveIncomingPushWithPayload in objC to bring the app into the foreground?

from react-native-notifications.

saudpunjwani101 avatar saudpunjwani101 commented on July 24, 2024

Any progress so far?

from react-native-notifications.

ericwhitefield avatar ericwhitefield commented on July 24, 2024

I was thinking about this problem in an Android sort of way. For iOS the right choice for my situation was to use CallKit.

I realize this doesn't solve the issue above, but for voip I didn't need to solve it. Hope this helps someone.

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.

nathnat avatar nathnat commented on July 24, 2024

Sorry for reopening the subject but I have the same problem : notificationReceivedBackground didn't fired.

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.