Friday, January 26, 2024
HomeiOS Developmentios - Silent push notification not working when telephone is locked

ios – Silent push notification not working when telephone is locked


I’ve implement silent push notification.
The silent push notification set off a operate that will probably be executed.

This all works when app is in background or killed state. However solely when iPhone is just not locked.

Why cannot the iPhone obtain the silent push when the iPhone is locked.

Do I would like some permissions or do I would like a selected operate within the AppDelegate.

As a result of the DidReceiveRemoteNotification is just not known as when telephone is locked. I can see that by seeing my logs. Or is it potential that logs will not be triggered when telephone is locked. And that the issue is inside my code.

Can anyone assist me additional with this

I’ve tried so as to add log to each the place within the operate that must be executed.

When telephone is just not locked is can see the log arising. And the operate did what I anticipated.

However in locked state I by no means see 1 single log.
Silly factor is after I unlocked the telephone. And get a brand new silent push I see the logs some occasions twice. So it appears prefer it was holding it and was being set off by the brand new one when it was not locked.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments