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
[x] If this is a setup issue then please make sure you've correctly followed the setup guides, most setup issues such as 'duplicate dex files', 'default app has not been initialized' etc are all down to an incorrect setup as the guides haven't been correctly followed.
Issue
When I try to request permissions on iOS, I got the following error and then the application crash.
This is a problem related to iOS, Android is working perfectly fine.
I have followed every step on your documentation, every configuration, I have been on this issue for a week...
Everything is correctly linked, I am using Messaging, Performance, etc and only messaging as a problem, only on iOS.
Two behaviours => it either ask for permissions then crash or just crash, when requestPermission() is called.
Logs
NSInvalidArgumentException: -[__NSCFBoolean length]: unrecognized selector sent to instance 0x1b376d798
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
...
(16 additional frame(s) were not displayed)
Javascript
if (!isInit && !DeviceInfo.isEmulatorSync()) {
await messaging.registerDeviceForRemoteMessages();
const oldPermission = await messaging().hasPermission();
if (oldPermission === fbMessaging.AuthorizationStatus.NOT_DETERMINED) {
const permission = await messaging().requestPermission();
if (permission === fbMessaging.AuthorizationStatus.AUTHORIZED) {
// do something
}
} else if (oldPermission === fbMessaging.AuthorizationStatus.AUTHORIZED) {
// do something
} else {
await Promise.resolve();
}
}
🔥 Hello guys,
First I want to thank you all for your work !
[x] If this is a setup issue then please make sure you've correctly followed the setup guides, most setup issues such as 'duplicate dex files', 'default app has not been initialized' etc are all down to an incorrect setup as the guides haven't been correctly followed.
Issue
When I try to request permissions on iOS, I got the following error and then the application crash.
This is a problem related to iOS, Android is working perfectly fine.
I have followed every step on your documentation, every configuration, I have been on this issue for a week...
Everything is correctly linked, I am using Messaging, Performance, etc and only messaging as a problem, only on iOS.
Two behaviours => it either ask for permissions then crash or just crash, when requestPermission() is called.
Logs
NSInvalidArgumentException: -[__NSCFBoolean length]: unrecognized selector sent to instance 0x1b376d798
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
?, in _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE
...
(16 additional frame(s) were not displayed)
Javascript
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:6.7.1
Firebase
module(s) you're using that has the issue:@react-native-firebase/messaging
TypeScript
?No
Thanks in advance for your help, I am really stuck here and it's the only bug left before production <3
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: