推送通知的 iOS 设备令牌示例 [英] iOS Device Token example for Push Notifications

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

问题描述

我需要通过 server auth 方法,该方法需要 deviceToken 进行注册.但是我只有模拟器,不能从它们那里获取令牌,我想发送到服务器假令牌(如 000 000 000)但我不知道设备令牌中有多少位数字.谁能帮我提供一个示例设备令牌?

I need to pass through server auth method, which needs deviceToken for registration. But I have only simulators, and can't take tokens from them, and I want to send to server false token (like 000 000 000) But I don't know how many digits are there in device token. Can anyone help me out with a sample device token?

推荐答案

设备令牌为 32 字节.raywenderlich

Device token is of 32 Bytes. Sample device token is provided for your reference from raywenderlich

740f4707 bebcf74f 9b7c25d4 8e335894 5f6aa01d a5ddb387 462c7eaf 61bb78ad

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

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