I am working on a Cordova based iOS project. I need to create a bit of a special plugin: first it has to be called from the iOS layer of the app, instead of starting on the JS side.
It is clear to me that normally the lifecycle of the a plugin is started in JS, then cordova.exec calls to the native layer, which instantiates the CDVPluginResult, by which then JS part is called back.
But my plugin has to have a different lifecycle. I need to start the whole thing from the iOS native part, which would call the JS layer.
How can I implement this?
Thank you for your help.