4

I may sound like noob but I faced a problem and not able to find the solution. I searched all over the google and nothing.

Here is the problem. I have an app that should receive push notifications. Until iOS 10 everything worked perfect, but now I am not able to receive notifications with my PEM file, instead I can receive them with my P12 file, but PHP won't accept P12, so I am stuck.

I have created my pem-s using this thread link
In my app code is written based on this link

One more thing.

I have tested my push notificatoins also using this website http://pushtry.com/ and in case I use PEM file and TEXT mode, I can receive push, but PEM file and JSON mode does not work. P12 works with both.

I don't know what to do. Please helppppp!!!!

Community
  • 1
  • 1
Garnik
  • 423
  • 1
  • 6
  • 20

1 Answers1

0

I have found a solution, hope it will solve your problem.

  1. First, use this link: http://apns-gcm.bryantan.info/ and follow their instructions , instead of pushtry.com
  2. Implement all the methods related to remote notifications and make sure all these are updated.
  3. If by mistaken or accidentally your app not enabled notifications for background mode then refer this link: https://www.iphonemanager.org/ios-11-notifications-not-working.html

I have followed these instructions and at my end apns is working.

Gourav Joshi
  • 2,419
  • 2
  • 27
  • 45
  • for steps 1, I can receive my push via .PEM file that generated earlier. But when I put this .PEM file to server, it does not work, any idea? – AD Tee Mar 14 '19 at 03:46
  • May be there will be server end or backend issue....If you are getting notification via step 1, then there is no issue in pem or code.... You must need to discuss with your backend team – Gourav Joshi Mar 14 '19 at 05:46