{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/68","repository_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase","labels_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/68/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/68/events","html_url":"https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/68","id":164204984,"number":68,"title":"firebase.login error","user":{"login":"Nikoms","id":375867,"avatar_url":"https://avatars.githubusercontent.com/u/375867?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikoms","html_url":"https://github.com/Nikoms","followers_url":"https://api.github.com/users/Nikoms/followers","following_url":"https://api.github.com/users/Nikoms/following{/other_user}","gists_url":"https://api.github.com/users/Nikoms/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikoms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikoms/subscriptions","organizations_url":"https://api.github.com/users/Nikoms/orgs","repos_url":"https://api.github.com/users/Nikoms/repos","events_url":"https://api.github.com/users/Nikoms/events{/privacy}","received_events_url":"https://api.github.com/users/Nikoms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-07T00:33:55Z","updated_at":"2016-07-08T09:50:16Z","closed_at":"2016-07-07T21:22:49Z","body":"Hello there,\r\n\r\nI'm using firebase with the last version of nativescript (2.1.1), and I get an error when I try to login:\r\n\r\n\r\n> JS: Error in firebase.login: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference\r\nJS:     com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)\r\nJS:     com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)\r\nJS:     com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(Unknown Source)\r\nJS:     com.tns.Runtime.runModule(Native Method)\r\nJS:     com.tns.Runtime.runModule(Runtime.java:241)\r\nJS:     com.tns.Runtime.run(Runtime.java:235)\r\nJS:     com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\nJS:     android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1036)\r\nJS:     android.app.ActivityThread.handleBindApplication(ActivityThread.java:6321)\r\nJS:     android.app.ActivityThread.access$1800(ActivityThread.java:222)\r\nJS:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1861)\r\nJS:     android.os.Handler.dispatchMessage(Handler.java:102)\r\nJS:     android.os.Looper.loop(Looper.java:158)\r\nJS:     android.app.ActivityThread.main(ActivityThread.java:7229)\r\nJS:     java.lang.reflect.Method.invoke(Native Method)\r\nJS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)\r\nJS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)\r\n\r\n\r\nI just do this on my \"init\" promise:\r\n\r\n`firebase.login({\r\n      type: firebase.LoginType.ANONYMOUS\r\n    }).then(\r\n        function (result) {\r\n          console.log('ok');\r\n        },\r\n        function (errorMessage) {\r\n          console.log('ko');\r\n        }\r\n    );\r\n`\r\n\r\nI don't know if it's related to firebase or this plugin or android?"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/comments/231320440","html_url":"https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/68#issuecomment-231320440","issue_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-plugin-firebase/issues/68","id":231320440,"user":{"login":"Nikoms","id":375867,"avatar_url":"https://avatars.githubusercontent.com/u/375867?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikoms","html_url":"https://github.com/Nikoms","followers_url":"https://api.github.com/users/Nikoms/followers","following_url":"https://api.github.com/users/Nikoms/following{/other_user}","gists_url":"https://api.github.com/users/Nikoms/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikoms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikoms/subscriptions","organizations_url":"https://api.github.com/users/Nikoms/orgs","repos_url":"https://api.github.com/users/Nikoms/repos","events_url":"https://api.github.com/users/Nikoms/events{/privacy}","received_events_url":"https://api.github.com/users/Nikoms/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T09:50:16Z","updated_at":"2016-07-08T09:50:16Z","body":"Amazing Eddy! Thank you"}}
{"actor":{"display_login":"Nikoms"}}