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:
fyayc-chrisat 2019-02-10 19:25:25 +01:00 committed by GitHub
parent 537f7a859f
commit 681e3ca480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);",