iOS Push Notification code execution on receive
问题 I am developing messaging app for iOS. I keep users' phone numbers to the server but I don't keep contact names on the backend side. When the user receives push notification from the server, server sends phone number and message content to the user in notification payload. I implemented application:didReceiveRemoteNotification:fetchCompletionHandler method to show local notification. I look up in local database for phoneContactName:phoneNumber pair and show local notification in the format: