Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Android Notification by App

Android Notification by App

Scheduled Pinned Locked Moved Android
androidsysadminhelptutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andy_Bell
    wrote on last edited by
    #1

    Good evening I need to insert notifications in my Android application. This is something similar to RSS service. Therefore I have inserted NotificationCompat.Builder, and Pendig Intent to this purpose. When user selects corresponding item the application is restarted and updated. But I have a problem, I don't have idea how to fire the notification. I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object. Is this a best prtacice? Is there any better way to do? I would appreciate any sugestions. Thanks a lot.

    D U K 3 Replies Last reply
    0
    • A Andy_Bell

      Good evening I need to insert notifications in my Android application. This is something similar to RSS service. Therefore I have inserted NotificationCompat.Builder, and Pendig Intent to this purpose. When user selects corresponding item the application is restarted and updated. But I have a problem, I don't have idea how to fire the notification. I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object. Is this a best prtacice? Is there any better way to do? I would appreciate any sugestions. Thanks a lot.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Andy_Bell wrote:

      I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object.

      Is the goal for the server itself to notify the app, or for the app to notify itself through the server? If the latter, have you looked at Firebase Cloud Messaging[^]

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      A 1 Reply Last reply
      0
      • D David Crow

        Andy_Bell wrote:

        I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object.

        Is the goal for the server itself to notify the app, or for the app to notify itself through the server? If the latter, have you looked at Firebase Cloud Messaging[^]

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        A Offline
        A Offline
        Andy_Bell
        wrote on last edited by
        #3

        Thanks a lot. No is the first one. Server should notify news incoming to the app when we have uploaded new articles in our database. So user should be advise.

        D 1 Reply Last reply
        0
        • A Andy_Bell

          Thanks a lot. No is the first one. Server should notify news incoming to the app when we have uploaded new articles in our database. So user should be advise.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Would an RSS solution work for you?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          A 1 Reply Last reply
          0
          • D David Crow

            Would an RSS solution work for you?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            A Offline
            A Offline
            Andy_Bell
            wrote on last edited by
            #5

            Sorry, why not?

            1 Reply Last reply
            0
            • A Andy_Bell

              Good evening I need to insert notifications in my Android application. This is something similar to RSS service. Therefore I have inserted NotificationCompat.Builder, and Pendig Intent to this purpose. When user selects corresponding item the application is restarted and updated. But I have a problem, I don't have idea how to fire the notification. I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object. Is this a best prtacice? Is there any better way to do? I would appreciate any sugestions. Thanks a lot.

              U Offline
              U Offline
              User 13248397
              wrote on last edited by
              #6

              Hello , My background service is not working .When device is sleep mode. My background service is running but not update data in webservice.. Any option and any solution my quistion.plz help me any person . Hi Regard Amit

              1 Reply Last reply
              0
              • A Andy_Bell

                Good evening I need to insert notifications in my Android application. This is something similar to RSS service. Therefore I have inserted NotificationCompat.Builder, and Pendig Intent to this purpose. When user selects corresponding item the application is restarted and updated. But I have a problem, I don't have idea how to fire the notification. I'm thinking to start something like a Timer, every 15-30 minutes connect to server and look for new event released. If there is one, I'll fire Notification through the corresponded object. Is this a best prtacice? Is there any better way to do? I would appreciate any sugestions. Thanks a lot.

                K Offline
                K Offline
                kusuma chowdary
                wrote on last edited by
                #7

                If you want to send notification you can use --_FIREBASE_-- It is the best and easiest method which i know upto myknowledge

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups