151
Views
1
Comments
[BackgroundMode Plugin] BackgroundMode plugin problem
Question
backgroundmode-plugin
Mobile icon
Forge asset by Alexandre Costa


I downloaded the BackgroundMode plugin together with the BackgroundModeDemo app. Running this app in Outsystems Now resulted both in iOS and Android in the following problem:

The OnApplicationReady Eventhandler of the demo app calls the CheckBackgroundModePlugin ClientAction of the plugin. Part of this ClientAction is PluginIsLoaded javascript containing the following code:

if((typeof(cordova.plugins.backgroundMode) === "undefined"))
    $parameters.IsLoaded = false;
else
    $parameters.IsLoaded = true;

This fails ($parameters.IsLoaded set to false) and results in the following error:
ErrorCode: 2
ErrorMsg: "BackgroundMode plugin is not present or not loaded"

What could be the cause of this problem?

Best regards,
P. Dijkstra
2020-12-15 11-23-41
César Afonso
Staff

Hello P. Dijkstra

This plugin won't work when using OutSystems Now. OutSystems Now is a developer tool that doesn't have this plugin pre-built, so, you cannot use it (More info: Supported plugins)

You'll need to generate a mobile app to use the plugin.

Thanks


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