- What are two types of notifications?
- What is notification in app?
- What is the best way for a server to notify an app that some new data is available?
What are two types of notifications?
The different types of notifications used in notification design are: user-generated notifications, push notifications, context-generated notifications, system-generated notifications, notifications requiring action from the user, passive notifications, and smart notifications.
What is notification in app?
A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.
What is the best way for a server to notify an app that some new data is available?
Use web socket. My application's one time usage expectation is ~2 minutes. So web socket looks like a good choice, because app will be terminated or go to background state quickly and battery consume won't be much. Also all the server side data changes will come to the device just in time.