> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/troubleshooting/missing-push-notifications-after-connecting-to-api.md).

# Missing push notifications after connecting to API

This problem can occur with iPhones when you stop receiving incoming push notifications after connecting to the gateway

You will need the API call responsible for changing the channel settings:

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

Look for the `offline_mode` parameter. Set it to `true`.

This way API will not send online status to the server when connecting. Thus you will receive push notifications. No re-authorization is needed — changing `offline_mode` restarts the channel's connection automatically.

{% hint style="warning" %}
**The value can turn back to `false`.** If you later update the channel settings without `offline_mode` in the request (for example, change only the webhook), it returns to its default `false` and push notifications stop again. Send `"offline_mode": true` in every settings update request. Details and an example: [Channel Settings overview](https://support.whapi.cloud/help-desk/account-and-whapi-channels/channel-settings-overview).
{% endhint %}

Notifications stopped again after everything was set up? First check `offline_mode` with [Get channel settings](https://whapi.readme.io/reference/getchannelsettings).

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.

If notifications still don't appear, set up a loop that sends this request once every 5 minutes with the body `{"presence": "offline"}` — or immediately after sending an outgoing message from the phone.

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