Dears,
I'm try to generate my App (using the last current version of MABs).
Inside the application I used the Firebase Mobile plugin.
I followed step by step this documentation ( updated at Aug 23, 2023 ): https://success.outsystems.com/documentation/11/extensibility_and_integration/mobile_plugins/firebase_plugins/
Here, in the section "Adding Google services configuration files" is clear that no zip files is required.
instead, in the "old" version of the guide, the files "google-services.json" and "GoogleService-Info.plist") had to be assembled in one and unique zip file with a specific naming convetion: google-services-zip
I done according to the documentation, but the generation fails with this error:
Failed to install 'cordova-outsystems-firebase-core': Error: No configuration zip file found (google-services-zip). You can check how to configure this file at: https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Firebase_Plugins
From my understand this happen because the builder look for the google-service-zip and this is missing and invite to follow the guide, that instead doesn't require the zip file.
This is very strange. Can some one help me where is the error?
Thanks in advance!
BR
Dear Michele, You might be missing the right specification for the Resource file. Do review the same as per below sample example below.
- Update the Firebase Plugin to Version latest- Configure the MABS to Latest Version
- Download the First of all, create a zip file containing both google-services.json and GoogleService-Info.plist.
- Next, rename your zip folder google-services. Make sure it only contains both configuration files!
- Afterwards, add it to the Resources tab of the mobile app in Service Studio.
Ensure that the following properties are correct:
Name: google-services.zip
Deploy action: deploy to the target directory
Target directory: concatenation of firebase. and your app identifier.
Example Considering your :
App Identifier: com.outsystemscloud.mahammadirfan.First
TargetDirectory: firebase.com.outsystemscloud.mahammadirfan.First
Please note:
- UnInstall Old Build- Generate a new build & Install for test
Hope it helps;Assif
Thank you Assif for your prompt reply.I realy appreciate it.
I followed your instruction. Now the error is this:
Error: Source path does not exist: www/google-services.json
[2023-08-28T07:37:03.883Z] [ERROR] [Build] at updatePathInternal (source/node_modules/cordova-common/src/FileUpdater.js:126:19)
[2023-08-28T07:37:03.883Z] [ERROR] [Build] at source/node_modules/cordova-common/src/FileUpdater.js:192:16
[2023-08-28T07:37:03.883Z] [ERROR] [Build] at Array.map ()
Could be that the extensibility configuration is wrong? Now my set up is this:
"resources": {
"android": {
"AndroidResource": {
"src": "www/google-services.json",
"target": "app/google-services.json"
}
},
"ios": {
"IosResource": {
"src": "www/GoogleService-Info.plist",
"target": "GoogleService-Info.plist"
Thanks in advance.
Hi @Michele Carsillo , are you using the new supported plugins? Or the deprecated one? It seems to me you're using the deprecated one, which require you to have them in a zip folder. With the deprecated one, you won't need the extensibility configuration. But for the new one( which I recommend you use if you can), the extensibility configuration you're setting, is correct. You just need to upload both files to the resources of the module, set the deploy action to Deploy To target Directory, but leave the Target directory empty. You can use this article to help you migrate from the deprecated plugin to the new supported plugins: Migration.
If you want keep using the deprecated one, just delete the extensibility configurations regarding those files and it should be okay.
Hope this helps,
Best regards
Thank you Diogo, for your comments.
I updated the plug in to the last version, uploaded the files in separete mode (no zip file), set the Deply action to "target directory", left the Target Directoty to null, set up the extensibility configuration with the previous strings but still have error during generation phase. Here the error log that I think is the hurt of the matter:
Command finished with error code 0: npm install,@outsystems/cordova-mobile-template@12.7.4,--no-save
It seems that firebase require a separate cordova plug in. Are you agree?
Hi @Michele Carsillo ,
Check if you have the latest version of the Cloud Messaging Plugin and the Analytics Plugin. This version requires that files be uploaded separately. For previous versions, the files must be zipped.
Please check the solution here for the last version: https://www.outsystems.com/forums/discussion/90777/cloud-messaging-plugin-firebase-firebase-cloud-messaging-plugin-extensibility/
I hope it helped you.
Regards,
Diana Milheiro