Monday 15 February 2010

javascript - Cordova processMessage failed: Stack: undefined (and) Error: illegal access -


I am trying to get regId through this GCM.

I can not find a transcript of a document 'Invalid access' error message ... Looks like a permissible thing. The notification functions on the GCM ping a log message, it indicates execution Error message:

  Process message failed: Stack: Undefined process message failed: Error: Invalid access process message failed: Message: Jjavascript: onNotificationGCM ({\ "Regid \": \ "APA91bGQkVTa6KGBQzNz9spnYgYEL6RSJKyyoNh5GnhrkD04wVgm1detXbuATLRC_Evjduv 4NCPZWzw_Q-ilEl4U_XBjibiSHPgzWEoO0_VBqB6HT_TDNMsJoxoGZu1ZXyFZNDXQawCJxv5KcQiCp7zmbaICt9n4TQ \ ", \" event \ ": \" registered \ "})    

Ok, go figure. It seems that I was trying to parse JS object with JSON.parse, which was also searched through - erases these 'invalid access' errors once When I made sure that the JSON passed in the message was a string before parsing, the errors disappeared and the regId was successful That was managed. W00t.

No comments:

Post a Comment