How to Develop a Simple OFS Hosted Plugin
This page details how to develop a simple hosted plugin using plugins API, host it as a plugin archive within OFS, and use it.
With this simple plugin, the plugin runtime behaviours including the plugin API messages flows during its life cycle are also explained.
Some Basics
Every plugins in OFS mobility application are loaded within an iframe.
The OFS Plugin APIs enables back and forth communication between OFS main application and the plugin application. Plugin APIs are invoked using JavaScript windows.postMessage() API. The plugins listen to message events from plugin framework by listening to the specific message events using JavaScript
Tagged:
3