-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default Firebase app has not yet been configured. Add [FIRApp configure] (FirebaseApp.configure() in Swift) #866
Comments
@chrisid have you tried to deploy the same application on a different version of iOS? I wanted to confirm it was indeed an iOS 12 issue and not something else. |
@briantq good point and your suspicions are right, just tried on an 11.2 iOS device and still got the same issue. |
@chrisid Have you gotten the project to work previously? Can you also run |
@briantq yes, it was working before updating to Xcode 10 (maybe that's a lead?) This happens on an ionic project (plugins below) as well as on a brand new and empty cordova project, that only has firebase as a plugin. Both Ionic plugins: cordova plugins cordova: 8.0.0 |
@chrisid that could be. I have not tried it on XCode 10. I haven't seen anything for Firebase on iOS when using XCode 10, have you? If you find anything XCode 10 specific, we should definitely make that change. We can see if others encounter similar problems. |
Any specific iOS 12 issues are likely on the firebase team to fix and we
would need to upgrade the SDK once those fixes are made.
…On Sun, Sep 23, 2018, 6:52 PM Brian Bauman ***@***.***> wrote:
@chrisid <https://github.com/chrisid> that could be. I have not tried it
on XCode 10. I haven't seen anything for Firebase on iOS when using XCode
10, have you? If you find anything XCode 10 specific, we should definitely
make that change. We can see if others encounter similar problems.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#866 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKZWKwO7v2PNszRxGNnDdnjqdWXf8uTiks5ueDr3gaJpZM4W0z4V>
.
|
I am having the same problem on a fresh Cordova project with only the firebase plugin installed. Running iOS 12 |
Hi, im having the same issue, Xcode 9.4.1 |
@alex87campbell Make sure you are using v2.0.2 as there were issues with the 2.0.0 release that caused this issue. @alex87campbell @franciscomontiel can you run |
@briantq I'm using 2.0.2. For cordova Fo my Ionic |
same problem here
|
Same problem here
|
@briantq I'm just creating a new fresh project every time I test it, nothing added, literally:
adding my Google-Service.plist and Xcode testing... nothing more, as I want to be sure there's nothing else causing trouble. I'm not any good in Obj-C, but I guess the problem happens at: |
@briantq Sure, thanks for the response. It is working very good on android. |
I enabled -FIRDebugEnabled and got this: PS: I'm sure and double checked Bundle ID everywhere, they all match, my guess is that FIRApp config is not reading Google....plist Does anyone know if there's a way to NSLog the Google....plist content being used for config?
|
I was able to fix this. on XCode, open: comment this block:
add this in its place:
|
@chrisid That error is gone! But does the notifications work for you? My device doesnt show sign of receiving any. |
@chrisid thanks a lot, that worked for me :) |
@franciscomontiel yes it's all back working for me. |
@chrisid please create a PR. See the Contribution Guidelines if you have any questions on how to do so. That way we can review the change to see if there are any impacts and talk about alternatives. With the number of people having issues resolved with the change, we should definitely see what we can do sooner rather than later |
Thanks! It is working now! |
Hey! Just chiming in here to say that I'm running iOS 12 and the latest XCode, 2.0.2 of the plugin, the .p8 key instead of a certificate, and still get the configuration issue. My app starts as usual and I can get a token, but all requests to e.g. subscribe to a topic fails. Any notification I send from Firebase to the specific token also fails saying the token is unregistered. I unfortunately can't share my project but would gladly share more info if needed. |
@wiwofone that was happening to me as well, I've just sent a PR that should fix that, meanwhile try this: #866 (comment) |
For those encountering this issue, you can test PR #880 directly instead of making manual changes yourself by following the steps in our contributing doc |
I have applied the fix but now another problem is jumping: 5.7.0 - [Firebase/Messaging][I-FCM002023] The object <AppDelegate: 0x10174d4d0> does not respond to -messaging:didReceiveRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token |
fix available in v2.0.4 |
Still have the below errors at runtime after installed v2.0.4 #0 0x000000010c7d49ca in __38+[FIRAnalytics createAppDelegateProxy]_block_invoke () Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.} cordova plugin list |
Cheers @soumak77 ! I am now getting the following on each subscription/unsubscription request to a topic: I'm investigating if this is related. Probably not, but putting it out here in case someone else sees the same. EDIT: |
Checked latest lib version with this PR and it works in iOS 12, the notifications are received. |
I was follow the @chrisid solution's but with one difference: I modified the file PushPlugin.m in Xcode (project_name/plugins/PushPlugin.m). Here I added in line 303 the next code FIROptions * options =[[FIROptions alloc] initWithContentsOfFile: path]; thanks @chrisid Ionic: ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 8.0.0 System: Android SDK Tools : 26.1.1 (/Users/semillacuerna/Library/Android/sdk) |
For me is working with v2.0.4. Remember about Xcode 10 issue And remember to run it from the command line and not using XCode to run it on the device since the new build system will be applied. |
5.7.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add
[FIRApp configure];
(FirebaseApp.configure()
in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.Tried several solutions but can't get it to work on iOS 12. From new blank App to being sure Google...plist is on both resource folders and it has the right content.
Also tried Legacy publish on Xcode.
@2.0.2
The text was updated successfully, but these errors were encountered: