# 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="https://38998153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCL8wF0y1T2vLnm3yR2MW%2Fuploads%2FPcVQRyhTX6nRSrRFyE7a%2FtechnicalGuides_chromeAndroidDevTools_300525.png?alt=media&#x26;token=05449dd3-c52e-49d7-bfca-9084c8312c25" 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+\(1\).png?expires=1748421900\&signature=c42150dd7f88f2894ca34795dbaf674529b64731281c0ce01e3e4fa5e5781619\&req=ciQvE8p9mIRcFb4f3HP0gBBdAItxOMUyCVOIauCMI6EwID5wtn4CJgmHsyyo%0AHzQO4ZOv4PyOTGu8wg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/648533553/71c041e8961add8df692233c/Screenshot_20230105-191934+\(1\).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)
