edismooth / ionic2-firebase

[DEPRECATED] Easy example of Firebase working with Ionic 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Token is null

pythonios opened this issue · comments

commented

So I was finally able to build and run the app. But when the app is started the token equals null and does not change on app restart. I added the google-services.json.

Does anyone have any advice? Thanks :)

commented

The log is always:

07-21 22:44:40.373: I/chromium(11020): [INFO:CONSOLE(28719)] "Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.", source: file:///android_asset/www/build/js/app.bundle.js (28719)
07-21 22:44:40.380: V/StatusBar(11020): Executing action: styleDefault
07-21 22:44:40.382: D/FCMPlugin(11020): ==> FCMPlugin execute: getToken
07-21 22:44:40.383: D/FCMPlugin(11020):     Token: null
07-21 22:44:40.388: D/FCMPlugin(11020): ==> FCMPlugin execute: subscribeToTopic
07-21 22:44:40.395: D/FCMPlugin(11020): ==> FCMPlugin execute: registerNotification
07-21 22:44:40.401: I/chromium(11020): [INFO:CONSOLE(36)] "null", source: file:///android_asset/www/build/js/app.bundle.js (36)
07-21 22:44:40.404: I/chromium(11020): [INFO:CONSOLE(49)] "onNotification callback successfully registered: OK", source: file:///android_asset/www/build/js/app.bundle.js (49)

commented

Had to install the emulator image with API included. works now!