# Sending Test Messages

We recommend sending test messages first if you'd like to preview how push notifications appear on actual devices before sending them or need to categorize test devices among your team members.

{% hint style="info" %}
**Before you start:**\
\
Have you subscribed to your device yet? Test messages can only be sent from devices that are already subscribed.&#x20;

Please proceed once you've integrated with the FlareLane console and there is at least **one subscribed device available**.
{% endhint %}

***

## Finding Your Device ID

### Mobile Push

Once you create a push notification and it's active, you can check the device ID (shown as 'deviceId') on your PC.

### Web Push

#### PC (Windows)

1. Right-click on the subscribed webpage and click on **Inspect**.

<div align="left"><figure><img src="/files/ILIrt9m6bON0YMOfmu2h" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure></div>

2. Go to the **Console** in the bottom right corner, then run the following command to generate your device ID:

```
FlareLane.getDeviceId(id => console.log(id))
```

<div align="left"><figure><img src="/files/5szSkvgag2Qr5GhKL98E" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure></div>

#### Mobile (Android)

After clicking the widget displayed on the site, click the **Allow Notifications** button 10 times to reveal the subscribed device ID.

<figure><img src="/files/3Rk0nM0cT25YFnwxGiMO" alt=""><figcaption><p>Image  by FlareLane</p></figcaption></figure>

***

## Adding Test Devices

On the test device page, enter the device ID from the above to add it as a test device, as shown below:

<figure><img src="/files/3BFmwmYbW0f8NQmQHvdo" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure>

***

## Testing Messages

Click **New Message** to compose your message, then click on **Send to Test Device**, as shown below:

<figure><img src="/files/tKIpFMjYnTyyZKqVxFUD" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure>


---

# 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://guide.flarelane.com/engagement-tools/sending-test-messages.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.
