# 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>" %}
