mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-26 01:04:55 +00:00
function onactivate does no longer exist
I got the error message that "onactivate" does not exist with the latest HEAD Version. I therefore investigated and found out that since the on() function has been changed, I think this has been forgotten to also be changed in the Java file.
This commit is contained in:
parent
537f7a859f
commit
681e3ca480
@ -294,7 +294,7 @@ public class BackgroundMode extends CordovaPlugin {
|
||||
String str = String.format("%s._setActive(%b)",
|
||||
JS_NAMESPACE, active);
|
||||
|
||||
str = String.format("%s;%s.on%s(%s)",
|
||||
str = String.format("%s;%s.on('%s', %s)",
|
||||
str, JS_NAMESPACE, eventName, params);
|
||||
|
||||
str = String.format("%s;%s.fireEvent('%s',%s);",
|
||||
|
Loading…
Reference in New Issue
Block a user