Handle the obtained remote push message in this method
-(void) Application: (UIApplication *) application didreceiveremotenotification: (nsdictionary *) userInfo Fetchcompletionhandler: (void (^) (uibackgroundfetchresult)) Completionhandler
{
Get APNs Standard Information content
Nsdictionary *aps = [UserInfo valueforkey:@ "APS"];
NSString *content = [APS valueforkey:@ "alert"]; Push the displayed content
if (content.length! = 0) {
if ([UserInfo valueforkey:@ "WEBURL"])
{
WEBURL = [UserInfo valueforkey:@ "WEBURL"];
Uialertview *alert = [[Uialertview alloc] Initwithtitle:nil
Message:content
Delegate:self
cancelbuttontitle:@ "Cancel"
Otherbuttontitles: @ "Go and see", Nil];
Alert.tag = 10000;
[Alert show];
}
Else
{
Uialertview *alert = [[Uialertview alloc] Initwithtitle:nil
Message:content
Delegate:nil
cancelbuttontitle:@ "know."
Otherbuttontitles:nil];
[Alert show];
}
}
}
Note: There is a page jump to the page
Push message, program is running when pop-up bullet box problem solved