thank you for your great work!
I think your modules are really well done.
I've got a problem when I try to register the device.
I did a lot of tests and at the end if I copy and paste your example code, when calling the method:
fcm.registerForPushNotifications ();
I receive this error message:
"[ERROR] TiExceptionHandler: (main) [22,1454] /alloy/controllers/index.js:152
[ERROR] TiExceptionHandler: fcm.registerForPushNotifications(),
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: Error: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference"
I tried in every possibile way but I I couldn't find the solution ... :-(
[ERROR] TiExceptionHandler: Error: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference
Hi @m1ga ,
thank you for your great work! I think your modules are really well done.
I've got a problem when I try to register the device. I did a lot of tests and at the end if I copy and paste your example code, when calling the method:
fcm.registerForPushNotifications ();
I receive this error message:
"[ERROR] TiExceptionHandler: (main) [22,1454] /alloy/controllers/index.js:152 [ERROR] TiExceptionHandler: fcm.registerForPushNotifications(), [ERROR] TiExceptionHandler: ^ [ERROR] TiExceptionHandler: Error: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference"
I tried in every possibile way but I I couldn't find the solution ... :-(
These are my versions:
Thanks if you can help me.
I also report the app log:
[ERROR] TiExceptionHandler: (main) [22,1454] /alloy/controllers/index.js:152
[ERROR] TiExceptionHandler: fcm.registerForPushNotifications(),
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: Error: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference