Push Notification Certificates

6 posts, 0 answers
  1. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 29 Aug 2013 Link to this post

    All,

    Color me confused...

    I am trying to figure out the Push Certs portion of the Everlive Push Notification festivities. I have read through the instructions a few times and have created APNS certs for other apps, but I am getting push errors when attempting to enable push using the Everlive Javascript SDK. 

    I have created my PROD APNS cert following the typical path using a csr generated from my machine. I then downloaded the push cer file, exported it to p12, and uploaded it to Everlive as my PROD APNS cert. No dice. 

    Then it dawned on me to use the csr created by Icenium Mist that I used for my ADHOC cert and mobileprovision. I tried this, and created my APNS cert using the Icenium cer file. Since the csr wasn't created on my machine though, I don't have a key on the APNS cert in my keychain so I can't export it to p12.

    What am I missing? I think I am close here since the emulation mode works so it isn't a code issue. 

    If anyone can clarify the push cert process for me, particularly how the coordination between Everlive and Icenium, I would appreciate it. 

    Thanks,
    Bruce
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Aug 2013 Link to this post

    Hi Bruce,

    For iOS devices, you should meet the following prerequisites:

    • Verify that you have created and added a pair of matching certificate and provisioning profile in Icenium. For more information about certificates and provisioning profiles, see Configuring Code Signing for iOS Apps.
    • Verify that the App ID in the provisioning profile is enabled for push notifications.
      In the Identifiers section in the iOS Developer Center, select your identifier from the list and review the enabled services. If needed, click Edit and enable the missing functionality. If you modify an existing App ID, make sure to recreate the matching provisioning profile and import it into Icenium.
    • Verify that you have set the proper App ID for your application in the Project Properties dialog.
    • Verify that you have created an Apple Push Notification service SSL certificate in the Certificates section in the iOS Developer Center and added it in Icenium.
    • Verify that you have exported the P12 file for the Apple Push Notification service SSL cryptographic identity. For more information about how to export cryptographic identities from Icenium, see Export a Cryptographic Identity.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 02 Sep 2013 Link to this post

    Hi Steve,

    I am liking Everlive so far. Easy to use and configure. 

    I successfully uploaded my APNS dev and prod certs to Everlive. I can see I have one device registered, but when I send a notification, it shows it sent successfully to 0 devices. I have my onAndroidPushReceived and onIosPushReceived events wired with alerts, so assuming the message gets to the device, I should see it. The registration is pretty recent, so I don't think it is an issue of expiration. My app is built using my AD_HOC cert.

    As I was trying to send messages from the portal, it dawned on me to ask the question. How do I know which push platform the portal is using, DEV or PROD? I uploaded my certs for both, but there is no way I can see to determine which level I am using when sending. I am thinking this may be a "tunnel miss" where the message is being sent using DEV, but the device is listening on PROD or vice versa.

    I put a button in my test app to send a message and that sends but doesn't arrive as well...

    Is there something else I am missing?

    Thanks,
    Bruce
  4. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 02 Sep 2013 Link to this post

    Something I just noticed...

    In my code, 
    1) I see the enableNotification alert
    2) I see the registerNotification alert
    3) I see on the Portal, 1 device registered (created in code)
    4) I see the sendNotification alert
    5) I see on the Portal, 0 devices registered
    6) I see on the Portal, 1 new message (created in code) but 0 devices sent

    It seems that my registration is being deleted when my message is sent...
  5. Ivan Pelovski
    Admin
    Ivan Pelovski avatar
    16 posts

    Posted 03 Sep 2013 Link to this post

    Hi Bruce,

    We are glad that you are happy with Everlive. Here are the answers to the problems you described:
    "I can see I have one device registered, but when I send a notification, it shows it sent successfully to 0 devices."
    The number of devices, that were sent push messages to, is updated roughly on two hours so if you see 0 devices it does not mean no push messages are sent, Everlive just needs some time to update the number.
    "How do I know which push platform the portal is using, DEV or PROD?"
    When uploading a certificate file there is two radio buttons - Production and Development. Whichever button you select this is the environment that will be used when sending notifications to APNS.
    "It seems that my registration is being deleted when my message is sent..."
    When sending notifications to providers like APNS we check the responses for these notifications. If a response is the kind of invalid token, then we remove the device registration with this token. So what may happen is that you register a device with Development provision and then you try to send a notification in Production environment, or vice versa, in which case APNS will return invalid token response.

    Regards,
    Ivan Pelovski
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  6. Bruce
    Bruce avatar
    38 posts
    Member since:
    Oct 2009

    Posted 03 Sep 2013 Link to this post

    Hi Ivan

    Thanks for your reply. I checked my Everlive settings and set the radio to Production since I am using my ADHOC cert. That did the trick. I thought it was just used to add the certs, not to also set the environment. 

    Thanks,
    Bruce
Back to Top