2

In my app, I have this:

[[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound];

However, when I send notification from my web server via ApnsPHP, badge is actualized, but there is no message on lock screen. Message can be found only in notification center.

Do I have to do something more to enable notifications on Lock Screen ?

Martin Perry
  • 9,232
  • 8
  • 46
  • 114

2 Answers2

1

Make sure that Do Not Disturb is turned off. Go to Settings > Do Not Disturb.

0

Hi you're json for push notification is not well formatted.Please look at this article

Small example :

"aps": {
         "badge": 11,
         "alert": "Hello world!"
    }
Oleg Gordiichuk
  • 15,240
  • 7
  • 60
  • 100