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
Not receiving push notifications in prod (or ad hoc build) #207
Comments
Hi guys, Still have this problem, any idea ? Thanks in advance |
Same here. Moreover, I don't get notifications in ad hoc build at all. Is it possible that if build an app for App Store it will work? If it's not the reason, then why it's happening? Update:
With
In all cases What could possibly go wrong? |
Hello everyone, I have the same problem... While developing an app everything works perfect (with the Firebase Console). After deploying an app to the TestFlight, push notifications stop working... Has anyone managed to resolve it? |
Hey guys, I just find a way to solve it. I revoked all certification (on my apple developper account and firebase), recreated and reuploaded. Now, everything works. |
@shinzao Hi! Could you please be more specific, did you revoke all certificates or just for push notifications? And how do you revoke certificates on firebase? Thanks in advance! Update: |
@snok3r, About the Also, you revoke a certificate from this page, specifically, the ones with the type |
@revolter thanks! You mean @shinzao About provisioning profiles, did you create them on your own like Firebase tutorial says or let XCode to do it? |
It finally worked! |
@snok3r, Glad it worked, you're welcome. |
@snok3r --and not revoke my Apple Push Services Certificate? from my "developer account" |
@xhidnoda hi! Yes, I have the same |
THANKS @snok3r Apparently the only solution is:
Will confirm this...later |
Finally work for me... Here my steps: 1 - Make sure to Enable FirebaseAppDelegateProxyEnabled to YES in the info.plist Thanks to all..! |
@xhidnoda I tried your solution starting from the beginning and it finally worked ! Not sure but the only thing I remember doing different was exporting the APN certificate by selecting both certificate and private key. This time I exported only the certificate without the private key. |
@snok3r @revolter Hi guys! Did you have a problem about that: |
@canny09 I am facing the same problem. Did you get any solution? |
@rahulgarg12 Hi ! I got the problem because I set |
@canny09 Yes everything works fine when i enable Method Swizzling. But when I disable it and set token programmatically, on prod instance id is nil everytime and |
@rahulgarg12 YES! The situation same as yours. En.. I also want to know the reason. |
Same here for iOS. I have the same notification sent to both Android & iOS. Android always receives them and iOS does for a while (maybe a week or 2) then suddenly stops until I go to the firebase console and manually send to the device. This also doesn't work at first, then it starts to work when I send my second notification. |
Is is better to use the new .p8 file instead of the .p12 in firebase? Looks like easier to me. |
@jrbecart Yeah, the new .p8 file is Apple's new authentication system and it works much better than the previous .p12 certificates, because:
Be sure you're using the new FCM iOS SDK (version 2.x, as part of Firebase 4.x rolled out in May 2017) |
I think, I have the same kind of problem when app is in prod. |
Similar issue happen to me, I added Push Notifications to an existent app, tested by running using Xcode to my device and it worked well, but when when created the Archive and installed via iTunes, it didn't receive Push Notifications. |
@xhidnoda -- your solution worked for me thanks |
I have faced similar issue but after Enable FirebaseAppDelegateProxyEnabled to YES in the info.plist.it is working fine ios 12 but still in ios 10.3.3 push notification not working.Any one face these kinda problem ?? Please help me |
In addition to everything that is said about rebuilding the push certificates and the possible regeneration of the provisioning profile and the upload of new .p12 to Firebase. We found two possible solutions: Summarizing.-
|
The error commented by Norter is caused because the reference to the entitlments file is lost. If you go to inactive capabilites and re-activate the push option, you will recreate it. When generating the ipa it is necessary to see that the APS Environment property comes out to production. I'm Norter's partner: D |
This issue is not closed at all as flutter plugins faced that or you guys would have fixed on your iphone device what about others iphone devices ??? have you all guys tested that. fluter is generating duplicate and also invalid firebase messaging token after 1 day gap they actually started sending those notifications but this is not a proper solution |
I'm experiencing something similar |
Hi, I have exactly le same problem that the issue #201 ,
Into my .plist, I have :
And into my Delegate, I've tried many things like :
FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: FIRInstanceIDAPNSTokenType.sandbox)
or
FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: FIRInstanceIDAPNSTokenType.prod)
or with .unknown also. Everything work in development but not in prod (or ad Hoc).
This is a screenshot of my code :
Do you have an idea ?
Thanks in advance,
Antoine
The text was updated successfully, but these errors were encountered: