Skip to content

Android 7.1 - Test Notifications Never Arrived #226

Closed

Description

@blaiserudaz

On the PushNotificationTeser app, I'm stuck on "Notification arrived" (screen Step 3). Notifications do not arrive. I'm using AOSP (NDE63P / android-7.1.0_r4) patched for "signature spoofing" on a rooted PixelXL.

The microG 0.2.4-27-g279b35b solve the problem of the crash in "Settings -> Accounts -> Google" but it seems that there is still a small problem with CGM communication mechanisms. I didn't see something relevant in logcat during the execution of PushNotificationTeser.

Activity

  1. s0rl0v commented on Nov 17, 2016

    @s0rl0v

    Same here on patched cm14.1. Version 0.2.4-22 worked fine after reconnecting to mobile data/wifi AP.

  2. ale5000-git commented on Nov 17, 2016

    @ale5000-git
    Member

    @blaiserudaz: A logcat would be helpful.

    @okeer: Try 0.2.4-27

  3. s0rl0v commented on Nov 17, 2016

    @s0rl0v

    Yeah, if it helps.
    What is done:

    1. Wake up device;
    2. Request notification via PushNotificationTester;
    3. Switch "google device registration" off/on;
  4. s0rl0v commented on Nov 17, 2016

    @s0rl0v

    I'm using 0.2.4-27 already

  5. mar-v-in commented on Nov 17, 2016

    @mar-v-in
    Member

    GCM connections seem to be problematic on 7.0+. I guess Google changed something with broadcasts related to connectivity changes or just "battery optimized" stuff again.
    Just to make sure, please check if the following is true for you (on 0.2.4-27+) when the message is not arriving:

    1. In microG Settings -> Google Cloud Messaging it says "Current state: Disconnected" and for Push Notification Tester it says "Registered" in the bottom.
    2. Open Dialer and call *#*#42678278#*#* (42678278 = gcmstart). The message should arrive shortly after that.
  6. blaiserudaz commented on Nov 18, 2016

    @blaiserudaz
    Author

    I have cellular connectivity limitations with my last AOSP compilation. (no 4G) (Is this important ?)
    Anyway, I will try to fix the problem this week-end and check your procedure above to provide an accurate feedback.
    Thank you

  7. s0rl0v commented on Nov 18, 2016

    @s0rl0v
    1. Yes, GCM in microg settings set to on, but displays current state: disconnected.
    2. The magic number doesn't help - no messages so far. Logcat is clear of any GCM related entries.
  8. blaiserudaz commented on Nov 19, 2016

    @blaiserudaz
    Author

    For me the dialer call to ##42678278## produce the error message :
    "Connection problem or invalid MMI code."

    logcatIssue#226.txt

    and screenshots :
    01 pushnotificationteser_step1
    02 pushnotificationteser_step3
    03 connectionproblem

  9. mar-v-in commented on Nov 19, 2016

    @mar-v-in
    Member

    Sorry, The markdown thing removed the stars from my previous post, the correct code is *#*#42678278#*#*.

  10. blaiserudaz commented on Nov 19, 2016

    @blaiserudaz
    Author

    Ok ! Great it's working with *#*#42678278#*#*. All notifications now arrive and I can see in microG Settings :
    "Current State : Connected since X minutes ago."
    Thank you for this valuable assistance

  11. s0rl0v commented on Nov 19, 2016

    @s0rl0v

    Yay! This magic works 😃 Thank you!

  12. added a commit that references this issue on Nov 20, 2016
  13. mar-v-in commented on Nov 20, 2016

    @mar-v-in
    Member

    Since 97f4c82 (0.2.4-28) the code should no longer be required (but is still there in case it is). If you are running Android 7.0+ it would be nice if you could check from time to time if the GCM client is connected when there is network access, to ensure this is all working now.

  14. pabloportugues commented on Nov 21, 2016

    @pabloportugues

    I was having the same problem with version 0.2.4-27, where forcing the gcmstart did the trick. Uninstalled microG, installed -28, rebooted and it worked on the first try. I'll monitor the GCM client connection and ping if there any issues. Thanks @mar-v-in 😃

  15. s0rl0v commented on Nov 21, 2016

    @s0rl0v

    GCM now works without the magic code (version -28 on cm-14.1).

  16. be-neth commented on Nov 21, 2016

    @be-neth
    Contributor

    Same for me. (version -28 on cm 14.1)

    Thanks @mar-v-in for fixing that !

  17. mar-v-in commented on Nov 22, 2016

    @mar-v-in
    Member

    I assume this fixed since -28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions