-
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
Failed to install 'cordova-plugin-firebase': Error: Uh oh! #1154
Comments
Same problem here. |
I have it too |
same problem, any updates on this? |
I solved the problem. It is about android version. Cordova supports only up to 8.X.X. Just type “cordova platform add [email protected]” |
@Furkan-Ozturk thanks for the comment, but the latest |
Agreed, it would seem prudent to add support for [email protected]. I've currently downgraded to 8.0.0, but this is a temporary fix at best. |
The error occurs in the file "plugins\cordova-plugin-fcm\scripts\fcm_config_files_process.js" The error occurs when trying to load the file "strings.xml" Check the path of your "strings.xml" file and update it, I left the following path: var strings = fs.readFileSync ("platforms/android/app/src/main/res/values/strings.xml"). toString(); Additionally, you can debug the file by adding console.log ("XXXX"); and check where the error is. --> remove all platforms and then install the plugin: 1.- ionic cordova platform rm android At the end, also check the writing of the "strings.xml" file fs.writeFileSync ("platforms/android/app/src/main/res/values/strings.xml", strings); |
Hi, all We're having the same problem. We found a solution. Here's our workaround: Studying the error message that occurs during the installation of the firebase plugin, we made a debug session and found that things were going wrong while the plugin was trying to copy google-services.json file from the plugin folder to the project folder. The error message was: It's something to the with file write permissions but we couldn't solve this by changing folder permissions and indexing. From the stack trace, we saw that the copy operation was handled by the mayCopyFile function in the copy-sync.js javascript file that was located in the ..\apk\node_modules\fs-extra\lib\copy-sync folder. Here's the function body: fsunlinkSync and copyFile calls here crashes the installation. We couldn't proceed with the debug further, perhaps it would be better to proceed but we stopped here and found this solution: Since these lines of code is trying to copy google-services.json file from the So here are the steps we followed:
This worked. Of course, we added the cordova-device-plugin, edited the config.xml, added google-services.json to the project root folder etc as usual prerequisites, to make the plugin work. Hope this helps. My best, |
I have the exact same error and I am following this workaround but seems to have other implications. Is there a way to find out when will a consistent version of the plugin be available? |
Hi, Discard installing "cordova-plugin-firebase", here is the detail of what you install, luck (I installed it so):
|
You really saved my day, that's a 100% solution! |
Hi, |
Has anyone tried to solve it with other alternatives? I can't solve the problem |
Not a solution, as FCM is just the Firebase part for push notifications. Anyone found a solution? |
Any update on this? I have the same problem trying install I want to use this plugin only for push notifications, because using Any alternatives? |
@josevavia If you're only after push notifications on Android, you can use https://github.com/havesource/cordova-plugin-push This is a replacement for https://github.com/phonegap/phonegap-plugin-push . It works well for me on Android, but I can't make it work on iOS though. EDIT: it's working on iOS now. |
This is not working. Please help me on this topic. |
Any updates on this topic? I have error for [email protected] |
Switch to flutter
…On Wed, Mar 16, 2022, 18:22 TildeGv9 ***@***.***> wrote:
Any updates on this topic? I have error for ***@***.***
—
Reply to this email directly, view it on GitHub
<#1154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7TE43KNAVXPI24GIBPOHTVAHHBNANCNFSM4QJCS77Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unfortunately I'm working on a Cordova based project and I can't switch |
Ok, no problem.
…On Wed, Mar 16, 2022, 19:53 TildeGv9 ***@***.***> wrote:
Unfortunately I'm working on a Cordova based project and I can't switch
—
Reply to this email directly, view it on GitHub
<#1154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7TE476FQEZYYLP6FUCONLVAHRVJANCNFSM4QJCS77Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So, Is there no fix for this build error? |
There is no fix I guess. |
@TildeGv9 @mashrurbd I've successfully migrated my Ionic Framework v1 app to cordova-plugin-firebasex. I do have one issue with it at the moment, but otherwise I can highly recommend jumping aboard. |
Congratulations, enjoy fw7.
…On Wed, May 4, 2022, 16:05 cinnamon-doge ***@***.***> wrote:
@TildeGv9 <https://github.com/TildeGv9> @mashrurbd
<https://github.com/mashrurbd> I've successfully migrated my Ionic
Framework v1 app to cordova-plugin-firebasex
<https://github.com/dpa99c/cordova-plugin-firebasex>. I do have one issue
<dpa99c#708> with it
at the moment, but otherwise I can highly recommend jumping aboard.
—
Reply to this email directly, view it on GitHub
<#1154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7TE4ZJ5ZXW35CYTCUAEHLVIJDYJANCNFSM4QJCS77Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Installing "cordova-plugin-firebase" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-firebase': Error: Uh oh!
EPERM: operation not permitted, unlink 'E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\app\src\main'
at Object.unlinkSync (fs.js:1136:3)
at mayCopyFile (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:59:8)
at onFile (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:54:10)
at getStats (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:48:44)
at startCopy (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:38:10)
at handleFilterAndCopy (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:33:10)
at Object.copySync (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:26:10)
at copyFile (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\lib\pluginHandlers.js:223:12)
at install (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\cordova\lib\pluginHandlers.js:61:13)
Uh oh!
EPERM: operation not permitted, unlink 'E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\platforms\android\app\src\main'
at ActionStack.process (E:\android_project\Freelancers\chat-app\NewScript\fm-selection-367293_02-58-08\Chatvybz-updated\ionic-5-chatvybe\mainFile\node_modules\cordova-common\src\ActionStack.js:56:25)
The text was updated successfully, but these errors were encountered: