iPhone设备令牌的大小 [英] Size of iPhone device token

查看:231
本文介绍了iPhone设备令牌的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是的APN产生的设备令牌(苹果推送通知)的大小。我想令牌设备上存储在MySQL数据库服务器端,并想知道设备生成的令牌最大尺寸

What is the size of the device token generated by APNs (Apple Push Notification). I am trying to store device tokens on the server side in a mysql database, and would like to know maximum size of device tokens generated

推荐答案

您得到告知,但它目前32个字节。

You get told but it's currently 32 bytes.

当你得到它有一个头,在目前大小35个字节的通知。这个安排如下:

When you get a notification it has a header, currently 35 bytes in size. This is arranged as follows:


  • 字节1:命令

  • 字节2-3:令牌长度

  • 字节4-35:令牌

  • Byte 1: Command
  • Byte 2-3: Token length
  • Bytes 4-35: Token

来源: http://mark.aufflick.com/files/view/讲座/ apns.pdf

这篇关于iPhone设备令牌的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆