77
Push Notification Issues

  1. shrijith1
    Gingerbread Jun 21, 2016

    shrijith1 , Jun 21, 2016 :
    I thought if there is actually a problem here with Doze/GCM, its Google who should fix it. Do you think Oneplus may have altered the Doze mode setting or something like that ?
    Graham, are you sure Gmail messages are sent with normal priority ?
     

  2. OneplusMike64
    Eclair Jun 21, 2016

    OneplusMike64 , Jun 21, 2016 :
    With your deviceidle disable command tip , its working thanks ! Strange that my old phone which also runs 6.0.1 just works without disabling. Must be some bugs in the software with oneplus.
     

    Deactivated User likes this.
  3. Bibin138
    Gingerbread Jun 21, 2016

    Bibin138 , Jun 21, 2016 :
    How did you make it work? Please let me know.
     

  4. OneplusMike64
    Eclair Jun 21, 2016

    OneplusMike64 , Jun 21, 2016 :
    Scroll two pages back for the explanation from Graham.
     

  5. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    Yes 100%
     

  6. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    Thanks for the confirmation ;)
     

  7. Randroid
    Cupcake Jun 21, 2016

    Randroid , Jun 21, 2016 :
    It isn't, because it also affects other apps.
     

    Deactivated User likes this.
  8. qvert
    Honeycomb Jun 21, 2016

    qvert , Jun 21, 2016 :
    updated the OP with the workaround to disable Doze or use whitelistfrom Graham Robertson
     

    Deactivated User likes this.
  9. Planda
    Cupcake Jun 21, 2016

    Planda , Jun 21, 2016 :
    I should get my OP3 today, so I am thinking about rooting the phone and then doing the ADB workaround to disable Doze.

    Do I have to do that every time the phone is restarted? Or with the root, I can change the setting permanently?
     

  10. qvert
    Honeycomb Jun 21, 2016

    qvert , Jun 21, 2016 :
    adb works without root but you need to do this everytime you reboot
    if you have root you can edit the dumpsys file permanently and it keeps the setting when rebooted

    however i would not root only because of a bug
     

    Deactivated User likes this.
  11. OneplusMike64
    Eclair Jun 21, 2016

    OneplusMike64 , Jun 21, 2016 :
    Also tested the whitelist command :
    - Added gmail to the "do not optimize" setting in the battery section.
    - Rebooted to stop the previous idle disable
    - Did the whitelist command, waited 10 minutes
    Result was no notifications from gmail anymore. The other option works.

    Ill keep testing the phone out of curiosity until Oneplus will finally send me the return mail label. Support is slow.
     

    Deactivated User likes this.
  12. qvert
    Honeycomb Jun 21, 2016


    Deactivated User likes this.
  13. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    Same for me..;)
     

  14. ieno
    Eclair Jun 21, 2016

    ieno , Jun 21, 2016 :
    Graham, thanks for all your great posts!
    Do you have any idea as to why some (non-OnePlus, Android 6.0.x) phones don't show this behaviour though? Does Google whitelist/prioritize certain devices to make use of GCM or do the phonemanufacturer's modify some settings clientside?
     

    Deactivated User likes this.
  15. Adipekar
    Gingerbread Jun 21, 2016


    Deactivated User likes this.
  16. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    Some manufacturer's have addressed the issue, Nexus, HTC, Samsung.
    some have not.
    some have only fixed the issue to work with the whitelist (do not optimise) app list,
    but this will never fix app's like Gmail, that don't use the priority notification flag on
    the Google GCM service.
    what would be ideal would be if a developer or OnePlus could build this fix into a script code,
    and put it onto a properties page with a toggle switch within Oxygen OS.
    Toggle: Disable Doze Mode
    It can be done.
     

    ieno likes this.
  17. purextc69
    Gingerbread Jun 21, 2016

    purextc69 , Jun 21, 2016 :
    Thanks for continuing to help Graham... Have you looked at the Doze Editor v6.apk in the xda link above (first post)?

    Could you let me know if it allows you to disable doze from the phone without root? Reason I ask is that would be infinitely easier if anyone needed to reboot their phone or it hung instead of having to plug into a PC and running the command line again, especially if you are at work / out on the road....
     

  18. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    The Doze Mode Editor requires Root access permissions.
    my ADB command line disable fix does not require Root.
    the average phone user (assuming the phone's rom is reasonably stable)
    would only reboot the phone once a week.
    so in reality, the adb command line disable fix without root requirements
    is a good temporary fix for this issue until OnePlus can build a properties
    page to enable toggling off doze mode.
     

  19. purextc69
    Gingerbread Jun 21, 2016

    purextc69 , Jun 21, 2016 :
    Ah - i read this differently in the first post, is it misleading?:


    This app is a simple editor of the settings or parameters which affect the operation of Doze.
    If no root is available then it will offer an ADB command that will modify the doze settings.
    Because there is no root on open it will always load the default settings.
     

  20. Graham Robertson
    Jun 21, 2016

    Graham Robertson , Jun 21, 2016 :
    And that is exactly where my fix comes in.
    if you don't have root, so then just use my adb shell command line fix..