Firebase push notification generation APK issue.
Question

Hi,

I'm trying to integrate push notification application using firebase mobile. I'm getting below issue. Could you please help with this?

Following these steps: https://www.youtube.com/watch?v=ygbu3AITS4k&t=187s

this is error am getting :

No zip file found containing google services configuration file

Failed to install 'cordova-plugin-firebase': Error: ENOENT: no such file or directory, scandir '/opt/NativeBuilder/builds/f0267a50-501f-4d03-90eb-329b9d58a429/source/platforms/android/assets/www/google-services'

Logs attached here: AndroidBuildLog

OS version: 11

Environment: Personal

MABS version: Latest 

AndroidBuildLog.txt


PushTest.oml

PushTest.oml

mvp_badge
MVP

Hi Rajesh,

I think from all the links that Benjith provided especially this one:
https://www.outsystems.com/forums/discussion/43685/configuration-guide/
you should read and follow all steps, generate and include the zip file a with google services configuration file in the application.

Regards,

Daniel

Hi Daniel and Benjith,

Thanks for the quick reply.

Still getting same issue :


I followed these steps : https://www.outsystems.com/forums/discussion/43685/configuration-guide/

I have created google-services.zip file added this two files google-services.json and GoogleService-Info.plist.
and put it into Resources.



mvp_badge
MVP

Hi Rajesh,

Can you make sure you have concatenated firebase. with the correct app identifier in the Target Directory property as explained in step 3?

3. Adding the configuration files to your mobile app

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 target directory
  • Target directory: concatenation of firebase. and your app identifier.

Example of target directory:

  • App identifier: com.sample.dev.FirebaseMobileSample
  • Target directory: firebase.com.sample.dev.FirebaseMobileSample

Regards,

Nordin

Thanks for the details.

This is my setup:

Firebase console Apps with the sample bundle identifier

OutSystems environment app identifier: 

 

google-services.zip file contains GoogleService-Info.plist and google-services.json


OutSystems Data resources setup.


Error:



Please let me know if anything I missed out here.

 




mvp_badge
MVP

Hi Rajesh,

It looks about right to me what you did.

Could you share more details of the error please? There could be a clue in there.

Regards,

Nordin

Hi Nordin,

This is error message showing:

Error installing Cordova plugin cordova-plugin-firebase




mvp_badge
MVP

Hi Rajesh,

Actually I meant the error log details in Service Center.

Hi Nordin,

Please find the error logs from Service Center.


AndroidBuildLog.txt

Logs attached.


AndroidBuildLog.txt

mvp_badge
MVP

Hi Rajesh,

Thanks for the build log.

Could it be that you added the json and plist files in a folder first, before zipping the folder? Because both files need to be zipped directly without adding them to a folder first.

Your build log seems similar to the one mentioned in this post.

Regards,

Nordin



Hi Nordin,

Thanks for the details. I tried the this post guide:  https://www.outsystems.com/forums/discussion/57546/failed-to-install-cordova-plugin-firebase-typeerror-path-must-be-a-string-re/

Still build is failed.

google-services.zip folder contains google-services.json.zip and GoogleService-Info.plist.zip



google-services.zip file added in to resources.  


Please find the error logs attached here : AndroidBuildLog (1).txt

Please let me know if anything doing wrong here.


AndroidBuildLog1.txt

mvp_badge
MVP

Hi Rajesh,

I think you have misinterpreted the post.

You should have only one google-services.zip file that contains both google-services.json and GoogleService-Info.plist files.

So you should NOT put both files in a folder first and then zip that folder. The google-services.zip file should only contain those two configuration files (google-services.json and GoogleService-Info.plist).

Regards,

Nordin

Hi Nordin,

Ok, that's what I did earlier.
google-services.zip - contains two configuration files (google-services.json and GoogleService-Info.plist).



google-services.zip - added in to resource folder. still issue is occur.




Hi Nordin,

I have tried fresh firebase push notification demo with the following steps.
https://www.outsystems.com/forums/discussion/43685/configuration-guide/

OS version: 11

Environment: Personal

MABS version: Latest 


Firebase console build id :


google-service.json  file  containes 

 package_name :   

com.sample.dev.FirebaseMobileTest

 and bundle_id

com.sample.dev.FirebaseMobileTest




Firebase mobile plugin version: https://github.com/TruewindIT/cordova-plugin-firebase#1.9



 google-services.zip :  contain
                  google-services.json

                GoogleService-Info.plist



Outsystem data source: 


App ID  :   com.sample.dev.FirebaseMobileTest



Error : 

[2020-10-09T14:25:46.971Z] [error]     at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20

[2020-10-09T14:25:46.971Z] [error]     at _fulfilled (/usr/lib/node_modules/cordova/node_modules/q/q.js:787:54)

[2020-10-09T14:25:46.971Z] [error]     at /usr/lib/node_modules/cordova/node_modules/q/q.js:816:30

[2020-10-09T14:25:46.971Z] [error]     at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/q/q.js:749:13)

[2020-10-09T14:25:46.971Z] [error]     at /usr/lib/node_modules/cordova/node_modules/q/q.js:557:44

[2020-10-09T14:25:46.971Z] [error] Error: The "path" argument must be of type string. Received undefined

[2020-10-09T14:25:46.971Z] [error] [Build] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-firebase.

[2020-10-09T14:25:46.971Z] [info] [Build] Remove debug/release signing properties

[2020-10-09T14:25:46.972Z] [info] [Build] Zipping application source...

[2020-10-09T14:26:02.624Z] [info] [Build] Application was not successfully generated!


[2020-10-09T14:26:02.625Z] [info] [Build] Execution time: 85926ms


Complete error logs attached here.


I'm new to Outsystem. Please let me know what I'm doing wrong here 



AndroidBuildLogUpdated.txt

mvp_badge
MVP

Hi Rajesh,

Sorry for the late reply.

Which version of the Firebase Mobile component are you using?

One thing I noticed from the documentation page is a change of value for the Target Directory property. The concatenation of .firebase was deprecated since version 1.0.6 of the component (the latest version is 1.0.8).

If changing that property value still doesn’t help, I’m afraid I’m out of ideas.

In that case, I would like to suggest you create a post in Firebase Mobile’s subforum. This way you will be able to receive better help, since the team behind the component will get a notification of your post.

Regards,

Nordin

Hi Nordin,

Thanks a lot for your suggestion. 

Much appreciated :)

mvp_badge
MVP

You’re welcome Rajesh.

Sorry I couldn’t help you further.

Regards,

Nordin

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.