-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] FIRMessagingRemoteMessage Expected a type #4605
Comments
Hi there! |
(my guess is that you have crossed up versions, as that type was removed in #4471) |
@mikehardy I tried but it didn't work. |
|
Property 'shouldEstablishDirectChannel' not found on object of type 'FIRMessaging *' I get this error. @mikehardy |
I feel as though you are avoiding reading release notes? https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/CHANGELOG.md#breaking-changes-1 Perhaps |
my project was working. When I switched to version 10 I started getting these errors. react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m I get an error saying expected a type. Example : // Listen for data messages in the foreground
FIRMessagingRemoteMessage expected a type. |
That file does not exist react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m Something is wrong with your local project. |
Issue
Hello I am using "@ react-native-firebase / messaging": "^ 10.0.0" and while trying to build I get a type error of FIRMessagingRemoteMessage expected at lines 44,91,99,223,278,279 in RNFirebaseMessaging.m in ios.
node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:223:31: No visible @interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:RNFirebaseMessaging.m
:RCT_EXPORT_METHOD(sendMessage:(NSDictionary *) message
resolve:(RCTPromiseResolveBlock) resolve
reject:(RCTPromiseRejectBlock) reject) {
if (!message[@"to"]) {
reject(@"messaging/invalid-message", @"The supplied message is missing a 'to' field", nil);
}
NSString *to = message[@"to"];
NSString *messageId = message[@"messageId"];
NSNumber *ttl = message[@"ttl"];
NSDictionary *data = message[@"data"];
}
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 10.0.0
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: