Android Notification by App
-
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.
-
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.
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
-
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
-
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.
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
-
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
-
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.
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
-
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.
If you want to send notification you can use --_FIREBASE_-- It is the best and easiest method which i know upto myknowledge