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
This error prevents the constructor from finishing executing the code after this line. For this reason, the first call to the function await firebase().messaging().requestPermission() will not work, as and any other methods.
How reproduction this error (only on iOS):
import{firebase}from'@nativescript/firebase-core'import'@nativescript/firebase-messaging'
...
constmessaging=firebase().messaging()conststatus=awaitmessaging.requestPermission({ios: {alert: true}})// this line not will working...
I may be wrong, but i think what this issue #24 also related to this error
Until this bug is fixed, may use a temporary solution (hook):
When on iOS call
firebase().messaging()
, get this error. I found an error in constructor of class Messaging for iOSfirebase/packages/firebase-messaging/index.ios.ts
Line 48 in 8549685
This error prevents the constructor from finishing executing the code after this line. For this reason, the first call to the function
await firebase().messaging().requestPermission()
will not work, as and any other methods.How reproduction this error (only on iOS):
I may be wrong, but i think what this issue #24 also related to this error
Until this bug is fixed, may use a temporary solution (hook):
add this before
firebase().messaging().anyMethod()
The text was updated successfully, but these errors were encountered: