

Going directly to the Cordova application your plugin will not have a chance This resume payload will be passed to any callbacks that the javascriptĪpplication has registered for the resume event. result will be whatever result the plugin passes to the CallbackContext.See PluginResult.java for the String values pluginStatus will be a String describing the status of the PluginResult.pluginServiceName will match the name element from your plugin.xml.Payload of the resume event follows this structure: Resume event that is fired when the application resumes. Instead, this replacement CallbackContext will return the result as part of the Original callback is lost, and will not be fired in the javascript application. It is important to realize that thisĬallbackContext IS NOT the same one that was destroyed with the Activity. Plugin requested using the CordovaInterface's startActivityForResult() methodĪnd the Cordova Activity was destroyed by the OS while in the background.Īs part of onRestoreStateForActivityResult(), your plugin will be passed a Restored except in the case where an Activity result is obtained that your Necessary to handle that Activity result.

Plugin launches an Activity for a result and should only restore the state It is important to note that the above methods should only be used if your Public boolean execute ( String action, JSONArray args, final CallbackContext callbackContext ) throws JSONException
