Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 1 个设备生成设备令牌,但为什么不为其他设备生成它。我将该值存储在解析中,缺少第二个设备令牌。
为其他设备生成设备令牌的解决方案是什么?
如果您指的是 GCM 设备令牌,那么您应该知道 Android 设备生成设备令牌需要时间。这个过程发生在另一个线程中。因此,当设备将数据上传到您的服务器时,您的设备可能尚未生成设备令牌。