You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addressing the previous old issues i've raised (#7784 ,#7589 ,#7783)
We have now upgraded our react native firebase packages, we've changed our AppDeletegate file according to the doc, and we've also cross checked APNs key and cross checked sending Manual notification to our iOS project from Dashboard and Postman cURL request, this works fine.
Basically, we've tried to skimmed through all the documentation and issues we could find, but still we are failing with our push notifications for our iOS devices which used to send earlier from our backend server whenever any new thing (shows or articles) are published, another thing to note is where our Notification type is message.
Please, could anyone guide us what's happening wrong? Please, let us know, we're in a dead loop of no solutions.
This is our notification block that we're sending from backend,
require_relative'../node_modules/react-native/scripts/react_native_pods'require_relative'../node_modules/@react-native-community/cli-platform-ios/native_modules'
$RNFirebaseAsStaticFramework =trueplatform:ios,'11.0'target'NewsLaundry'douse_frameworks!config=use_native_modules!use_react_native!(:path=>config[:reactNativePath],# to enable hermes on iOS, change `false` to `true` and then install pods:hermes_enabled=>false,)# Permissionspermissions_path='../node_modules/react-native-permissions/ios'pod'Permission-LocationAlways',:path=>"#{permissions_path}/LocationAlways/Permission-LocationAlways.podspec"pod'Permission-LocationWhenInUse',:path=>"#{permissions_path}/LocationWhenInUse/Permission-LocationWhenInUse.podspec"pod'Permission-PhotoLibrary',:path=>"#{permissions_path}/PhotoLibrary"pod'react-native-onesignal',:path=>'../node_modules/react-native-onesignal'# React Native Version Check (for iOS app updates)pod'react-native-version-check',:path=>'../node_modules/react-native-version-check'pod'react-native-segmented-control',:path=>'../node_modules/@react-native-segmented-control/segmented-control'pod'ReactNativeMoEngage',:path=>'../node_modules/react-native-moengage'pod'ReactNativeMoEngage',:path=>'../node_modules/react-native-moengage'pod'react-native-voice',:path=>'../node_modules/@react-native-voice/voice'pod'GoogleUtilities'target'NewsLaundryTests'douse_frameworks!inherit!:complete# Pods for testingend# Enables Flipper.## Note that if you have use_frameworks! enabled, Flipper will not work and# you should disable the next line.# use_flipper!()pre_installdo |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method,:verify_no_static_framework_transitive_dependencies){}installer.pod_targets.eachdo |pod|
ifpod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')defpod.build_type;Pod::BuildType.static_libraryendendendendpost_installdo |installer|
react_native_post_install(installer)endendtarget'ImageNotification'douse_frameworks!pod'Firebase/Messaging','~> 9.4.0'# Version should match the podfile.lock version Refer https://rnfirebase.io/messaging/ios-notification-imagespod'GoogleUtilities'endtarget'OneSignalNotificationServiceExtension'douse_frameworks!pod'OneSignalXCFramework','>= 3.4.3','< 4.0'pod'GoogleUtilities'end
It appears there is no "notification" key in the FCM you are sending.
Those are unreliable and I would expect they won't be delivered.
You're at the mercy of Apple and any changes they make to iOS (which changes in my experience just reduce delivery of data-only message further)
Please test after modifying your send method to include a notification key and report results
Issue
Hi @mikehardy,
Addressing the previous old issues i've raised (#7784 ,#7589 ,#7783)
We have now upgraded our react native firebase packages, we've changed our AppDeletegate file according to the doc, and we've also cross checked APNs key and cross checked sending Manual notification to our iOS project from Dashboard and Postman cURL request, this works fine.
Basically, we've tried to skimmed through all the documentation and issues we could find, but still we are failing with our push notifications for our iOS devices which used to send earlier from our backend server whenever any new thing (shows or articles) are published, another thing to note is where our Notification type is message.
Please, could anyone guide us what's happening wrong? Please, let us know, we're in a dead loop of no solutions.
This is our notification block that we're sending from backend,
And, this is the function
Thanks.
Project Files
Javascript
Click To Expand
package.json
:firebase.json
:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Environment
Click To Expand
react-native info
output:TypeScript
?React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: