{"action":"created","issue":{"url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38","labels_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38/comments","events_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38/events","html_url":"https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38","id":39233122,"number":38,"title":"Issue with latest version of Phonegap","user":{"login":"damok77","id":8323616,"avatar_url":"https://avatars.githubusercontent.com/u/8323616?v=3","gravatar_id":"","url":"https://api.github.com/users/damok77","html_url":"https://github.com/damok77","followers_url":"https://api.github.com/users/damok77/followers","following_url":"https://api.github.com/users/damok77/following{/other_user}","gists_url":"https://api.github.com/users/damok77/gists{/gist_id}","starred_url":"https://api.github.com/users/damok77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damok77/subscriptions","organizations_url":"https://api.github.com/users/damok77/orgs","repos_url":"https://api.github.com/users/damok77/repos","events_url":"https://api.github.com/users/damok77/events{/privacy}","received_events_url":"https://api.github.com/users/damok77/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-31T20:16:06Z","updated_at":"2015-04-18T15:11:13Z","closed_at":"2014-07-31T20:41:53Z","body":"I've had a working version of the pushwoosh plugin until I just updated it.\r\n\r\nI'm using 3.5.0-0.20.10 of Phonegap and the latest version of the pushwoosh plugin from Github. \r\nNo I get the following during the initialization.\r\n\r\n~07-31 21:10:26.131: W/System.err(1443): org.json.JSONException: Index 0 out of range [0..0)\r\n07-31 21:10:26.131: W/System.err(1443): \tat org.json.JSONArray.get(JSONArray.java:263)\r\n07-31 21:10:26.135: W/System.err(1443): \tat org.json.JSONArray.getJSONObject(JSONArray.java:480)\r\n07-31 21:10:26.135: W/System.err(1443): \tat com.pushwoosh.plugin.pushnotifications.PushNotifications.initialize(PushNotifications.java:151)\r\n07-31 21:10:26.135: W/System.err(1443): \tat com.pushwoosh.plugin.pushnotifications.PushNotifications.execute(PushNotifications.java:361)\r\n07-31 21:10:26.139: W/System.err(1443): \tat org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)\r\n07-31 21:10:26.139: W/System.err(1443): \tat org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)\r\n07-31 21:10:26.143: W/System.err(1443): \tat org.apache.cordova.PluginManager.exec(PluginManager.java:227)\r\n07-31 21:10:26.143: W/System.err(1443): \tat org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)\r\n07-31 21:10:26.147: W/System.err(1443): \tat org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:227)\r\n07-31 21:10:26.147: W/System.err(1443): \tat android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)\r\n07-31 21:10:26.147: W/System.err(1443): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n07-31 21:10:26.151: W/System.err(1443): \tat android.os.Looper.loop(Looper.java:137)\r\n07-31 21:10:26.151: W/System.err(1443): \tat android.app.ActivityThread.main(ActivityThread.java:4745)\r\n07-31 21:10:26.155: W/System.err(1443): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n07-31 21:10:26.155: W/System.err(1443): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n07-31 21:10:26.155: W/System.err(1443): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\n07-31 21:10:26.159: W/System.err(1443): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n07-31 21:10:26.159: W/System.err(1443): \tat dalvik.system.NativeStart.main(Native Method)\r\n07-31 21:10:26.163: D/PushNotifications(1443): Plugin Called\r\n07-31 21:10:26.167: W/System.err(1443): java.lang.NullPointerException\r\n07-31 21:10:26.167: W/System.err(1443): \tat com.pushwoosh.plugin.pushnotifications.PushNotifications.internalRegister(PushNotifications.java:183)\r\n07-31 21:10:26.170: W/System.err(1443): \tat com.pushwoosh.plugin.pushnotifications.PushNotifications.execute(PushNotifications.java:368)\r\n07-31 21:10:26.170: W/System.err(1443): \tat org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)\r\n07-31 21:10:26.174: W/System.err(1443): \tat org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)\r\n07-31 21:10:26.174: W/System.err(1443): \tat org.apache.cordova.PluginManager.exec(PluginManager.java:227)\r\n07-31 21:10:26.174: W/System.err(1443): \tat org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)\r\n07-31 21:10:26.178: W/System.err(1443): \tat org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:227)\r\n07-31 21:10:26.178: W/System.err(1443): \tat android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)\r\n07-31 21:10:26.178: W/System.err(1443): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n07-31 21:10:26.182: W/System.err(1443): \tat android.os.Looper.loop(Looper.java:137)\r\n07-31 21:10:26.182: W/System.err(1443): \tat android.app.ActivityThread.main(ActivityThread.java:4745)\r\n07-31 21:10:26.186: W/System.err(1443): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n07-31 21:10:26.190: W/System.err(1443): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n07-31 21:10:26.190: W/System.err(1443): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\n07-31 21:10:26.190: W/System.err(1443): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n07-31 21:10:26.194: W/System.err(1443): \tat dalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\nplease please help ,  if I do not get a solution I will have to use something else"},"comment":{"url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/comments/94173371","html_url":"https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38#issuecomment-94173371","issue_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-phonegap-3.0-plugin/issues/38","id":94173371,"user":{"login":"Pmagz","id":5755004,"avatar_url":"https://avatars.githubusercontent.com/u/5755004?v=3","gravatar_id":"","url":"https://api.github.com/users/Pmagz","html_url":"https://github.com/Pmagz","followers_url":"https://api.github.com/users/Pmagz/followers","following_url":"https://api.github.com/users/Pmagz/following{/other_user}","gists_url":"https://api.github.com/users/Pmagz/gists{/gist_id}","starred_url":"https://api.github.com/users/Pmagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pmagz/subscriptions","organizations_url":"https://api.github.com/users/Pmagz/orgs","repos_url":"https://api.github.com/users/Pmagz/repos","events_url":"https://api.github.com/users/Pmagz/events{/privacy}","received_events_url":"https://api.github.com/users/Pmagz/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T15:11:13Z","updated_at":"2015-04-18T15:11:13Z","body":"Hi Damok, im having this issue, kindly elaborate your solution"}}