Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push Notification Issue in Adhoc Distribution

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?

like image 791
Shashank_Itmaster Avatar asked Oct 12 '11 08:10

Shashank_Itmaster


People also ask

Can we receive push notifications in AdHoc certified test build?

AdHoc build receives no push notifications.

What are the limitations of 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.

What is an example of a push notification?

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'.


1 Answers

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:

  1. 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.

  2. 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:

  1. Download your Ad-hoc provision profile.
  2. Open provision profile from 1. with text editor.
  3. Search for lines <key>aps-environment</key> <string>production</string>
  4. Check the value of the key aps-environment. Is it equal to production?
  5. 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.

  6. Now open iOS Provisioning Portal -> App IDs. Select your app.
  7. Check if Production Push SSL Certificate is enabled.

If this didn't help you then try to update your ad-hoc provisioning profile.

like image 153
Nekto Avatar answered Sep 19 '22 17:09

Nekto