iOS SDK
iOS Webview
5 min
overview for apps that incorporate hybrid or mobile browsers, forter offers a webview integration solution as part of the webview integration, please make sure to also include the forter javascript for webview/browser based components of your app the forter js snippet code and extensive information can be found in front end integration https //docs forter com/front end integration this call places the mobileuid in a global js variable (inside the wkwebview) which is later collected by our javascript wkwebview after the wkwebview is initialized please execute the following code \[wkwebview evaluatejavascript \[ftrwebviewintegration getjscodeforeval] completionhandler\ null]; official developer documentation for ios wkwebview embedding can be found here https //developer apple com/documentation/webkit/wkwebview hybrid apps with web browser checkout page if your app's checkout page uses a webview, use one of the above webview methods in the sdk make sure that the forter javascript is also located within the html of the checkout page so that the relevant behavioral and cyber data can be captured send the fortertoken generated by the javascript when an order is placed on a web based checkout page (in a hybrid mobile app) the api request should include the fortertoken (generated by the forter javascript) connectioninformation object of the api request and not the mobileuid generated by the forter sdk use web ordertype additionally, when the api request is made to forter, the ordertype of the request body should have an enum value of "web" and not mobile so that our models understand that the order was placed on a mobile web browser and not a native mobile screen example hybrid mobile order request the example below outlines the format for an order that was placed on a hybrid web app with an integrated mobile browser as the checkout page note the ordertype and fortertokencookie values in the request a fortermobileuid is not included in webview orders { "ordertype" "web", "eventtime" 1648651702558, "connectioninformation" { "customerip" "12 182 159 90 51072", "fortertokencookie" "30867f63af3542cb97881066f290bd", "useragent" "teststore/21 1211 cfnetwork/1329 darwin/21 3 0" }, }