WebView
After an instant or a tournament game is published, it can be integrated into a mobile application.
Plugin Integration
Create a component where you open a WebView corresponding to the technology that is used in the application.
Use the game link from the Game Details page:

Add the following parameter at the end of the link:
?isMobile=true
When the user clicks on the close button, the plugin will send a message with the text exit-mobile-plugin
const exitPluginFun = (event: MessageEvent) => {
const data = event.data;
if (data === 'exit-mobile-plugin') { iframe.remove(); }
window.removeEventListener('message', (event) => exitPluginFun(event));
};
window.addEventListener('message', (event) => exitPluginFun(event));
Last updated
Was this helpful?