开发者

does anybody know the apns messages used for standard things - like beep

开发者 https://www.devze.com 2023-02-12 14:07 出处:网络
Apples me app can make a phone beep or display a message. I assume this is done via APNS talking to ios dire开发者_StackOverflow中文版ctly. Does anybody know what these messages are (Apple doesnt seem

Apples me app can make a phone beep or display a message. I assume this is done via APNS talking to ios dire开发者_StackOverflow中文版ctly. Does anybody know what these messages are (Apple doesnt seem to document them)


This is really a server development question... but either case, when using PHP, you just tag a sound key into an array which you pass to an Apple APNS server. Here is the tutorial I used a while ago: APNS tutorial

You'll notice the sound option in the payload array:

$payload['aps'] = array('alert' => 'This is the alert text', 'badge' => 1, 'sound' => 'default');
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号