74
Views
19
Comments
Solved
[Firebase Mobile] [Firebase Mobile] Error while installing cordova-plugin-firebase on android build
firebase-mobile
Mobile icon
Forge asset by David Sousa

Hi Team,

Im generating the new build on MABS 9.0 version its shows the error for android build : 

Couldn't install the cordova plugin cordova-plugin-firebase.

In error log: Failed to install 'cordova-plugin-firebase': TypeError: Cannot read property '1'


Thanks in advance

Soundarya

Androidbuild.PNG
2019-03-18 10-26-38
Jeroen Vormer
Solution

Hi Soundarya,

thanks for your email.
As also mentioned in my reply you're using an old version of the Forge Component FirebaseMobile.
The new version 1.0.11 is using the "https://github.com/Product-League/cordova-plugin-firebase-only-analytics-notifications#1.1" instead of the "......Truewind......"....

I'm using the latest versoin myself in MABS 9.0, and this should not be an issue.

Best regards,
Jeroen Vormer

UserImage.jpg
Narendra Maheshwari


Hi Soundarya,

Please confirm that the URL for your Cordova plugin is public. The private Cordova Plugin Directory caused me to run into a similar problem.

Just for your information,Using_cordova_plugins



Thanks,

Narendra

 

2022-04-20 12-08-36
Soundarya

hi Narendra Maheshwari ,

    Thanks for the response.

A plugin from a git repository:

{    "plugin": {        "url": "https://example.com/sampleplugin/sampleplugin.git#1.10"    }}

We are using like this in extensibility configuaration. How can i make it Public. could you please suggest it would be really helpful.


Thanks in advance

Soundarya

UserImage.jpg
Narendra Maheshwari

Hi Soundarya,

You can't make someone's Git repository as public. 

You can use this plugin URL:  

"plugin": { "url":"https://github.com/wwdemoteam/outsystems-phonegap-plugin-push.git#v3.0.1"   


Thanks,

Narendra

2022-04-20 12-08-36
Soundarya

Hi Narendra,

   I will try this suggested URL and let you immediately about the result.

     As of now our iOS build generated successfully we are facing issues with android only. So once I changed this plugin URL it create issues on iOS  and android  in existing flow of ours. 

After using this suggested URL build not generated for both platform.

Thanks 

Soundarya

UserImage.jpg
Narendra Maheshwari

By right it should not create any issues. You can try to see Build Log to find the actual cause or any impact.

Place where you can see it.

2022-04-20 12-08-36
Soundarya

Hi Narendra Maheshwari  

 I got the below issues in log file.Kindly suggest How could i resolve this below mentioned 

Reason: Couldn't install the Cordova plugin phonegap-plugin-push. Using "requireCordovaModule" to load a non-Cordova module "child_process" is not supported. Add this module to your dependencies and use the regular "require" to load it.


Thanks

Soundarya

UserImage.jpg
Narendra Maheshwari

Hi Soundarya ,

I think this plugin is not installed correctly. You can try to add this dependency in your configuration.

 https://github.com/OutSystemsExperts/outsystems-phonegap-plugin-push

Thanks,

Narendra

2022-04-20 12-08-36
Soundarya

Hi narendra,

    I have two plugin URL 

this one in firebase mobile -https://github.com/wwdemoteam/outsystems-phonegap-plugin-push.git#v3.0.1

where i have to place the second one 

https://github.com/OutSystemsExperts/outsystems-phonegap-plugin-push 

Like in main module configuration  or in same firebase mobile configuration 


Mainly second URL for dependencies shows  https://github.com/OutSystemsExperts/outsystems-phonegap-plugin-push- 404 not found in browser 


Thanks 

Soundarya

UserImage.jpg
Narendra Maheshwari

You can use square bracket for multiple Urls.

{    "plugin":   

  [

     {  "url": "https://github.com/Product-League/cordova-plugin-firebase-only-analytics-notifications#1.1"    },

    {  "url": "https://github.com/OutSystemsExperts/outsystems-phonegap-plugin-push"    }

 ]   

 }

2022-04-20 12-08-36
Soundarya

Hi Narendra,

   I tried your last sugeestion and getting the below error.


Could please suggest any other solution for the dependencies URL. 

 Mainly second URL for dependencies shows  https://github.com/OutSystemsExperts/outsystems-phonegap-plugin-push   404 not found in browser 


thanks

soundarya.p

2019-03-18 10-26-38
Jeroen Vormer

It is not possible to add 2 plugins within the same Extensibility Configuration!

UserImage.jpg
Narendra Maheshwari

sharing one example module with you for Firebase. Hope it works for you!!

FirebaseMobile.oml
2019-03-18 10-26-38
Jeroen Vormer

In my opinion it is not possible to use multiple plugin-url's in 1 module.
https://success.outsystems.com/documentation/11/extensibility_and_integration/mobile_plugins/using_cordova_plugins/
Also: Why should you use this Extensibility Configuration when using the FireBaseMobile plugin?
Are you using both FireBaseMobile and PhoneGap ??

2022-04-20 12-08-36
Soundarya

hi  Jeroen Vormer

     Actually we have issues on generating our android build for MABS 9.0.Firebase mobile plugin not supported for this version in android.

we tried to connect with plugins creator for update, unfortunately we could get any response so we tried to put any changes from our end to make the plugin supported for android build for MABS version 9.0

this is the error message i got from android build.

could you have any idea on this issues.


Thanks in advance 

soundarya.p



2019-03-18 10-26-38
Jeroen Vormer

Could you share the total Build log?
You can find it in Service Center --> Factory, find Application, Tab 'Distribute':

You also can send it to me private at jvormer@synobsys.nl, I can have a look.
Normally this plugin should work with MABS 9.0.....
Best regards,
Jeroen Vormer

2022-04-20 12-08-36
Soundarya

Hi Jeroen Vormer,

I send it to your mentioned  id "jvormer@synobsys.nl " via gmail id. Could you please check and let me know any changes have to made on it or anything I missed.


Thanks in advance 

Soundarya.p

     

2019-03-18 10-26-38
Jeroen Vormer
Solution

Hi Soundarya,

thanks for your email.
As also mentioned in my reply you're using an old version of the Forge Component FirebaseMobile.
The new version 1.0.11 is using the "https://github.com/Product-League/cordova-plugin-firebase-only-analytics-notifications#1.1" instead of the "......Truewind......"....

I'm using the latest versoin myself in MABS 9.0, and this should not be an issue.

Best regards,
Jeroen Vormer

2022-04-20 12-08-36
Soundarya


Hi Jeroen Vomer ,

                Thanks a lot ! for the response and suggestions. I'm working on this things  Once done I will post my result status immediately.


Thanks 

Soundarya


2022-04-20 12-08-36
Soundarya

Hi Jeroen Vomer ,

      Really Thanks for your timely  support and response. The suggested URL working fine and I can able to generate build successfully in MABS version 9.0 for android.

Thanks 

Soundarya.p


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