microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.4k stars 1.7k forks source link

[com.instagram.android] Instagram does not register for push notifications #1498

Closed ArnVollebregt closed 3 years ago

ArnVollebregt commented 3 years ago

Affected app Name: Instagram Package id: com.instagram.android

Describe the bug Instagram does not receive push notifications.

To Reproduce Steps to reproduce the behavior:

  1. Install Instagram.
  2. Authenticate with account.
  3. Wait for push notification on other phone(s) with same account.
  4. Notice push notification is not received on this phone.

Expected behavior I expect a push notification from the Instagram app, similar to other installed applications (such as Push Notification Tester and Discord).

System Android Version: 11 Custom ROM: lineageos_pro1_userdebug 11 RQ2A.210505.003 d40645ea7e

Additional context Installed application(s) version(s):

Could be related to [ch.protonmail.android] Protonmail does not register for push notifications #1494, as this sounds similar. Perhaps a different/altered push notification implementation in Android?

RobertoWa commented 3 years ago

u installed this app over playstore?

my experience is on android 11, some apps only work with push if they are installed over playstore.

ArnVollebregt commented 3 years ago

u installed this app over playstore?

I downloaded it with APK Downloader, but did not install it directly from the Playstore; my goal is to deGoogle as much as possible, and microG is a concession in order to receive push notifications.

As an experiment I temporary added a google account to the phone (without any additional software installation), but to no avail.

RobertoWa commented 3 years ago

since i use android 11 (los 18.1) i have to use the patched playstore by nanodroid to get signal messenger working with push. i dont know why. but that is why i mentioned it here...maybe the same behavior.

samsapti commented 3 years ago

Could be related to [ch.protonmail.android] Protonmail does not register for push notifications #1494, as this sounds similar. Perhaps a different/altered push notification implementation in Android?

The issue seems to have fixed itself for me with ProtonMail. ProtonMail is now registered and I'm receiving push notifications. Maybe it's because my ROM got updated yesterday, which upgraded microG from version 0.2.18.204714 to version 0.2.19.211515, but I don't think so since that's the version the author of #1494 had problems with too.

samsapti commented 3 years ago

since i use android 11 (los 18.1) i have to use the patched playstore by nanodroid to get signal messenger working with push. i dont know why. but that is why i mentioned it here...maybe the same behavior.

That's strange, I use Signal on LOS 18.1 (the microG version, but Signal isn't registered for GCM) and notifications work fine for me. I got Signal from Aurora Store.

ArnVollebregt commented 3 years ago

As an experiment I temporary added a google account to the phone (without any additional software installation), but to no avail.

So this is where it gets interesting: adding the google account (and reinstalling Instagram, flushing cache/data) actually did (temporarily) result in push notifications, although it did not appear under Cloud messaging in microG Settings.

The behavior was not consistent though, after trying to replicate it: at first it seemed Instagram had to be started after fresh device boot before notifications showed up in tandem with the other phone. During testing to determine the limits/rules of this behavior the notifications ceased to appear though, although no settings/applications changed.

Any way I can aid in debugging to hunt down the cause for this behavior?

ArnVollebregt commented 3 years ago

Any way I can aid in debugging to hunt down the cause for this behavior?

Debugging got a bit harder as Push Notification Tester cannot connect to the server anymore because it was removed from Google Play.

ArnVollebregt commented 3 years ago

Instead of rolling my own I've just installed the build for my phone of LineageOS for microG and that worked out of the box.

Closing this ticket: most likely this was PEBCAK ;)

P.S.: I had the same issue with Signal as @RobertoWa encountered, which has now also been resolved.