Tobias Kausch
Tobias Kausch
@rafaelgalle this is great. I see that there is already the functionality in this plugin (not released on npm yet) to disable battery optimization in the code. `disableBatteryOptimizations` https://github.com/katzer/cordova-plugin-background-mode/commit/537f7a859f6ae7aacadcc42eb6db28571a20eea1 Did...
@MyoungboKim are you using the ionic native wrapper `@ionic-native/background-mode` to access this plugin? It is normal that this is not updated because this feature on the background-mode plugin has not...
I just saw in this commit that we have to add the permissions on our own: https://github.com/katzer/cordova-plugin-background-mode/commit/a9669052c0e927eedaa03d896217a011b87eb43c#diff-53f390d375398624afe1cfe1125f42bf any special reasons for this @katzer ? (by the way, thanks for this...
@n1705771 your final code looks alright, you get the console.log at the end? did you add `` in `platforms/android/app/src/main/AndroidManifest.xml` Maybe this makes a difference? I haven't had the 5min problem...
@n1705771 can you tell me which version of @ionic-native you are using? for me there is a problem in `@ionic-native/background-mode@^5.4.0` the .on is not correct `on(event: string, callback: (...args: any[])...
@n1705771 ok, but as I said ths version is a bit incorrect which will result in your event not being called. As a workaround you can apply the modification I...
@iamisti Did you resolve your problems? The plugin only works on a device, not in the browser. If all is ok for you could you please close this issue?
Hello @SanjanaTailor, yes it's working on my device. The npm version of this plugin is very old so I recommend to install the github version if you didn't do so...
hi @SanjanaTailor , did you execute this command? `cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git` because what you installed in your previous code is just the wrapper for the plugin, not the plugin...
maybe you could try to follow this indications? https://stackoverflow.com/a/50270455/1956372 I can only guess from here but maybe after removing and re-adding the android or ios platform you will notice if...