Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link WhatsappWebToGo with WhatsApp on a different user profile? - Foreground Service option might help #95

Open
martin-braun opened this issue Oct 24, 2022 · 8 comments

Comments

@martin-braun
Copy link

martin-braun commented Oct 24, 2022

I'm using GrapheneOS, created multiple users and installed WhatsApp through the Aurora Store on a secondary user profile. Now I wish to link WhatsappWebToGo on my primary user profile with the official WhatsApp on my secondary user profile.

I take a screenshot of the QR code in WhatsappWebToGo and share it to my Saved Messages in Telegram.
I switch to my secondary profile and I hit "Link new device" in the official WhatsApp app and I scan the QR code on my Laptop screen where I have Telegram opened. I get "Linking device". Now I switch back to the primary profile with WhatsappWebToGo. I manage to get through the initial state when I switch fast enough, but no messages get downloaded and no contacts are listed. Now I switch back to WhatsApp on my secondary profile, it got the device linked (sometimes, sometimes not), but switching back to my primary profile into WhatsappWebToGo will show a new QR code, so the hand-shake failed.

It seems both apps need to run at the same time to success the hand-shake. GrapheneOS improved security between profiles by pausing all background and normal apps when switching profiles, however foreground apps should remain active, because I manage to get notifications across user profiles from apps that leverage the ForegroundService.

It would be nice if WhatsappWebToGo could offer an option to enable a ForegroundService, so it won't be paused by GrapheneOS when switching profiles. I think this would solve the issue already. I can't use WhatsappWebToGo now, because I also need WhatsApp on the same device (isolated) for some important contacts who wish to video call sometimes. For privacy reasons I can't install WhatsApp on my primary profile, leading me to this issue now.

@92lleo
Copy link
Owner

92lleo commented Jan 27, 2023

Hi @martin-braun
sorry for the late feedback.
It's already planned to have an option to keep the app alive. I don't know yet how a forground service behaves together with webview, probably it will be just a permanent silent notification or something like that. That should fix your issue

@martin-braun
Copy link
Author

@92lleo Thanks, please keep me updated about this, looking forward to get this going. I don't care about notifications from other profiles at this time. It's all about getting the hand-shake going. Checking my WhatsApp without switching my profile to my "social" profile would be a huge upside for me.

If you have an alpha build for me to test, I would be happy to test it and report back.

@fossifly
Copy link

Hi @martin-braun
I have a similar setup and found a workaround for now (root is probably required):

  • Install WhatsappWebToGo on the secondary profile.
  • Do the device linking in split-screen mode (I used 'linking with phone number', so I just had to type in the code).
  • Linking should work, and WhatsappWebToGo is then usable.
  • Now, back it up with NeoBackup (available in F-Droid).
  • Put the backup where it can be accessed on the primary profile.
  • Switch back to the primary profile and restore the backup.

--> Now, you can use WhatsappWebToGo just fine there and only need to switch if you really require a WhatsApp function that doesn't work here.
--> Just use the installation on the secondary profile at least every two weeks, or WhatsappWebToGo will be logged out.

@martin-braun
Copy link
Author

@fossifly That's what I'd have done long time ago if I could. I use GrapheneOS and actually want to be root-less for the enhanced security, but thanks for your input, it might help others.

@roni1177
Copy link

@roni1177
Copy link

@roni1177
Copy link

@roni1177
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants