Hello I am new to IPhone.
I am working on Iphone app which receives push notifications successfully with development environment,but didn't receive notifications in adhoc distribution.
I have both certificates i.e development & production.
Can anyone tell me what am I missing?
AdHoc build receives no push notifications.
A basic notification includes a title, some text, an icon, and a link. A title can contain up to 65 characters, a description is generally limited to 240 characters.
In this example, YouTube app notifies app users about new uploads from channels they are subscribed to. The push action buttons allow users to control when they want to watch these videos by adding options such as 'Watch Later' and 'Others'.
As I posted yesterday as answer to the same question: (prev. answer)
I've similar problems. After making some test I reached the following conclusions:
If app (that was compiled with development provision profile
) is installed than such device has development token
and you should sent pushes to such device using development certificate
.
If app (that was compiled with distribution provision profile
) is installed than such device has production token
and you should sent pushes to such device using production certificate
.
And, If your app is not yet published, I think that APNS
will not accept production certificate
, so probably you won't be able to send push to your ad-hoc apps.
What you can do? For example, sent app to your testers that compiled with development certificate
.
UPDATED: I've learned this question one more time and found some interesting information:
Ad-hoc provision profile
.<key>aps-environment</key>
<string>production</string>
aps-environment
. Is it equal to production?
If yes then you should send to your ad-hoc apps push notification with production certificate
.
If the value is development
then you should send to your ad-hoc apps push notification with development certificate
.
Production Push SSL Certificate
is enabled.If this didn't help you then try to update your ad-hoc provisioning profile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With