title: Cordova - Call JS part of plugin from iOS native
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>How can I implement this? </p>
  
  <p>Thank you for your help. </p>