IOS click push message jump processing
When the user enters the application by clicking the notification message
launchOptions
There will be userinfo information of the push message in. At this time, we can
Get push message content. If the remotenotification is not empty, it means that the user enters through a push message, and a property can be declared
It is used to identify whether the user enters the application by clicking the notification message. At this point,
It must be called and ios7 can be used
Because the mainviewcontroller has been initialized when this method is called, we can register the listening of push messages in the mainviewcontroller to display the corresponding views, as follows:
Therefore, in the didreceiveremotenotification of appdelegate, you can notify different presentation methods by judging islaunched bynotification.
Naobu a code that plays the vibrating sound when the push comes (not playing music)
Include header file first
Register a sound (in this case, use the default 1007 directly)
The above content is the relevant content of IOS click push message jump processing introduced by Xiaobian. I hope it will be helpful to you!