Comments (11)
Ok guys I solved it... I think the react-native-navigation docs should be updated for iOS to include this tidbit.
launchOptions
is not passed to the bridge if you use the default AppDelegate example from the react-native-navigation docs.
You need to use this to start the app (passing launchOptions) so that the push notification that was pressed is available to the bridge.
[[RCCManager sharedInstance] initBridgeWithBundleURL:jsCodeLocation launchOptions:launchOptions];
Once the launchOptions are passed to the bridge you should see the notificationOpened
handler is firing as expected.
from react-native-notifications.
I can confirm that the solution form @jbolter works as a charm. Thanks my friend
from react-native-notifications.
Same problem here!
from react-native-notifications.
+1
from react-native-notifications.
not working in IOS 10.3.1, any news?
from react-native-notifications.
@enahum which version of RNN are you using?
from react-native-notifications.
@d4vidi im on RNN 1.1.72
from react-native-notifications.
Same here :)
from react-native-notifications.
I really don't know anything about Objective-C but I'm wondering if this has anything to do with it https://github.com/wix/react-native-navigation/blob/master/ios/RCCManager.m#L41
from react-native-notifications.
@bruchim Could you possibly help these guys out? They're using <2 navigation version. This issue has been open for a while now.
from react-native-notifications.
I'm having the same problem and am also using react-native-navigation < v2. Scratching my head here trying to figure out why these handlers don't seem to be called.
from react-native-notifications.
Related Issues (20)
- Notifications android refreshToken() not in package but in API docs
- IOS background and foreground notification is not working
- How to set batch count for android
- App relaunch on notification click. HOT 1
- Cannot read property 'refreshToken' of null. HOT 1
- registerNotificationOpened is not called when app is in foreground. HOT 1
- Crash app when recieve Notification in IOS 14 HOT 6
- Fix API Documentation so that postLocalNotification works - Includes fix HOT 1
- [iOS] getInitialNotification returnsthe notification even when the app was opened without tapping it HOT 2
- app crashes receiving a notification during startup
- How do I even use this package?
- registerNotificationOpened isn't working as expected in iOS HOT 1
- `startObserving` method call is happening post send event call
- Android 10 and below: NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference HOT 1
- 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.
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.