This guide is designed for the iOS operating system.
To embed within an Android app, please use the Android version of this guide located at the following link: Embed in Mobile (Android)To load the Trip Element within a mobile application, we recommend using the WKWebView object Class for iOS.
First, you can create a standard HTML file that loads the Trip Element just like any other webpage. Here, you can define your elementConfig and pre-configure the element with the desired properties.
In this example, we have pre-configured a trip for a CAN
passport holder traveling from CAN
to EGY
.
Next, set up WebView in your development environment. Here, you will call the HTML file that you created in Step 1 in order to display the Trip Element within your mobile app (Line 8). The following code sample is written in Swift.
You should now have the Trip Element loaded within your mobile app. Sample output is provided below.