# Missing push notifications after connecting to API

You will need the API call responsible for changing the channel settings:&#x20;

{% embed url="<https://whapi.readme.io/reference/updatechannelsettings>" %}

Look for the `offline_mode` parameter. Set it to `true`.&#x20;

This way API will not send online status to the server when connecting. Thus you will receive push notifications. After changing the setting, you need to re-authorize the channel.

It is important to note that if you go to the messenger from your phone, it will return your status `online` and accordingly notifications will stop coming again.

In such cases, we recommend calling the `PUT https://gate.whapi.cloud/presences/me` endpoint with the parameter `presence: offline` after each use of the phone. This will help reset the presence status on the device.

For better consistency, consider implementing a loop that sets the offline status at regular intervals (e.g., once per minute) — or immediately after sending an outgoing message from the phone.

{% embed url="<https://whapi.readme.io/reference/sendmepresence>" %}


---

# 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://support.whapi.cloud/help-desk/troubleshooting/missing-push-notifications-after-connecting-to-api.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.
