20
Views
5
Comments
[Cloud Messaging Plugin (Firebase)] Cordova plugin is unavailable
Question
cloud-messaging-plugin-firebase
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hi OutSystems friends,

We are facing an issue trying to implement this forge library. We are using the ODC library! 


Error code: 2
Error message: Plugin is not loaded.

We get this error when we call the client action CheckCloudMessagingPlugin. The action is called when we click on a button. 

CheckFirebaseCorePlugin goes well, IsCordovaDefined goes well but PluginIsLoaded fails: 

We don't know why this is happening. 


The version of the plugin is : v2.2.. WE ARE WORKING IN ODC! 

We are getting the error in a native iOS app: 

- iOS version: 18.3.2

- Device: Iphone 12

We are testing using Test Flight (if relevant).


Hopefully someone can help us out! 

Thank you,

Liesbeth


2025-01-10 11-40-52
Pedro Gustavo Bilro

Hey Liesbeth, a few questions to better understand what could be causing this. 


  1. Are you using the Plugin as installed from forge, or did you perform any customizations to it?
  2. Did you generate a new mobile app after adding the plugin, and are you receiving that error in the new mobile package you are using?
  3. Are you using this plugin on an Android app as well? If so, are you getting the same error there?
UserImage.jpg
Brecht Vaelen

Hi Pedro,
I work together with Liesbeth on the issue,
Thank you for the quick reply.

  1. We installed the Plugin directly from the Forge, so no customizations.
  2. We created a new clean mobile app, added the Plugin and made a Package.
  3. We tested the plugin on Android (purely for testing) and this gave an error as well. I believe it was the same error about missing the Cordova Plugin.  @Liesbeth can you add which exact error this was?

Thanks for helping us out

2025-01-10 11-40-52
Pedro Gustavo Bilro

Hey Brecht, are you using the latest version from Forge? Liesbeth's message mentions "v2.2.", the most up-to-date version is v2.2.1.

UserImage.jpg
Brecht Vaelen

Hi Pedro,
Thanks for your quick reaction

Indeed, we use the latest version v2.2.1.

2025-01-10 11-40-52
Pedro Gustavo Bilro

Thanks for checking Brecht. Are you able to export the new application you created on ODC, and share it here?

To try to reproduce it on my side with the exact same project.

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