Enabling iOS push notifications for the Chat SDK

Have more questions? Submit a request

9 Comments

  • song donghao
    Comment actions Permalink

    Our app used Token-based way to use APNs, do you support this way?

    0
  • Greg - Community Manager
    Comment actions Permalink

    Hi Song, at this time, we do not support token-based APNs. You would need to use the methods described in this article.

    Greg Katechis | Developer Support and Enablement Engineer

    0
  • Thomas Delgado
    Comment actions Permalink

    Hi, I've followed the steps above and was able to create the PEM successfully, but when I'm uploading the file I'm getting a "PEM file is invalid". 

    https://www.dropbox.com/s/is47ltgb0au59zy/Screenshot%202020-06-13%2016.57.59.png?dl=0

    Then I've headed to the link that was showing on the screenshot, but that doc looks like is missing some steps. The command indicates to combine two previous PEM files (which I don't have). So I guessed that was refering to .p12 and .cer files, but couldn't make it work as well. 

    The second doc is this one -> https://developer.zendesk.com/embeddables/docs/ios-chat-sdk/push_notifications


    Could you guys please help me out? 😅

    Thaaaanks! 

    0
  • Greg - Community Manager
    Comment actions Permalink

    Hi Thomas Delgado! The easiest way to determine if the .pem file is working correctly is to go to Step 3 above and see if you receive a successful connection with the APNS server. If it fails there, there is likely a step that you had missed in the documentation, as I have followed this to the letter and successfully set this up. Let me know the results of Step 3 and we'll figure out where to go from there!

    0
  • Thomas Delgado
    Comment actions Permalink

    Hi Greg - Community Manager! Thanks for replying! 
    Yes, I did the third step and everything looks fine (https://www.dropbox.com/s/7mydflsqjhuzqgc/Screenshot%202020-06-17%2016.16.36.png?dl=0).

    Based on that my guess would be something more required on the web platform, but I can't tell. 

    Cheers

    0
  • Greg - Community Manager
    Comment actions Permalink

    Thanks for checking that! I'm going to start fresh myself right now and see if I get different results. Give me a few minutes to wrap something else up and then I'll let you know what happens. If we get the same results, I'll check with our SDK team to help determine where this may be going sideways.

    1
  • Greg - Community Manager
    Comment actions Permalink

    Alright, so I just went through the above steps and I was able to successfully upload my .pem file to Chat, so I agree that maybe there is something else going on here, but I can't figure out what that might be. Just a shot in the dark...is your certificate a production cert or a development cert?

    0
  • Thomas Delgado
    Comment actions Permalink

    Hi Greg - Community Manager! I was using a production cert.

    Just to clear any doubt, I've created another certificate (which now you may choose between development and development + production). But still getting the same error. 

    0
  • Greg - Community Manager
    Comment actions Permalink

    Thanks for confirming that! I'm going to open up a ticket so that we can discuss setting up a Zoom meeting to troubleshoot this. I think that it will be best to see in real-time what might be going on and then to cover any other bases that may come up. You'll hear from me shortly regarding that!

    0

Please sign in to leave a comment.

Powered by Zendesk