# How to send a test notification to my web browser on Android?

To send a test notification to your web browser on Android, you can use the **Custom User ID** or the Installation ID. If you already have your Custom User ID, skip to the 3rd step. If you don't have it, you can locate your **Installation ID**.

\
To find your Installation ID on Android, two methods can be used (steps 1.a and 1.b lead you to step 2):

## 1.a. Locate your Installation ID directly from your Android device <a href="#id-1-remote-debug-your-android-device" id="id-1-remote-debug-your-android-device"></a>

This is the easiest way to locate your Installation ID, directly from your Android phone.

1. Go to your website in the Chrome browser of your smartphone (it is important to use Google Chrome to find the ID)
2. Type in the search bar: `javascript:` (Do not paste it)
3. Then type in or paste the following text: `batchSDK('ui.showPublicIdentifiers')`
4. Make sure that the following text is fully written in the search bar:

   `javascript:batchSDK('ui.showPublicIdentifiers')` then validate.
5. A window will pop up, with information such as your Installation ID.

## 1.b. Remote Debug your Android device <a href="#id-1-remote-debug-your-android-device" id="id-1-remote-debug-your-android-device"></a>

Remote Debugging lets you inspect a page running on an Android device from your own machine.

* First, enable **Debugging and Developer options** on your Android as described in [this documentation.](https://developer.android.com/studio/debug/dev-options?hl=fr)
* Once your Android device is connected, **open Chrome** on your machine.
* Open a new tab, and paste the following URL: **chrome://inspect/#devices**
* In **"Devices"** enable "**Discover USB devices**"
* Your device should be visible in the list of devices. Open your website's URL and click on "**Inspect**". This should open a new window with the developers' tools tab open

<figure><img src="/files/TbIS9fAS7kQDSOYAZGl4" alt=""><figcaption></figcaption></figure>

### Locate your installation ID <a href="#h_b0b1598a98" id="h_b0b1598a98"></a>

Once you have the developer tools open, click the "*Console*" tab, and paste the following code:

```javascript
"batchSDK" in window?window.batchSDK(function(a){a.getInstallationID().then(function(a){window.prompt("Here is your Batch Installation ID",a)})}):window.alert("Batch SDK is not running");
```

or

```java
batchSDK('ui.showPublicIdentifiers')
```

## 2. Your Installation ID is displayed on your Android device: <a href="#h_46d9cee980" id="h_46d9cee980"></a>

[![](https://downloads.intercomcdn.com/i/o/648533553/71c041e8961add8df692233c/Screenshot_20230105-191934+%281%29.png?expires=1748421900\&signature=c42150dd7f88f2894ca34795dbaf674529b64731281c0ce01e3e4fa5e5781619\&req=ciQvE8p9mIRcFb4f3HP0gBBdAItxOMUyCVOIauCMI6EwID5wtn4CJgmHsyyo%0AHzQO4ZOv4PyOTGu8wg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/648533553/71c041e8961add8df692233c/Screenshot_20230105-191934+%281%29.png?expires=1748421900\&signature=c42150dd7f88f2894ca34795dbaf674529b64731281c0ce01e3e4fa5e5781619\&req=ciQvE8p9mIRcFb4f3HP0gBBdAItxOMUyCVOIauCMI6EwID5wtn4CJgmHsyyo%0AHzQO4ZOv4PyOTGu8wg%3D%3D%0A)

## 3. Sending a test notification <a href="#h_5e48eb26bd" id="h_5e48eb26bd"></a>

Using your **Custom User ID** or your **Installation ID**, you can send a test notification in 3 different ways from the dashboard as described in the 3rd section of [this article.](https://doc.batch.com/guides-and-best-practices/message/push-notifications/how-to-send-a-test-push-notification-to-your-web-browser)


---

# 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://doc.batch.com/developer/technical-guides/how-to-guides/mobile/android-specific/how-to-send-a-test-notification-to-my-web-browser-on-android.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.
