4
votes

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!!!!

1
Are you sure you're using the production server and certs?TheValyreanGroup
for 1000000000%Garnik
Export .p12 file with entering a password. and when generating PEM again enter the password when required.Im Batman
Believe me I have done that for 100 times.. it does not work... I am able to receive the push with the same p12 but not able with PEM of the same p12Garnik
Same issue happening with me, I also can not find how to solveManab Kumar Mal

1 Answers

0
votes

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.