How to use in Phonegap build,the plugin cordova-plugin-firebase-inappmessaging

I don’t know how to implement the plugin in the config.xml file.

I try this in config.xml : <plugin name="cordova-plugin-firebase-inappmessaging" source="npm" />

But does not work.

I have implemented de Firebase for Cloud Messaging and works fine. But this plugin have no reference or something to guide me.

Plugin page

The error is that Phonegap Build doesn’t recognize cli-9.0.0:

Plugin doesn't support this project's cordova version. cordova: 7.1.0, failed version requirement: >=9.0.0

Config.xml file:

<preference name='phonegap-version' value='cli-9.0.0' />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="28" />

Thanks in advance.

Try this: https://github.com/dpa99c/cordova-plugin-firebasex

I need support for Phonegap Build, and Firebasex doesn’t support phonegap.

This plugin will not work with Phonegap Build (and other remote cloud build envs) do not support Cordova hook scripts as they are used by this plugin to configure the native platform projects.

Did you find a solution?

Not yet. I can’t make Phonegap Build recognize cli-9.0.0.

https://blog.phonegap.com/cli-9-0-0-support-has-been-added-to-phonegap-build-da92fff6d588 а это что?

I read that blog post, but doesn’t work.
When you make the APK with Build Phonegap, in the log says

Plugin doesn't support this project's cordova version. cordova: 7.1.0, failed version requirement: >=9.0.0

In the XML file i got this
<preference name='phonegap-version' value='cli-9.0.0' />
But Phonegap doesn’t recognize it.

In the Adobe Forum for Phonegap Build there are many questions with the same problem.
Nobody knows why thats happens.

I use
https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated version 3.2.0 ( newer 4.1 stopped working for some reason)
All i can do with this plugin is just cloud messaging which is alright for me :slight_smile:

Thnaks for your response, I use another plugin for Cloud Messging, i need to implement InApp Messaging, without success at the moment.