-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FCM invalid event #201
Comments
if nothing else helps try with react: 15.3.1 and react-native 0.36. I have not been able to run my app with the latest react(native) versions, because of other errors |
looks like you are subscribing wrong event |
@CristinaNicolae this are the valid events: https://github.com/evollu/react-native-fcm/blob/master/index.js#L3 @evollu maybe we should add an expo/ex-navigation@8795fbe#diff-0b652261cfb3f4459e0cb33be663e872R47 |
will update error message |
fixed |
"react": "15.4.2", I am getting Device: iphone 7 plus simulator. Anyone have any suggestion. |
Check readme, there is a breaking change in v6. Are you using 'notication' for event subscription? |
I am using this one and when commenting error gone. @evollu |
Right use FCM.on(FCMEvent.Notification, callback) |
Yes this is now working. Now I am getting in some other issue with xcode I can't run build it showing this above issue: But when I do react-native run-ios it's building my app on simulator. Can you suggest reason behind this. I have also facing this problem and getting solution but when installing few plugins it's showing again on new react native package see this issue posted yesterday: facebook/react-native#12042 It's not only issue with specific library it's showing file not found in many library files: It was showing same on yesterday but I solved it with reinstalling everything with react native new package. But again now same issue. |
Now I am not getting error on file not found but only rest this issue...
Showing error |
It just wasted my three working day :( but finally got solution. 1- opened workspace file before opening close everything. 2- added pod file in manage scheme suggested by :https://stackoverflow.com/questions/40358719/framework-not-found-googletoolboxformac 3- also i followed this suggestions too: http://stackoverflow.com/questions/9458739/ld-warning-directory-not-found-for-option 4-I also updated pod update. 5- Clean and build it's working now. |
The second step and the third step can again a little bit in detail ? Now I only know to update pod,but it's field. pod profile use this ? pod 'React', :path => '../node_modules/react-native', :subspecs => [ Hope you answer agin : ) |
Open 'Build Settings', search 'Header Search Path'. Double click next to 'Header Search Path', where other properties have a 'yes' or 'no' Now add following to the "Header Search Path" (under Build Settings): $(SRCROOT)/../node_modules/react-native/React Make it recursive. |
I just updated everything to the last versions and after I do the ios bundle and try to run the app I get this message:
If I dismiss it the app runs as expected.
My dependecies:
"react": "^15.4.1",
"react-native": "^0.38",
"react-native-fcm": "2.3.2"
I am testing on a iPhone 5 with iOS 10.0.2
The text was updated successfully, but these errors were encountered: