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
Post a Comment