Android SDK
Android Webview
5 min
webview integration (required when using webviews) the android webview integration should be included if your app structure incorporates a browser or webview within any screens of your native app (e g , opening a web view during checkout within the mobile app) once your webview https //developer android com/reference/android/webkit/webview\ html is ready, please call our webviewintegration with your webview's instance webviewintegration inject(webview); this call places the mobileuid in a global js variable (inside the webview) which is later collected by our javascript (which should placed on every page of your native desktop code) 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" }, }