# WebView

After an instant or a tournament game is published, it can be integrated into a mobile application.

### Plugin Integration

1. Create a component where you open a WebView corresponding to the technology that is used in the application.

{% hint style="info" %}
What is [WebView](https://en.wikipedia.org/wiki/WebView)?
{% endhint %}

2. Use the game link from the Game Details page:

<figure><img src="https://4030329530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTP9pFZ2vkhu9r1UmFiPi%2Fuploads%2FVVnJAK4hVLulou0vnJ62%2Fgame-link.png?alt=media&#x26;token=7df6890e-707a-46db-8ac3-b5f67500d7f1" alt=""><figcaption></figcaption></figure>

3. Add the following parameter at the end of the link:

<pre class="language-javascript"><code class="lang-javascript"><strong>?isMobile=true
</strong></code></pre>

4. 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));
```
