-
Notifications
You must be signed in to change notification settings - Fork 444
Firebase was unable to connect to FCM #105
Comments
I've added a comment at the line that logs the error: "// this is not fatal at all but still would like to know how often this happens". So can you try to see if it still works correctly? I can see you've received a push token.. |
It stills don't seem to work for iOS but only for works for Android. Plus I don't get the notification prompt. I have deleted the node_modules and platform folders and started again. Still the same problem. I have tried sending a push notification from firebase and it doesn't seem to work. |
Yes, I have. Plus there is a step missing after you uncommenting |
That's supposed to happen automatically when doing a What's your testdevice? |
nexus 6p for android and simulator for ios |
You know you can't receive notifications on the iOS sim, right? You should be able to receive the "this app wants to send push notifications" prompt but that's all down to the provisioning profile stuff. |
I don't even see
|
Try a real device first. You can't receive notifications on the simulator anyway. |
How come I don't get the prompt for notification support for iOS simulator. |
IDK. Just try a real device with the proper push entitlement settings etc and let me know how that works out for you. |
I have got the same issue with a real device. |
Taking a look. |
Added a section to the messaging readme on this topic. If you still don't see a prompt I will need to look at your code because I just retested this on a fresh app with success.. |
I have created a new nativescript 2.2.0 app with the same app id and I still get the same issue: 2016-08-17 10:29:33.894 FirebaseTest[2246:1488909] Configuring the default app. Do you have any ideas what I might have done wrong? |
Like I said I need to take a look at the code, otherwise it's impossible for me to assist. |
Sample project for iOS only (because Android works fine). Please note that I have removed the GoogleService-Info.plist and changed the app id... |
Thanks! Taking a look.. |
@dbenninger You're doing it right, and with your app I was able to get this prompt in the simulator: What I did after unzipping you code was:
Upon the next `tns emulate ios --device "iPhone 6s" I got that prompt. Let me know if you can at least get the |
Well, I always got the prompt, even with the error messages in the log. I followed your steps above and this is what I got in the simulator: And this is what I get on my device: |
@dbenninger So @kamranarshad said he didn't get the prompt and you said "I have got the same issue with a real device." so I assumed you didn't see it as well. So what exactly is and is not working for you and what have you tried? If I Google for "FIRMessaging registration is not ready with auth credentials" (part of the log above) I see people saying you need to upload your APNS certificates to Firebase. Did you do that for your app in the Fb console at settings > Cloud messaging? |
Yes, sorry about that, I was only referring to the "Firebase was unable to connect to FCM" log message. The problem is that I do not get any push notifications on iOS. I did create the certificates and uploaded them to Firebase. But I think I'll just delete the Firebase project completely and start over again... something must be messed up. I will let you know if I find the issue... |
OK, good luck. I think you're on the right track. Make sure the app id's in package.json, the plist, etc are all the same. |
Thanks. Quick question: when running on your simulator, did you get any errors or warnings in the console? Did you try it on a real device? |
I probably got warnings but don't mind them since I always test on a real device as well as a sim can't receive notifications. |
I can't get it to work either. What a f*****g pain in the ass it is to make it work on iOS whereas it works so effortlessly on Android. I have looked around extensively on the internet to find a solution but without much success. I found two possible solutions, could you have a look? And Also, maybe this: Thank you |
So guys, how are you testing sending a push notification? I have limited success with the Firebase console, but the
Please let me know if that changes things. |
I test directly from the gcm interface and use "send to all". It worked flawlessly for Android so the problem is not from this side I believe but I will test with curl. |
Nope, absolutely nothing with curl. I even deleted the app to get another token. |
Close it! Close it! 🍷 |
So what was the final fix for this issue? |
yep...this issue just disappear after 2nd lauch. |
Hi, does the library works with XCode 7 |
@wickstargazer dunno, why would you use 7 anyway? |
Our production is on 7, 2.2 And we have some urgent requirements to
release. Will take an amount of time to migrate to swift3 ... any
suggestions?
…On Thu, Feb 2, 2017 at 2:52 PM, Eddy Verbruggen ***@***.***> wrote:
@wickstargazer <https:/wickstargazer> dunno, why would you
use 7 anyway?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or mute the thread
<https:/notifications/unsubscribe-auth/ABeNEprHm7rfBsw6Ply-bC3c6ftfMl_uks5rYYtDgaJpZM4JkiJC>
.
|
I don't have 7 so you're best equipped to answer your own question I guess. |
To answer my own question is, Xcode 8 needs migration to 2.3 and I better
do it once and migrate to 3.0. So for the time being i just need to know if
5.3.2 can work with swift 2.2 on Xcode 7. If i install 8, the minimum
version is automatically 2.3 = Force migration!
…On Thu, Feb 2, 2017 at 3:08 PM, Eddy Verbruggen ***@***.***> wrote:
I don't have 7 so you're best equipped to answer your own question I guess.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or mute the thread
<https:/notifications/unsubscribe-auth/ABeNEgP18VADi1UVr-xhYPDuBt_Owm6bks5rYY8KgaJpZM4JkiJC>
.
|
I meant your initial Q: "Hi, does the library works with XCode 7". |
Getting Log Error : Also not asking Permission Dialog to receive notification Anyone Face this issue..??? |
Share your project with me plz so I can take a look. Not a fragment, the entire thing. |
@EddyVerbruggen : thank you for your prompt response...
This is the main Module where I am initialize the Firebase... Error In the Xcode...
|
Don't do But the main problem is this error log message: |
@EddyVerbruggen : I have tried that too still getting the same Error.. !!! |
Great. That's why I need to look at your project. But until then, trial and error continues. Remove and re-add the ios platform forlder |
@EddyVerbruggen : I have remove and re-add iOS Platform still not getting Push Token in console as well as no Permission Dialog for Receive notification
|
Do you still have the Like I said: I need your project, otherwise this will go back and forth forever. If you can't send that, then provide me with a new project that reproduces the error. |
@EddyVerbruggen : give me 30 min. creating new project that produces the same error.. and share with you |
@EddyVerbruggen : Pls Check Demo to help me out from this issue... I have set up...
Running app pushDemo.xcworkspace getting following error.... So far no error for FIRMessaging but not getting Push Token... |
@dbenninger : I am facing the same problem.. Please help me out to solve the issue.. |
@pap5508, I would like to help you, but the uploaded PushDemo.zip is missing some important files (e.g. package.json). Could you please share the complete PushDemo project? Also I think it's weird that FIRMessaging is not logging anything. Did you run 'npm run setup' in the node_modules/nativescript-plugin-firebase folder? |
@dbenninger : thank you.. but I have solved the issue and working fine |
@pap5508 don't leave us hanging! What was the fix? |
Same issue here: FIRMessaging.messaging().connect { (error) in
if (error != nil) {
print("Unable to connect with FCM. \(error)")
} else {
print("Connected to FCM.")
}
} Error
|
Getting the following error when running FCM on iOS, but works fine in android.
CONSOLE LOG file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:347:14: Firebase FCM token received: fcCwcTew2Po:APA91bGjgIRM2Wqkw2uZH273AGvGT1-j2fZdjHz7aKGtzDqFB19W9VQYxwLzcPSnliF6zsGsixZ5xxGAkQvX4bwXoE9xM63wuKY_z9DZGbfNMs_UWer4kuCd36Re3X9SG8WU4-umr-3I Aug 15 17:21:09 Kamrans-MacBook-Pro Messaging[8276]: CONSOLE LOG file:///app/pages/home/home.js:20:20: Firebase push token: fcCwcTew2Po:APA91bGjgIRM2Wqkw2uZH273AGvGT1-j2fZdjHz7aKGtzDqFB19W9VQYxwLzcPSnliF6zsGsixZ5xxGAkQvX4bwXoE9xM63wuKY_z9DZGbfNMs_UWer4kuCd36Re3X9SG8WU4-umr-3I Aug 15 17:21:09 Kamrans-MacBook-Pro Messaging[8276]: CONSOLE LOG file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:356:18: Firebase was unable to connect to FCM. Error: Error Domain=com.google.fcm Code=501 "(null)"
The text was updated successfully, but these errors were encountered: