iOS integration requires a WebView to be loaded. Create a webpage to be displayed using this WebView. This webpage is used to integrate the application with the Applixir SDK.
Please note that Apple has always worked to control the user environment in iOS so you must understand how the various versions of iOS deal with playing inline video content (including online video ads).
Points to Note:
- To load Applixir player and start the ad loading process, invoke invokeApplixirVideoUnit on a user action on the webpage else it will generate an error. Depending on your specific implementation, you can choose to show ads when the app first opens (pre-roll ads), when the user clicks a button for a reward or you can also setup a timer in javascript to invoke invokeApplixirVideoUnit every few minutes during your primary video.
- If an ad is detected, take appropriate actions on your app to give the Applixir player all the attention (e.g. pause video content, place a wall over your game content, etc.).
- When the video ad completes, return the control to your game, app or play your video content. The Applixir video player will auto close.
- The Applixir SDK provides event callbacks which can be used to keep the app and user in sync with the ad process.
Refer to the HTML integration guide for more detailed instructions on creating a HTML page.
Find samples and other support items here: https://cdn.applixir.com/iOS-SDK.zip