We built an iOS app using Swift 4.x in Xcode 10.1. The app get push notification in my development iPhone 6 very well from other devices.
We published the app to TestFlight for beta testers. They install the app from TestFlight and get prompt to allow Notification. All went well. When they send me a message, I get Push Notification without any problem in my iPhone 6. But when I send them, no notification pops up on their screen.
Is it something related to code signing? Or what else I should check for.
Your suggestion is highly appreciated.
You need to replace the Push certificate on your Push API server. APNS Distribution certificate is to be used in your case.
for that,
you need to export that certificates from keychain as a .p12 Or .pem file and add it to server API( API which you are using to send push notification). and you will need to set push notification mode in server API to release mode to get push notification in testflight build.
you can export certificates of push by following steps in this link:
https://medium.com/#ankushaggarwal/generate-apns-certificate-for-ios-push-notifications-85e4a917d522
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.
Apple no longer provides separate Push Notification SSL certificates for Production and Development Apps.
Which may be causing Push Notification failures to newly submitted apps on the app store using the Appcelerator Platform
Instead Apple now provide the following 2 certificates:
"Apple Push Notification service SSL (Sandbox)" - works in
development
"Apple Push Notification service SSL (Sandbox &
Production)" - works in development But not in Production
Please see the certificates selection on the Apple Developer center
The Certificate's are no longer listed as:
APNs Developement iOS or APNs Production iOS
but NOW instead simply as Apple Push Notification
The new listing of APN certificates
These certificates installed and exported from my keychain as .p12 and uploaded and saved to my Appcelerator Platform as usual.
In Development
Push works as expected
In Production (ad Hoc or App Store Submissions)
Device registers to Push and retrieves a device token.
This is confirmed in the Appcelerator Platform
This is also confirmed on the device's APSD logs which are observed by downloading and installing PersistentConnectionLogging.mobileconfig on the device
This shows:
The device is enabled to receive Push from my bundle ID
The Device receives a device Token
When sending a simple Push Notification using Appcelerator Platform, the Success status is returned for all iOS devices (in test only one used)
However, no push notification is seen on the device (multiple devices tested).
I can see both Parse and Urban Airship have made some changes since Apple's change (Late Dec 2015)
Existing apps seem to have no problem. Only new Production Apps using the new Apple Push Notification Certificate seem to have an issue :(
The app code is working, and correct as Push is successfully delivered in Development for iOS, Android is working too.
I have also deleted and recreated provisioning profiles and push certificates to check configuration.
Anyone else seeing this issue too or am I going mad :)?
First Post here so please be gentle :) I have given my best effort to check for similar questions/answers and to give you guys the most info I can give.. any pointers to better frame the above are most welcome.
I am trying to send the push notification form Parse.com. I have tried sending it from website and through my app.
Basically I am in India and my friend is in California. When I try to deliver the push notification to me, it is delivered. But if I try to do the same for my friend,it is not being delivered...
Both of us have same iOS version, approved push notifications, etc..
I double checked my coding, certificates. Everything is perfect. So I wonder since I am using developer certificate will it only be delivered in my nation? Or what else could be wrong?
I could add my code here, but sending Push from website also delivered only to me but not to him...
I got the following error when I try to send a push only to him.
I think the issue is I am creating an ipa file of my app and send it to him through diawi.com. I run the app in y mobile though cable.
If I install the app in my device through ipa link, the push notification is not delivered. So the issue is with diawi.com?
Similar issue: check this question
Actually the issue was in the middle. After a lot of searching I found the answer:
For push notifications in Parse, I have only uploaded my developer certificate and it was working for iOS 8 versions. We recently upgraded to 9 and the push not delivered for ipa.
I have uploaded distribution certificate to parse and there you go... Push delivered.
But now I am unable to access contacts in ipa but can access if build via cable... I will look for an answer for this issue.
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.
If I share an ipa file to test my iOS app on colleague devices, are push notifications going to work ?
Do I need to register any new colleague profile / submit the devices on which the app is going to be installed ?
thanks
You need to sign the app with the same certificate created when you enabled Push Notifications for the app. When the testing user installs that app and accepts push notifications for this app, they will receive them, simple enough.