-
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
cordova 9.0.0 issue installing firebase ios #1033
Comments
I'm having a similar issue
|
I've forked this plugin to provide support for
Reinstall the platform. Cheers! If you are installing this plugin that means you will not have this plugin in Of course this is a temporary solution until we do these fixes in this plugin itself. |
PR #1034 created |
Any ETA on either merging that ^ or making the change here? |
See arnesson#1033 Taken from arnesson#1034
Thanks @sagrawal31! |
Thanks @sagrawal31 ... you completely saved our app launch. |
See arnesson#1033 Taken from arnesson#1034
Is this already fixed? |
It wasn't as of about 10 days ago when we were trying to launch our app. You can see if it works for you and let us know. |
No, it is still failing. I had to apply the fix mentioned by @sagrawal31 |
Is this plugin still supported? The last release was October 2018. |
Should I give up hope of this ever getting merged? Between #1057 breaking android builds and this breaking ios builds I am stuck between working ios or working android unless I fork and combine the two. |
@nstokoe what do you need the plugin for anyways? I'm not sure what value it has. I'm going to assume you're using Ionic or something and there's JS @angular/fire you can use. Maybe i'm missing something. |
@briantq - You're the latest active contributor. Any word on the life of this plugin? |
@tmk1991 We support a v1 ionic app. |
@tmk1991 what are the alternatives to this plugin? |
@amritk - Maybe you can help explain why you need plugins vs the JS SDK or @angular/fire? @chemerisuk has a bunch of different ones. For instance he separated Auth, Messaging, etc. But again though, i'm not sure how it's advantageous to have the plugin vs using JS. What device level stuff is needed. I have auth for login working with @angular/fire in an Ionic cordova app, on my physical device. I need a little help understanding. |
@tmk1991 not sure what @angular/fire does but we use this plugin to handle our firebase push notifications. It works a lot better than the other cordova push plugins. |
@tmk1991 cool I'll give it a shot, thanks |
@tmk1991 I appreciate the suggestion but everything would be solved instantly if the maintainer of this repo just merged the pull requests and/or commented on their status. People have already put in the work to get the code working. If this plugin is unmaintained it'd be nice to know. |
@tmk1991 @amritk also https://github.com/chemerisuk/cordova-plugin-firebase-messaging is also having the same issue: chemerisuk/cordova-plugin-firebase-messaging#82 |
I agree - I wish the firebase team maintained a cordova plugin. @chemerisuk 's repo works well though because it has a support plugin you can use to control and stabilize Google Versions. The current bug you referenced works by fixing the plugin variable This is the support plugin: https://github.com/chemerisuk/cordova-support-google-services |
I had a problem in building the application with Cordova 9.0.0, I preferred to downgrade to the 8* version.
For my, which was with the cordova-plugin-firabase-messaging case, I rode the following
Taking a quick look, I noticed that this plugin has dependencies that have variables to declare the dependency versions of the firebase. I recommend opening the Android build on AndroidStudio. and to verify which of these dependencies are generating the conflict, that is how I identified the conflict. For ios, the downgrade of Cordova to v8. |
@danielprrazevedo Do you use the support plugin? https://github.com/chemerisuk/cordova-support-google-services |
can we do some adjustment for support cordova 9? |
Exactly, this plugin is a requirement of firebase-messaging |
I'm really blocked: Failed to install 'cordova-plugin-firebase': CordovaError: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. Any news???????? |
See arnesson#1033 Taken from arnesson#1034
You really don't need both plugins, cordova-plugin-firebase does firebase messaging if you look at the API |
Using @dpa99c fork as he displayed in #1081 (comment) also solved this issue for me @dpa99c you are a Cordova hero 😉 |
Is this still being maintained because the issue is still present. |
@ctfrancia I think this plugin isn't actively maintained anymore fortunately @dpa99c actively maintain and improve his fork which notably solves this issue and add other improvements https://github.com/dpa99c/cordova-plugin-firebasex |
--- arnesson/cordova-plugin-firebase#1033 (comment) https://github.com/dpa99c/cordova-plugin-firebasex#migrating-from-cordova-plugin-firebase --- cordova platform rm android cordova platform rm ios cordova plugin rm cordova-plugin-firebase rm -rf plugins/ node_modules/ npm i cordova plugin add cordova-plugin-firebasex cordova platform add android cordova platform add ios
My project faced this issue, I build an iOS app with Ionic Hub. As what the solution told above, I must edit the plugin locally, but at Ionic hub, the project was uploaded at repository and the plugin was installed automatically and can't edited the plugin manually. That's little bit confusing. Anyone know to fix it at Ionic Hub? |
Describe the bug
When I try to install the firebase plugin I get the error "Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it."
This "requireCordovaModule" is deprecated since 9.0.0 of cordova.
cordova plugin add cordova-plugin-firebase
Installing "cordova-plugin-firebase" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-firebase" for ios
Failed to install 'cordova-plugin-firebase': CordovaError: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (/Users/dbxaee/.config/yarn/global/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at Object.removeShellScriptBuildPhase (/Users/dbxaee/kvk/kvk-connect-client-mobile-devices/plugins/cordova-plugin-firebase/scripts/ios/helper.js:88:25)
at module.exports (/Users/dbxaee/kvk/kvk-connect-client-mobile-devices/plugins/cordova-plugin-firebase/scripts/ios/after_plugin_install.js:8:12)
at runScriptViaModuleLoader (/Users/dbxaee/.config/yarn/global/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/Users/dbxaee/.config/yarn/global/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /Users/dbxaee/.config/yarn/global/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at processTicksAndRejections (internal/process/next_tick.js:81:5)
Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
To Reproduce
Steps to reproduce the behavior:
Go to terminal
Type "cordova plugin add cordova-plugin-firebase"
Get error "Using "requireCordovaModule" to load non-cordova module "xcode" is not supported. Instead, add this module to your dependencies and use regular "require" to load it."
Expected behavior
The plugin is installed
Screenshots
Console Logs
If applicable, provide console logs showing the errors being reported.
Plugin Version
Run
cordova plugin list
to find out what version of cordova-plugin-firebase you are running withDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: