[BackgroundMode Plugin] BackgroundMode plugin problem

[BackgroundMode Plugin] BackgroundMode plugin problem

  
Forge Component
(0)
Published on 2016-12-16 by Alexandre Costa
0 votes
Published on 2016-12-16 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

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