From ab79ddfaaee607ebf8f04c1d57fb0adb981359f6 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Thu, 1 Feb 2024 19:44:45 +0100 Subject: [PATCH] explain how to switch data regions --- Enabling-Mobile-Client-push-notification.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Enabling-Mobile-Client-push-notification.md b/Enabling-Mobile-Client-push-notification.md index 94547dd..79c77ab 100644 --- a/Enabling-Mobile-Client-push-notification.md +++ b/Enabling-Mobile-Client-push-notification.md @@ -28,4 +28,19 @@ docker compose up -d vaultwarden > :bulb: Push notifications will also **only work** on Bitwarden apps obtained from the official mobile stores (App Store, Google Play Store) or when using alternative clients for the Google Play Store (such as Aurora Store). Push notifications **will not work** using Bitwarden clients installed from [F-Droid](https://mobileapp.bitwarden.com/fdroid/), NeoStore or other alternative stores. Those apps have been built without support for Firebase Messaging. -5. Test if mobile push notifications work, for example by renaming a folder in the web vault and see if it changes after a few seconds in your mobile app. \ No newline at end of file +5. Test if mobile push notifications work, for example by renaming a folder in the web vault and see if it changes after a few seconds in your mobile app. + +### Switching from US to EU servers (or vice versa) + +To switch from one to the other you'll have to: +1. deauthorize all sessions and also clear the app data on the mobile app +2. repeat steps 1. to 5. from the previous section with the different data region + +Alternatively to 1., you could also clear the `push_uuid` field of the `devices` table in the database, e.g. +```sql +UPDATE devices SET push_uuid = NULL; +``` + +This _should_ trigger your push devices to be re-registered on your next login with the device. + +:warning: Make sure you use the latest version (> 1.30.2) before doing that change. \ No newline at end of file