How is phonegap native plugin lifecycle for android and ios?
Imagine that I have java/ObjectiveC code which is doing some work for my phonegap app, however in my plugin i start several threads to support small part of the main work. So what happens after callbackContext.success(); does environment still exists where my threads still running or my VM will be stopped after result received by phonegap???
Thanks in advance.
The plugins are alive as long as the webview is alive, but plugins by default, will only trigger the callback once
setKeepCallback(true); option. To do so, you will need to have a
PluginResult in your plugin class and then, use the
callbackContext.sendPluginResult() instead of the
something like this: