> For the complete documentation index, see [llms.txt](https://help.winday.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.winday.co/publish-campaigns/publish-in-mobile-app/webview.md).

# 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="/files/r1svAjNz5IJRdkhswvef" 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));
```
