Home > php教程 > php手册 > ios推送服务,php服务端

ios推送服务,php服务端

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 19:40:37
Original
1037 people have browsed it

NSString* nsalert = [[userInfo objectForKey:@aps] objectForKey:@alert]; if(nsalert [nsalert length] 0) { UIAlertView *pAlert = [[UIAlertView alloc] initWithTitle:@消息提示 message:nsalert delegate:self cancelButtonTitle:@详细 otherButtonTi

NSString* nsalert = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];

if(nsalert && [nsalert length] > 0)

{

        UIAlertView *pAlert = [[UIAlertView alloc] initWithTitle:@"消息提示"

                                                         message:nsalert

                                                        delegate:self

                                               cancelButtonTitle:@"详细"

                                               otherButtonTitles:@"关闭", nil];

        [pAlert show];

        [pAlert release];

}

CFShow([userInfo description]);

//接收到push  打开程序以后设置badge的值

NSString *badgeStr = [[userInfo objectForKey:@"aps"] objectForKey:@"badge"];

if (badgeStr != nil)

[UIApplication sharedApplication].applicationIconBadgeNumber = [badgeStr intValue];

//接收到push  打开程序以后会震动

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template