Issue on IOS - The default Firebase app has not yet been configured.
bsprengelmeijer opened this issue · comments
I have the following message on my iOS build when I run the application:
The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization.
This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI).
Read more: https://goo.gl/ctyzm8.
If I add [FIRApp configure];
to my AppDelegate.m
file the build works and the message is gone, but I get no permission prompt on iOS.
I have use the following code:
cordova.plugins.firebase.messaging.requestPermission({forceShow: false}).then((permission) => {
if (permission) {
console.log('permission');
} else {
console.log('no permission');
}
}
I don't get any console.logs in Xcode
My issue was not having the requestPermission inside of the deviceReady eventListener (vue-cordova application)