# 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));
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.winday.co/publish-campaigns/publish-in-mobile-app/webview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
