The Apollo Apps Plugin API allows you to directly utilize the available interaction methods with the application.
1. Exchange Principle Plugin => Native => Plugin
The method calls from the plugin to the application are made by triggering a web navigation to a particular URL.
2. Method Cals (Plugin => Native)
All method calls of the Apollo Apps API Plugin must be performed by triggering a web navigation. This navigation may be triggered in several ways:
- Clicking on a link
- Submitting a form
Please note: Ajax requests (XMLHttpRequest) are not considered as triggering a navigation and can therefore not be used for method calls of the Apollo Apps Plugin API.
The majority of available methods (apart from the "basic" methods described in the documentation) must trigger a navigation to a URL beginning with Apollo Apps://, followed by the name of the method to call and other parameters.
With a few exceptions, the arguments muss go directly through the URL, but in some instance, especially for navigation methods, POST arguments may be used.
3. Calls and implementation of callbacks (Native => Plugin)
In the documentation for the Apollo Apps Plugin API, you will find the definitions of the callbacks that can be implemented, as well as an example of implementation.
Callbacks can be called by the application for two main reasons:
- A method call requiring a response
- During the life cycle of your plugin (methods documented in the Events Callbacks section)
4. Data accessible by default
Contains information on the terminal, the OS, etc.
"platform" : "ios" | "android",
"binaryVersion" : version of the application's binary,
"gbVersion" : version of the GoodBarer foundation,
"osVersion" : version of the OS terminal,
"deviceCode" : code name of the terminal (for example : "iPhone5,2"),
"language" : user language
Contains a dictionary of the parameters in POST following the call of the preceding method, in the case of navigation methods.