-
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
[🐛] Bug Report Title - unsupported URL #7244
Comments
Interesting - what's the execution environment on this? A real device (if so which one?) or is it a computer/simulator (if so, is it apple silicon or not, what version of macOS, what version of simulator?). That can alter how getToken works pretty significantly, since getToken only works on real devices or an iOS16+ simulator running on Apple Silicon |
Hi @mikehardy , iOS16+ simulator, and real devices all throw this error and my laptop is an Apple silicon m1 pro. |
I just merged an update here in our test app to current react-native on current react-native-firebase and qualified it on an m1 with ios16 simulator. It calls that API and works. I suspect a local network issue of some sort? |
but I try to use wifi, 4g, and my colleague, everyone got this issue |
I can provide more logs. seems like some local key was lost.
|
Hi @mikehardy I found the root cause, thx your help, I close this issue |
Can you elaborate at all on the root cause? It may save other people the trouble in the future and will help me support others in the future |
Root cause is we proxy some request, not relate about sdk |
Issue
When I use React Native 0.71 and firebase 18.x and I call messaging.getToken() , I got this error
Error getting FCM registration token: Error Domain=com.firebase.installations Code=0 "Underlying error: unsupported URL" UserInfo={NSLocalizedFailureReason=Underlying error: unsupported URL, NSUnderlyingError=0x6000001702d0 {Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000000eff30 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1BAFEE56-4FBF-4248-9344-E37850CFB24E>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <1BAFEE56-4FBF-4248-9344-E37850CFB24E>.<1>",
"LocalDataTask <01AEB63E-D076-430E-A3B7-79B46F5A5DB5>.<1>"
), NSLocalizedDescription=unsupported URL}}}
Describe your issue here
Project Files
Javascript
const pushToken = await this.firebaseMessaging.getToken()
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:// N/A
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. 5.4.3
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: