I have an app that support push notification through firebase.
when I was testing the app on dev it was working and I got push notification, now after I download the app from testFlight the app is working but I can't get push notification. in the developer page of apple
developer.apple.com
in app IDs and then to my app the push notification tab is enable but then when I press on it I see I have certification only for Development SSL Certificate but not in Production SSL Certificate.
When I try to send notification through the console of firebase im getting faild with the error:
invalid team id key id and apns auth key combination
Do you think the problem is there? How can I solve it?
solution:
my issue was that I didn't have certification for production in firebase and iTunes connect in push notification I had only for develop
Thank you
Testflight is a production enviroment, thats why you can't send notifications, you need to change, to
Messaging.messaging().setAPNSToken(deviceToken, type: MessagingAPNSTokenType.sandbox) <---- "MessagingAPNSTokenType.prod"
and upload the production certificate to firebase
Related
Facing some issues trying to get push notifications sent to an app downloaded from app center. I have noticed that the device token being sent to our registration service depending on which build I use (direct build from xcode vs download from appcenter). The deviceToken from the xcode build is able to receive push notifications but nothing comes in from the appcenter build. Both are using the same p8 certificate and appId. Any help is appreciated, Thanks.
Check if you have configured the production certificate properly inside the apple developer app settings (inside apple account) and inside the Push Notification Sender Party. That what causing you to not receiving notification.
You might have configured only development certificates.
Steps that I have done till now are as below :
Made provisioning profile,csr, fcm token,device registration also done.
Linked APN certificate with firebase account where my app is registered.
Enabled push notification from xcode.
Also tested push notification on https://pushtry.com/ it showed success. but still not receiving push notifications on my iphone.
I have done above all steps correctly but still not receiving push notification, I also tried sending notification through firebase panel but still was unsuccessful.
I have used cordova-plugin-firebase for generating fcm token and registering device to APN server.
I have created APN certificate .p12 file and also added that in FCM configuration panel.
please help where I am getting wrong??
I have tested push notifications as a developer account and it worked, But when I tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received. So is there a kind of certificate that I need to generate for TestFlight or there is some issues in my profiles?
Push notification works when I install the app through XCode, but when I install it from test flight it is not working.
Problem is that your are using development APNS certificate.
For TestFlight users you need to send push notifications with production APNS (because when your are creating archive of your project, it's generated with release build settings). You can generate it in apple's developer portal: in your application settings page.
Yes, GhKaren is right. You have to use Production APNS when you upload app on itunesconnect and distribute it on Test-flight.
I am trying to implement PUSH notification in my Hybrid Application. I followed the procedures as specified in the link below.
TELERIK PUSH NOTIFICATION TUTORIAL
I have production certificate and corresponding APNS Certificate. Along with this i have the app manager push notification certificate. So the 2 APNS are mapped to my production certificate. I am able to register my devices for the push notification and can view them in the devices section. But when i try to send the push notification i get the following error.
Apple notification service connection couldn't be established due to invalid key/certificate.
The push notification for the Telerik App Manager Works fine and i am having issue with the push notification to my App. I tried recreating the certificates and still having issue. The app that i am trying to create is an enterprise app.
Can anyone suggest a solution to this problem....
After so much debugging and test runs i got a solution for this. The tutorial in Telerik Doc does not specify which certificate is to be uploaded in the back end.
In the Telerik backend we need to upload the APNS p12 certificate and not the apps p12 certificate.
Hope this helps some who encounters the same scenario.
I've been working on an app for a while that uses push notifications from the chat module of QuickBlox.
I've been testing the push notifications on my iPad and it works fine (Developer Device). I've added both of the certificates to QuickBlox and both are active(Developer & Production).
The production devices are being registered for remote notifications and they are showing that they registered for production push notifications. When I send a message to a developer device it receives the notification and it works fine, however when I send to a production device its not received.
If I try to send a push notification to production users from the admin panel it gets sent, but non receive it. The production users are internal and external testers in TestFlight. I heard the TestFlight testers have to use a production certificate so thats why I'm registering them as so. When I archive the build going to the store I make sure that I do it using the production provisioning profile. I don't know what else to do :O
Thanks in advance
edit: I tried using push notification tester for the certificate and it worked fine. It pushed and the push notification was received to the production device. Still not working on QuickBlox
I tried to remove the certificate and then add it again, but that didn't help. I had to revoke my certificate then create a new one. After I added it, it took a good few hours until the notifications started to work. Must have been an issue with QuickBlox.