You can get the notification content, If the application is in the background, clicking the application icon will not call other proxy methods for notifications unless you click the banner. There is nothing unreasonable in this, and it is the same for many applications. For processing, the application is in the foreground and will only follow the method you mentioned after receiving the push. In addition, if you implement
Try the project configuration
Capabilities BackgroundModes -> ON select RemoteNotification
This is a normal situation. This function is originally triggered after clicking on the notification
If your application is started, click the application icon to start, it will be in
The Key value inis as follows
You can get the notification content,
If the application is in the background, clicking the application icon will not call other proxy methods for notifications unless you click the banner. There is nothing unreasonable in this, and it is the same for many applications. For processing, the
application is in the foreground and will only follow the method you mentioned after receiving the push. In addition, if you implement
Then it will be called in this method, and the method you mentioned will be abolished.