/*
Agent in the method has to determine whether it is by clicking the notification into the program, this can be used in QQ click the notification to enter the appropriate interface
*/
Create a notification
Uilocalnotification * Localnote = [[Uilocalnotification alloc]init];
Setting properties
Localnote.alertaction = @ "Start playing the game"; Action Title
Localnote.alertbody = @ "I am the subject of the display"; Theme
Localnote.repeatinterval = nscalendarunitminute;//One minute prompt
Localnote.applicationiconbadgenumber = 4;//Icon displays the number
Localnote.alertlaunchimage = @ "";//click the notification to open the app when you start the picture
Localnote.firedate = [NSDate datewithtimeintervalsincenow:3]; Start time (calculated from program entry to background)
Registration Notification (ADD)
UIApplication * app = [uiapplication sharedapplication];
[App Schedulelocalnotification:localnote];
Push ———— (local notification)