0

I'm trying to get this GCM regId via PushPlugin.

I can't find any documentation per 'illegal access' error message... sounds almost like a permissions thing. The JS function onNotificationGCM pings a log message, indicating it's execution...

Error message:

processMessage failed: Stack: undefined
processMessage failed: Error: illegal access
processMessage failed: Message: Jjavascript:onNotificationGCM({\"regid\":\"APA91bGQkVTa6KGBQzNz9spnYgYEL6RSJKyyoNh5GnhrkD04wVgm1detXbuATLRC_Evjduv4NCPZWzw_Q-ilEl4U_XBjibiSHPgzWEoO0_VBqB6HT_TDNMsJoxoGZu1ZXyFZNDXQawCJxv5KcQiCp7zmbaICt9n4TQ\",\"event\":\"registered\"})
4

1 回答 1

1

嗯,去图吧。似乎我试图用 JSON.parse 解析一个 JS 对象,它——也通过这篇文章发现——抛出了这些“非法访问”错误。一旦我在解析 JSON 之前确定传入的 msg 是一个字符串,错误就会消失并且 regId 被成功处理。w00吨。

于 2013-06-20T17:56:14.847 回答