Feature Hybrid
Feature Hybrid is a technique that allows for the integration of a Web Iframe into a Mobile/Web App, with synchronized communication between the two.
To implement Feature Hybrid, the client app must listen for the onMounted event to determine when the web iframe is ready for use. Once the event fires, the client app can then make initial requests, such as doSetupData and doRenderPayment, to send data from the Mobile/Web App to the Web Iframe.
Technologies/Libraries Required to Implement Hybrid
-
Web: postMessage API must be used for communication between the Web Iframe and Mobile/Web App in a web environment.
Reference: MDN Web API Reference - postMessage
-
iOS: WKWebViewJavascriptBridge library must be used on iOS platforms.
Reference: WKWebViewJavascriptBridge on GitHub
-
Android: JsBridge library must be used on Android platforms.
Reference: JsBridge on GitHub