# Why am I receiving my push notifications twice on Android?

During your tests on Android devices, you may receive push notifications twice.

## Push receiver conflict <a href="#push-receiver-conflict" id="push-receiver-conflict"></a>

What probably happens is that one is displayed by Batch, and the second is from another push SDK or your custom code. It's usually not the expected behaviour.

The reason is that Batch comes with its own receiver that manages the display of your push notification automatically.\
​

On the other hand, your FirebaseMessagingService implementation (or any other Push SDK) might not correctly handle notifications sent by Batch.

You have different ways to deal with this situation:

1. You can keep Batch's receiver and skip executing your own code when `Batch.Push.isBatchPush(RemoteMessage message)` returns `true`&#x20;
2. You can put Batch in manual mode, create your own custom receiver, and take full control of the display of your push notifications.

## SDK API Key issues <a href="#sdk-api-key-issues" id="sdk-api-key-issues"></a>

{% hint style="warning" %}
This part is only relevant for apps using the legacy DEV Key and Live API Key. You can ignore that option if you don't have a Dev API Key on your dashboard.
{% endhint %}

If you installed a version of your app using the Batch Dev API key and updated it to a version using the Live API key, then Batch will have one installation with a valid token on both environments, and you will receive push notifications twice. In this case, reinstalling the app should fix the issue.

If this happens in production, then you may have used the Dev API key in production. You will find instructions on how to fix the issue [in our App settings documentation](https://doc.batch.com/dashboard/settings/app-settings#fixing-api-key-issues).


---

# 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/troubleshooting/why-am-i-receiving-my-push-notifications-twice-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.
