To notify something to the user from a broadcast receiver, should I use dialogs or notifications? Why?
Use Dialogs, because they are more visible than Notifications.
Use Notifications, cause Receivers has to finish its functionality in 10 seconds
Use notifications, because showing Dialog all of sudden may disturb user.
Use both Dialogs and Notifications for safe side.
Broadcast receivers are light weight components, which has to finish off its functionality with in time limit of 10 seconds. if we show dialog to user, there is a chance that user may take more than 10 seconds to respond to it by chance. in that case receiver may crash or may not be available to take dialog input from user. So it is always a standard and good practice to use notifications from a receiver.
Back To Top