I have notifications turned on for WhatsApp so not sure what the issue is!

  • Cdc replied to this.
  • Cdc likes this.

    Do you have network access disabled for Google play services? I noticed this for WhatsApp, with play services network access I get the notifications quickly, else only if I open the app

      On a side note, is it possible to register WhatsApp with SunUp which is a push notification app on fdroid?

      Hedge

      So I actually do have play services turned off for the profile with WhatsApp. Weird u would need them for proper notifications!

      • de0u replied to this.

        In order to receive whatsapp notifications you must set the application to have no restrictions on battery usage. They may arrive with a minute or two of delay, but nothing exaggerated.

        If you also had google play services installed but you uninstalled them and you have kept the whatsapp app this messes up the notifications. You should uninstall whatsapp and reinstall it.

          sunyo0 I actually do have play services turned off for the profile with WhatsApp. Weird u would need them for proper notifications!

          If WhatsApp was coded to use Google Play services (FCM) to receive notifications, and Play is missing, then it would be weird if notifications did work.

          Lots and lots of applications rely on Google Play for various things. It is common for developers to rely more and more on Play services over time.

          Drinded In order to receive whatsapp notifications you must set the application to have no restrictions on battery usage. They may arrive with a minute or two of delay, but nothing exaggerated

          Never worked for me without Play Services. Delays of multiple hours or getting no notification at all without going into the app were common.

            TheGodfather "for me" is the important word here. If you install WA before Play services, they use websocket, if after, they will pick Firebase for notifications. If you play around with Play services this may fail. We don't know what your actual settings for both apps are.

              DeletedUser227 I needed to install it while Play Services were installed, because it is the only way to transfer your WhatsApp data from one device to a new one. The manual way to transfer the WhatsApp data folder to a new phone and WhatsApp recognizing it has not been working anymore for quite some time. If you know a different way to transfer it without Play Services being present, let me know.

                TheGodfather in that case there is some setting with your Play services that doesn't ring right. Have a look. Unrestricted battery looks like the most obvious culprit (or the lack thereof).

                  DeletedUser227 in that case there is some setting with your Play services that doesn't ring right

                  I don't use Play Services anymore within that user profile. It was only there to transfer WhatsApp data from my previous phone.

                  But even on my previous phone where WhatsApp was installed while Play Services were not, I had a similar problem with getting messages heavily delayed.

                  DeletedUser227 Unrestricted battery looks like the most obvious culprit (or the lack thereof).

                  Thx, but I am a long time GrapheneOS user. I know the basics ;-)

                    TheGodfather It was only there to transfer WhatsApp data from my previous phone.

                    And that is why it no longer works with websocket. [removed]

                      TheGodfather

                      Actually whatsapp does allow you to use local backups, but it is a bit tedious. I have been doing it for the last few weeks and it has been working fine.

                      The first thing you should do is to backup whatsapp chats in the app settings making sure it is saved locally (as a precautionary measure save it to your drive account). Then you must go, using a computer, to the Android/Media/com.whatsapp folder.

                      Inside com.whatsapp there will be a folder called WhatsApp. Copy this entire folder and transfer it to your computer (depending on the size it may take more or less).

                      Once the folder is copied to your pc you delete the whatsapp storage and uninstall the app (I restart the phone also in case any service is still running). Once all this is done you reinstall whatsapp and start configuring it. DO NOT MAKE IT COMPLETE. You must reach the confirmation of the phone number.

                      After this you reconnect the phone to the computer, go back to the folder Android/Media/com.whatsapp and replace the folder that is inside by the one you have saved on your computer and wait for the transfer to complete (If the folder does not appear do one more step of the configuration until it comes out).

                      Once done you can finish configuring whatsapp. You will see a screen that will tell you that it has found a local copy and will ask you if you want to restore it.

                        Drinded Interesting. So basically the timing makes the difference between working and not working, because simply having copied it from the beginning did not work for me.

                        DeletedUser227 And that is why it no longer works with websocket.

                        I had similar problems on my old phone and Play Services were not there when installed on that phone.


                        [Removed a reply to a removed part of a post]

                          TheGodfather apologies to you, my post did not intend to trigger a series of moderations but some thinking on your part as to what the root cause of your issue may be. I hope you won't hold it against me. There is a legitimate reason why your notifications are delayed or don't work.

                          You set up your WA with Play services present so you could restore your chat backup, now WA expects notifications from Firebase. Uninstall your WA and keep the data. Do a fresh install with existing data in app storage and grant it unrestricted battery. That should fix your problem.

                          sunyo0
                          Hi, I have WhatsApp installed via Obtainium on my owner's profile, disabled and pushed to the secondary user with no issues so far. (Although, I don't have a lot conversations going on)

                          It might be worth trying.