All Collections
Push Notifications
How can I send a test notification to my web browser on Android?
How can I send a test notification to my web browser on Android?

You can target your mobile device from the dashboard to test your web notifications are displayed correctly on Android.

Selma avatar
Written by Selma
Updated over a week ago

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.

In order to find your Installation ID on Android, 2 methods can be used ( Steps 1.a) and 1.b) leads you to step 2 ) :

1.a) Locate your Installation ID directly from your Android device

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

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.

  • Once your Android device is connected, Open Chrome on your machine.

  • Open a new tab, and paste the following URL: chrome://inspect/

  • In Remote Devices > Settings 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.

Locate your installation ID

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

"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");

2. Your Installation ID is displayed on your Android device:

3. Sending a test notification

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.

This article belongs to Batch's FAQ. Need more help? Find insightful articles, documentation, case & market studies, guides, and even more in our website's Resources section on and our blog.

Did this answer your question?