You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest changes (3.2.3), I'm getting an error when trying to register device and get token on Android. The same code has been working fine with version 3.2.0. The error is:
Error: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter messaging
From what I was able to troubleshoot it is because of this code that delays loading until first usage:
Seems that this delay load does not work as expected and on all places in the plugin either this._native should be replaced with this.native so that it inits correctly, for example here:
In the newer google services there was an issue when calling the getInstance early would crash so the delay was added, yes you're correct those ._native should be the using the.native
With the latest changes (3.2.3), I'm getting an error when trying to register device and get token on Android. The same code has been working fine with version 3.2.0. The error is:
From what I was able to troubleshoot it is because of this code that delays loading until first usage:
firebase/packages/firebase-messaging-core/index.android.ts
Lines 207 to 213 in 0636cd4
Which was changed in the bump deps commit:
0636cd4#diff-f74cba432ab62cdf5bdf373d3c4c8f3d63dcb1fd4cdcddd473144d2b3c981f80
Seems that this delay load does not work as expected and on all places in the plugin either
this._native
should be replaced withthis.native
so that it inits correctly, for example here:firebase/packages/firebase-messaging-core/index.android.ts
Lines 218 to 225 in 0636cd4
Or the previous init in the constructor should be returned. No idea why it was delay loaded in the first place...
The text was updated successfully, but these errors were encountered: