Comments (27)
'notificationReceivedBackground' is not called on IOS, any solution would be helpful ...
from react-native-notifications.
@d4vidi notificationReceivedBackground never fired for ios. Any luck?
from react-native-notifications.
@lidanh @srijan02420 same here, notificationReceivedForeground
is fired but not notificationReceivedBackground
, on iOS 😞
from react-native-notifications.
@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.
Having similar issues.
from react-native-notifications.
+1
from react-native-notifications.
You're on Android/iOS?
from react-native-notifications.
on android
from react-native-notifications.
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.
@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.
from react-native-notifications.
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.
@tristanbbq @lidanh any luck?
from react-native-notifications.
@srijan02420 nope 😞
from react-native-notifications.
@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.
from react-native-notifications.
@srijan02420, what did you use for sending out VOIP notifications? I saw one signal and urban airship not supporting PUSHKIT.
from react-native-notifications.
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.
@d4vidi thanks for the details. Just to be clear, there are two different issues here. Previous comments were about iOS
from react-native-notifications.
Having similar issues but for ios
from react-native-notifications.
I'm having the same issues in iOS, handler for notification received background is never triggered.
from react-native-notifications.
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.
Any progress so far?
from react-native-notifications.
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.
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.
Sorry for reopening the subject but I have the same problem : notificationReceivedBackground didn't fired.
from react-native-notifications.
Related Issues (20)
- Invariant Violation: new NativeEventEmitter() requires a non-null argument.
- Update Robolectric version
- Subscriptions to topics
- "$" 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?
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.