Android Question I need a way to receive gmail new mail alerts.

Discussion in 'Android Questions' started by ELCHARO, Feb 14, 2018.

  1. ELCHARO

    ELCHARO Member Licensed User

    I read notification from a gmail client. But i don't know if ia have a way to receive a notification from google mail directly.
    Are a way, library or example?

    Thanks.
     
  2. DonManfred

    DonManfred Expert Licensed User

    i don´t know there exists such a feature.... I never saw a library for it.
    GMail is regularly checking your inbox and showing a notification if there is a new mail.
     
    Peter Simpson likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    As far as I know Gmail doesn't send any intent. You can use NotificationListener to monitor all notifications.
     
  4. Jeffrey Cameron

    Jeffrey Cameron Active Member Licensed User

    Gmail does support 3rd party POP3 (https://tools.ietf.org/html/rfc1081), you need to enable it in your Gmail settings (under something like "allow less secure apps" or something like that).
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You can use the Net library to read Gmail mails or a solution based on the web service they provide. I meant that the Gmail app or the standard mail client do not send any intents.
     
  6. ELCHARO

    ELCHARO Member Licensed User

    Thanks 2all.
    Working with " You can use NotificationListener to monitor all notifications." fine.
    When finish i publish the source. Are trick's but (sometime) work. For a reason i don't know my mail client (Aquamail) stop the service.
    I test native gmail client. And share the experience.

    Thanks Again.
     
Loading...