ios - Can I use didReceiveRemoteNotification to create local notifications? -


we planning have end end encryption in our messaging app, cannot display user message apns push notification message directly. planning send silent push notification, decrypt message in ios app's background mode , display plain text message local notification

- (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo fetchcompletionhandler:(void (^)(uibackgroundfetchresult result))handler 

yes, event send silent notification (using contentavailable flag in payload) use notification notify app of message availability, in delegate method downloads message database on secure servers pushes local notification device saying.

that way aren't giving apple opportunity decrypt message because won't go through servers.


Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -