[GH-ISSUE #3968] iOS Push Notifications have stopped working #14526

Closed
opened 2026-04-23 06:15:55 -05:00 by GiteaMirror · 11 comments
Owner

Originally created by @knightian on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3968

Discussed in https://github.com/dani-garcia/vaultwarden/discussions/3945

Originally posted by knightian October 2, 2023

Discussed in https://github.com/dani-garcia/vaultwarden/discussions/3943

Originally posted by knightian October 2, 2023
Latest version of vaultwarden and web vault

If I make a secure note in the webvault, it does not appear soon in the app on iOS.

I did a fresh generation of installation id and password for the config, and then I deleted the iOS app and reinstalled it so it would set up the push notifications in the app as per the wiki, but it does not work.

It used to work in previous versions.

There are no DNS issues at the moment because I am putting nameserver entry in resolv.conf to make trust-dns happy:

image

Your environment (Generated via diagnostics page)

  • Vaultwarden version: v1.29.2-bc26bfa5
  • Web-vault version: v2023.8.2
  • OS/Arch: linux/x86_64
  • Running within Docker: false (Base: Not applicable)
  • Environment settings overridden: false
  • Uses a reverse proxy: true
  • IP Header check: true (X-Real-IP)
  • Internet access: false
  • Internet access via a proxy: false
  • DNS Check: true
  • Browser/Server Time Check: true
  • Server/NTP Time Check: n/a
  • Domain Configuration Check: true
  • HTTPS Check: true
  • Database type: SQLite
  • Database version: 3.41.2
  • Clients used:
  • Reverse proxy and version:
  • Other relevant information:

Config (Generated via diagnostics page)

Show Running Config

Environment settings which are overridden:

{
  "_duo_akey": null,
  "_enable_duo": false,
  "_enable_email_2fa": true,
  "_enable_smtp": true,
  "_enable_yubico": true,
  "_icon_service_csp": "",
  "_icon_service_url": "",
  "_ip_header_enabled": true,
  "_smtp_img_src": "cid:",
  "admin_ratelimit_max_burst": 2,
  "admin_ratelimit_seconds": 6,
  "admin_session_lifetime": 20,
  "admin_token": "***",
  "allowed_iframe_ancestors": "",
  "attachments_folder": "data/attachments",
  "auth_request_purge_schedule": "30 * * * * *",
  "authenticator_disable_time_drift": false,
  "data_folder": "data",
  "database_conn_init": "",
  "database_max_conns": 256,
  "database_timeout": 30,
  "database_url": "***************",
  "db_connection_retries": 20,
  "disable_2fa_remember": false,
  "disable_admin_token": false,
  "disable_icon_download": false,
  "domain": "*****://********************",
  "domain_origin": "*****://********************",
  "domain_path": "",
  "domain_set": true,
  "duo_host": null,
  "duo_ikey": null,
  "duo_skey": null,
  "email_attempts_limit": 5,
  "email_expiration_time": 1800,
  "email_token_size": 6,
  "emergency_access_allowed": false,
  "emergency_notification_reminder_schedule": "0 3 * * * *",
  "emergency_request_timeout_schedule": "0 7 * * * *",
  "enable_db_wal": true,
  "event_cleanup_schedule": "0 10 0 * * *",
  "events_days_retain": null,
  "extended_logging": true,
  "helo_name": null,
  "hibp_api_key": null,
  "icon_blacklist_non_global_ips": true,
  "icon_blacklist_regex": null,
  "icon_cache_folder": "data/icon_cache",
  "icon_cache_negttl": 259200,
  "icon_cache_ttl": 2592000,
  "icon_download_timeout": 10,
  "icon_redirect_code": 302,
  "icon_service": "internal",
  "incomplete_2fa_schedule": "30 * * * * *",
  "incomplete_2fa_time_limit": 3,
  "invitation_expiration_hours": 120,
  "invitation_org_name": "Mine",
  "invitations_allowed": true,
  "ip_header": "X-Real-IP",
  "job_poll_interval_ms": 30000,
  "log_file": "/var/log/vaultwarden/vaultwarden.log",
  "log_level": "info",
  "log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f",
  "login_ratelimit_max_burst": 3,
  "login_ratelimit_seconds": 4,
  "org_attachment_limit": null,
  "org_creation_users": "**********************",
  "org_events_enabled": false,
  "org_groups_enabled": false,
  "password_hints_allowed": false,
  "password_iterations": 700442,
  "push_enabled": true,
  "push_installation_id": "***",
  "push_installation_key": "***",
  "push_relay_uri": "https://push.bitwarden.com",
  "reload_templates": false,
  "require_device_email": true,
  "rsa_key_filename": "data/rsa_key",
  "send_purge_schedule": "0 5 * * * *",
  "sendmail_command": null,
  "sends_allowed": true,
  "sends_folder": "data/sends",
  "show_password_hint": false,
  "signups_allowed": false,
  "signups_domains_whitelist": "***********,********************",
  "signups_verify": true,
  "signups_verify_resend_limit": 20,
  "signups_verify_resend_time": 300,
  "smtp_accept_invalid_certs": false,
  "smtp_accept_invalid_hostnames": false,
  "smtp_auth_mechanism": "\"Login\"",
  "smtp_debug": false,
  "smtp_embed_images": true,
  "smtp_explicit_tls": null,
  "smtp_from": "*****************************",
  "smtp_from_name": "Mine",
  "smtp_host": "******************",
  "smtp_password": "***",
  "smtp_port": 587,
  "smtp_security": "starttls",
  "smtp_ssl": null,
  "smtp_timeout": 15,
  "smtp_username": "***********************************",
  "templates_folder": "data/templates",
  "tmp_folder": "data/tmp",
  "trash_auto_delete_days": 30,
  "trash_purge_schedule": "0 5 0 * * *",
  "use_sendmail": false,
  "use_syslog": false,
  "user_attachment_limit": 102400,
  "web_vault_enabled": true,
  "web_vault_folder": "web-vault/",
  "websocket_address": "0.0.0.0",
  "websocket_enabled": false,
  "websocket_port": 3012,
  "yubico_client_id": null,
  "yubico_secret_key": null,
  "yubico_server": null
}
Originally created by @knightian on GitHub (Oct 11, 2023). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3968 ### Discussed in https://github.com/dani-garcia/vaultwarden/discussions/3945 <div type='discussions-op-text'> <sup>Originally posted by **knightian** October 2, 2023</sup> ### Discussed in https://github.com/dani-garcia/vaultwarden/discussions/3943 <div type='discussions-op-text'> <sup>Originally posted by **knightian** October 2, 2023</sup> Latest version of vaultwarden and web vault If I make a secure note in the webvault, it does not appear soon in the app on iOS. I did a fresh generation of installation id and password for the config, and then I deleted the iOS app and reinstalled it so it would set up the push notifications in the app as per the wiki, but it does not work. It used to work in previous versions. There are no DNS issues at the moment because I am putting nameserver entry in resolv.conf to make trust-dns happy: ![image](https://github.com/dani-garcia/vaultwarden/assets/72685601/13fec400-72b1-4533-a002-39493f4a7091) ### Your environment (Generated via diagnostics page) * Vaultwarden version: v1.29.2-bc26bfa5 * Web-vault version: v2023.8.2 * OS/Arch: linux/x86_64 * Running within Docker: false (Base: Not applicable) * Environment settings overridden: false * Uses a reverse proxy: true * IP Header check: true (X-Real-IP) * Internet access: false * Internet access via a proxy: false * DNS Check: true * Browser/Server Time Check: true * Server/NTP Time Check: n/a * Domain Configuration Check: true * HTTPS Check: true * Database type: SQLite * Database version: 3.41.2 * Clients used: * Reverse proxy and version: * Other relevant information: ### Config (Generated via diagnostics page) <details><summary>Show Running Config</summary> **Environment settings which are overridden:** ```json { "_duo_akey": null, "_enable_duo": false, "_enable_email_2fa": true, "_enable_smtp": true, "_enable_yubico": true, "_icon_service_csp": "", "_icon_service_url": "", "_ip_header_enabled": true, "_smtp_img_src": "cid:", "admin_ratelimit_max_burst": 2, "admin_ratelimit_seconds": 6, "admin_session_lifetime": 20, "admin_token": "***", "allowed_iframe_ancestors": "", "attachments_folder": "data/attachments", "auth_request_purge_schedule": "30 * * * * *", "authenticator_disable_time_drift": false, "data_folder": "data", "database_conn_init": "", "database_max_conns": 256, "database_timeout": 30, "database_url": "***************", "db_connection_retries": 20, "disable_2fa_remember": false, "disable_admin_token": false, "disable_icon_download": false, "domain": "*****://********************", "domain_origin": "*****://********************", "domain_path": "", "domain_set": true, "duo_host": null, "duo_ikey": null, "duo_skey": null, "email_attempts_limit": 5, "email_expiration_time": 1800, "email_token_size": 6, "emergency_access_allowed": false, "emergency_notification_reminder_schedule": "0 3 * * * *", "emergency_request_timeout_schedule": "0 7 * * * *", "enable_db_wal": true, "event_cleanup_schedule": "0 10 0 * * *", "events_days_retain": null, "extended_logging": true, "helo_name": null, "hibp_api_key": null, "icon_blacklist_non_global_ips": true, "icon_blacklist_regex": null, "icon_cache_folder": "data/icon_cache", "icon_cache_negttl": 259200, "icon_cache_ttl": 2592000, "icon_download_timeout": 10, "icon_redirect_code": 302, "icon_service": "internal", "incomplete_2fa_schedule": "30 * * * * *", "incomplete_2fa_time_limit": 3, "invitation_expiration_hours": 120, "invitation_org_name": "Mine", "invitations_allowed": true, "ip_header": "X-Real-IP", "job_poll_interval_ms": 30000, "log_file": "/var/log/vaultwarden/vaultwarden.log", "log_level": "info", "log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f", "login_ratelimit_max_burst": 3, "login_ratelimit_seconds": 4, "org_attachment_limit": null, "org_creation_users": "**********************", "org_events_enabled": false, "org_groups_enabled": false, "password_hints_allowed": false, "password_iterations": 700442, "push_enabled": true, "push_installation_id": "***", "push_installation_key": "***", "push_relay_uri": "https://push.bitwarden.com", "reload_templates": false, "require_device_email": true, "rsa_key_filename": "data/rsa_key", "send_purge_schedule": "0 5 * * * *", "sendmail_command": null, "sends_allowed": true, "sends_folder": "data/sends", "show_password_hint": false, "signups_allowed": false, "signups_domains_whitelist": "***********,********************", "signups_verify": true, "signups_verify_resend_limit": 20, "signups_verify_resend_time": 300, "smtp_accept_invalid_certs": false, "smtp_accept_invalid_hostnames": false, "smtp_auth_mechanism": "\"Login\"", "smtp_debug": false, "smtp_embed_images": true, "smtp_explicit_tls": null, "smtp_from": "*****************************", "smtp_from_name": "Mine", "smtp_host": "******************", "smtp_password": "***", "smtp_port": 587, "smtp_security": "starttls", "smtp_ssl": null, "smtp_timeout": 15, "smtp_username": "***********************************", "templates_folder": "data/templates", "tmp_folder": "data/tmp", "trash_auto_delete_days": 30, "trash_purge_schedule": "0 5 0 * * *", "use_sendmail": false, "use_syslog": false, "user_attachment_limit": 102400, "web_vault_enabled": true, "web_vault_folder": "web-vault/", "websocket_address": "0.0.0.0", "websocket_enabled": false, "websocket_port": 3012, "yubico_client_id": null, "yubico_secret_key": null, "yubico_server": null } ``` </details> </div></div>
Author
Owner

@knightian commented on GitHub (Oct 11, 2023):

Not sure why this issue keeps getting closed, multiple people have the issue now https://github.com/dani-garcia/vaultwarden/discussions/3945

<!-- gh-comment-id:1757143591 --> @knightian commented on GitHub (Oct 11, 2023): Not sure why this issue keeps getting closed, multiple people have the issue now https://github.com/dani-garcia/vaultwarden/discussions/3945
Author
Owner

@BlackDex commented on GitHub (Oct 11, 2023):

It gets closed because we can't fix this.
It works for a lot of other people. And we can't debug the server side stuff!!

<!-- gh-comment-id:1757150686 --> @BlackDex commented on GitHub (Oct 11, 2023): It gets closed because we can't fix this. It works for a lot of other people. And we can't debug the server side stuff!!
Author
Owner

@knightian commented on GitHub (Oct 11, 2023):

@BlackDex can you at least put debug logging for the stuff this side so we can trace it and report? Or are you saying that you have tested it and found that it is an error on Bitwarden push server side?

<!-- gh-comment-id:1757153983 --> @knightian commented on GitHub (Oct 11, 2023): @BlackDex can you at least put debug logging for the stuff this side so we can trace it and report? Or are you saying that you have tested it and found that it is an error on Bitwarden push server side?
Author
Owner

@BlackDex commented on GitHub (Oct 11, 2023):

@knightian I don't understand what you want with debugging which only tells you that something is being sent out.
One, if the DNS queries are visible, then it is send out. Second if there is an error that will be shown in the logs.

But as mentioned before, there are probably no errors! Since you would have seen those in the logs!
And everything sent to the Bitwarden Push environment is after that out of our control.

Not sure what you want more?
Also, we do except well written PR's, and you can also debug it locally via a mitmproxy or something!
A nice tool for this could be mitmproxy, which is what i also use for stuff like this instead of adding very very verbose debugging into a product which only adds extra load.

Also i want to make it clear that this project is mostly run by less then 1 hand full of people, who maintain this in there free spare time. This is an Open Source project without any warranties.
And complaining about dev's not wanting to put more debugging into something because they are busy with other stuff is out of proportion.

Also, besides this, i have mentioned the mitmproxy route before, and if people do not want to use that, that is fine, but don't come complain we don't want to help. We need more information, but again, you won't get it by adding more debugging and more output since again, errors will show in the logs. But hey, if you do not trust me on that, go and help us fix the code instead of complaining, that is not the Open Source way of thinking and working.

<!-- gh-comment-id:1757298415 --> @BlackDex commented on GitHub (Oct 11, 2023): @knightian I don't understand what you want with debugging which only tells you that something is being sent out. One, if the DNS queries are visible, then it is send out. Second if there is an error that will be shown in the logs. But as mentioned before, there are probably no errors! Since you would have seen those in the logs! And everything sent to the Bitwarden Push environment is after that out of our control. Not sure what you want more? Also, we do except well written PR's, and you can also debug it locally via a mitmproxy or something! A nice tool for this could be [mitmproxy](https://docs.mitmproxy.org/stable/), which is what i also use for stuff like this instead of adding very very verbose debugging into a product which only adds extra load. Also i want to make it clear that this project is mostly run by less then 1 hand full of people, who maintain this in there free spare time. This is an Open Source project without any warranties. And complaining about _dev's_ not wanting to put more debugging into something because they are busy with other stuff is out of proportion. Also, besides this, i have mentioned the mitmproxy route before, and if people do not want to use that, that is fine, but don't come complain we don't want to help. We need more information, but again, you won't get it by adding more debugging and more output since again, errors will show in the logs. But hey, if you do not trust me on that, go and help us fix the code instead of complaining, that is not the Open Source way of thinking and working.
Author
Owner

@pduchnovsky commented on GitHub (Nov 6, 2023):

I am experiencing the same issue, I set it up using US server but still, push is not working.

push_token is populated for my apple devices as I verified using sqlite, but no go.

From evidence I gathered however it does NOT seem to be an issue with vaultwarden, but rather on bitwarden end.. (or, vaultwarden is sending incorrect data but thats out of my reach to check.)

root@d-server:/volume1/docker/vaultwarden# sqlite3 db.sqlite3 "SELECT name,push_token FROM devices WHERE push_token IS NOT NULL;"
iPad11,6|<redacted>
iPhone16,1|<redacted>
iPhone15,2|<redacted>

Container is properly accessing the domain as verified using adguard home query history:
image

¯\(ツ)

<!-- gh-comment-id:1797001320 --> @pduchnovsky commented on GitHub (Nov 6, 2023): I am experiencing the same issue, I set it up using US server but still, push is not working. push_token is populated for my apple devices as I verified using sqlite, but no go. From evidence I gathered however it does NOT seem to be an issue with vaultwarden, but rather on bitwarden end.. (or, vaultwarden is sending incorrect data but thats out of my reach to check.) ``` root@d-server:/volume1/docker/vaultwarden# sqlite3 db.sqlite3 "SELECT name,push_token FROM devices WHERE push_token IS NOT NULL;" iPad11,6|<redacted> iPhone16,1|<redacted> iPhone15,2|<redacted> ``` Container is properly accessing the domain as verified using adguard home query history: ![image](https://github.com/dani-garcia/vaultwarden/assets/54581833/6513f31e-38d4-4a65-8e43-0ff2f438c674) ¯\\_(ツ)_/¯
Author
Owner

@knightian commented on GitHub (Nov 7, 2023):

I got it to work, what I did is I used mitm proxy to try and debug what was happening, and I trusted the certificate for mitm proxy to be able to inspect the HTTPS messages...... it seems that by trusting the mitm proxy it all started working. Maybe vaultwarden is seeing some certificate trust issues for one of the bitwarden push domains or something like that.

<!-- gh-comment-id:1797087713 --> @knightian commented on GitHub (Nov 7, 2023): I got it to work, what I did is I used mitm proxy to try and debug what was happening, and I trusted the certificate for mitm proxy to be able to inspect the HTTPS messages...... it seems that by trusting the mitm proxy it all started working. Maybe vaultwarden is seeing some certificate trust issues for one of the bitwarden push domains or something like that.
Author
Owner

@BlackDex commented on GitHub (Nov 7, 2023):

@knightian , that isn't possible. You only added a trust for the mitm cert, not others i think. Also, you would have seen a cert error message in that case.

Maybe it's just coincidence 🤔.

<!-- gh-comment-id:1797908205 --> @BlackDex commented on GitHub (Nov 7, 2023): @knightian , that isn't possible. You only added a trust for the mitm cert, not others i think. Also, you would have seen a cert error message in that case. Maybe it's just coincidence 🤔.
Author
Owner

@knightian commented on GitHub (Nov 7, 2023):

You only added a trust for the mitm cert, not others i think

Yea but the mitm proxy uses its certificate for every connection, basically vaultwarden sees only the mitm proxy certificate for every single URL. You're right though, it could be a coincidence which is why I didn't bother to mention it until now.

<!-- gh-comment-id:1797920444 --> @knightian commented on GitHub (Nov 7, 2023): > You only added a trust for the mitm cert, not others i think Yea but the mitm proxy uses its certificate for every connection, basically vaultwarden sees only the mitm proxy certificate for every single URL. You're right though, it could be a coincidence which is why I didn't bother to mention it until now.
Author
Owner

@BlackDex commented on GitHub (Nov 7, 2023):

But, are you still using the mitm? If not, and it is still working, then it can't be the cert. If you are still using the mitm, it could maybe, but i would suggest to stop it, not very secure.

<!-- gh-comment-id:1797925638 --> @BlackDex commented on GitHub (Nov 7, 2023): But, are you still using the mitm? If not, and it is still working, then it can't be the cert. If you are still using the mitm, it could maybe, but i would suggest to stop it, not very secure.
Author
Owner

@knightian commented on GitHub (Nov 7, 2023):

Nah I'm not using it now. I'm wondering if it was the registration process of the device failing and then when I used mitm it registered and now it continues to work ever since.

<!-- gh-comment-id:1797929203 --> @knightian commented on GitHub (Nov 7, 2023): Nah I'm not using it now. I'm wondering if it was the registration process of the device failing and then when I used mitm it registered and now it continues to work ever since.
Author
Owner

@pduchnovsky commented on GitHub (Nov 7, 2023):

But that doesn't explain the situation I highlighted above, where I have the push_token for all three apple devices (thus means they got registered already) and yet the push does not work at all :/

<!-- gh-comment-id:1798344928 --> @pduchnovsky commented on GitHub (Nov 7, 2023): But that doesn't explain the situation I highlighted above, where I have the push_token for all three apple devices (thus means they got registered already) and yet the push does not work at all :/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#14526