{"action":"created","issue":{"url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/3","labels_url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/3/comments","events_url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/3/events","html_url":"https://github.com/pushio/PushIOManager_Android/issues/3","id":58651871,"number":3,"title":"Emulator crash on virtual devices without required Google Play Services version","user":{"login":"troyjperales","id":4922168,"avatar_url":"https://avatars.githubusercontent.com/u/4922168?v=3","gravatar_id":"","url":"https://api.github.com/users/troyjperales","html_url":"https://github.com/troyjperales","followers_url":"https://api.github.com/users/troyjperales/followers","following_url":"https://api.github.com/users/troyjperales/following{/other_user}","gists_url":"https://api.github.com/users/troyjperales/gists{/gist_id}","starred_url":"https://api.github.com/users/troyjperales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troyjperales/subscriptions","organizations_url":"https://api.github.com/users/troyjperales/orgs","repos_url":"https://api.github.com/users/troyjperales/repos","events_url":"https://api.github.com/users/troyjperales/events{/privacy}","received_events_url":"https://api.github.com/users/troyjperales/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-23T21:31:46Z","updated_at":"2015-02-23T22:58:04Z","closed_at":null,"body":"I am seeing the following crash when I attempt to use an emulator. The emulator includes Google APIs and an added Google account.\r\n\r\n>      Caused by: java.lang.NullPointerException\r\n>            at com.pushio.manager.PushIOManager.scheduleRegistration(PushIOManager.java:193)\r\n>            at com.pushio.manager.PushIOManager.registerCategories(PushIOManager.java:354)\r\n>            at com.pushio.manager.PushIOManager.registerCategory(PushIOManager.java:329)\r\n\r\nPrior to this I am seeing the following:\r\n\r\n>      D/pushio﹕ Push IO Manager - version: 2.11.1\r\n>      D/pushio﹕ Detecting notification service...\r\n>      W/pushio﹕ GCM not found. Trying ADM.\r\n>      W/pushio﹕ ADM not found. Device supports no known notification services.\r\n>      D/pushioconfig﹕ Error reading local pushio_config_adm.json. Ensure that you have downloaded\r\n>            the pushio_config_adm.json from manage.push.io, and include it in your application\r\n>            assets.\r\n>      java.io.FileNotFoundException: pushio_config_adm.json\r\n>            at android.content.res.AssetManager.openAsset(Native Method)\r\n>            at android.content.res.AssetManager.open(AssetManager.java:315)\r\n>            at android.content.res.AssetManager.open(AssetManager.java:289)\r\n>            at com.pushio.manager.PushIOConfig.createPushIOConfigFromAssets(PushIOConfig.java:137)\r\n>            at com.pushio.manager.PushIOManager.<init>(PushIOManager.java:101)\r\n>            at com.pushio.manager.PushIOManager.getInstance(PushIOManager.java:75)\r\n>            at com.foxnews.android.FNApplication.onCreate(FNApplication.java:107)\r\n>            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)\r\n>            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)\r\n>            at android.app.ActivityThread.access$1300(ActivityThread.java:141)\r\n>            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)\r\n>            at android.os.Handler.dispatchMessage(Handler.java:99)\r\n>            at android.os.Looper.loop(Looper.java:137)\r\n>            at android.app.ActivityThread.main(ActivityThread.java:5041)\r\n>            at java.lang.reflect.Method.invokeNative(Native Method)\r\n>            at java.lang.reflect.Method.invoke(Method.java:511)\r\n>            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n>            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n>            at dalvik.system.NativeStart.main(Native Method)"},"comment":{"url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/comments/75656455","html_url":"https://github.com/pushio/PushIOManager_Android/issues/3#issuecomment-75656455","issue_url":"https://api.github.com/repos/pushio/PushIOManager_Android/issues/3","id":75656455,"user":{"login":"HiroProt","id":2553,"avatar_url":"https://avatars.githubusercontent.com/u/2553?v=3","gravatar_id":"","url":"https://api.github.com/users/HiroProt","html_url":"https://github.com/HiroProt","followers_url":"https://api.github.com/users/HiroProt/followers","following_url":"https://api.github.com/users/HiroProt/following{/other_user}","gists_url":"https://api.github.com/users/HiroProt/gists{/gist_id}","starred_url":"https://api.github.com/users/HiroProt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiroProt/subscriptions","organizations_url":"https://api.github.com/users/HiroProt/orgs","repos_url":"https://api.github.com/users/HiroProt/repos","events_url":"https://api.github.com/users/HiroProt/events{/privacy}","received_events_url":"https://api.github.com/users/HiroProt/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T22:58:04Z","updated_at":"2015-02-23T22:58:04Z","body":"We're working on an SDK update that will automatically address this, but until that's released (no ETA yet), we recommend only calling ensureRegistration if the GPS is up-to-date."}}