After finishing Android push notification, i am working on IOS ANPs right now. But I can't receive any messages. Here is what I done:
Apply ios developer certificate, apn certificate, id and ...
export the .p12 apn cer and upload it in ios setting on your website.
export the xcode project, and run with all those certificate.
enable the app's notification on the iphone and run. In the log, you can see 'didRegisterForRemoteNotificationsWithDeviceToken:' and 'App successful registered at Appery Push service'.
send a message, but cannot receive any notification on the iphone.
To be clear:
I do define handler to handel incoming notification, everything works on Android.
My apple developer id is fine.
the id is fine and apn cer is on the same id.
So is there something that I missed? How to fix this?
By the way, it seems that all JS stops on IOS even when the screen is off. I don't want them run in background. But how to make them alive for just turn off the screen on IOS?