【发布时间】:2014-05-07 22:42:39
【问题描述】:
我正在尝试获取我设备的令牌。这么想的:
ParseInstallation parseInstallation = new ParseInstallation();
String deviceToken = (String) parseInstallation.get("deviceToken");
可以解决问题,但它不会,它返回 null。 为什么?
【问题讨论】:
-
你想要设备令牌或ID?
-
设备令牌,我想将它保存在数据库中,以便其他设备可以读取它并向它们发送内容。
-
你的
get-call 应该在Parse.initialize之后根据 parse.com 上的a similar question 进行
标签: android get devicetoken