setRequiresLongRunningTask
Sets if the notification requires a long running task to generate the notification. If true
, the push message will be scheduled to process at a later time when the app has more background time. If false
, the app has approximately 10 seconds to generate the notification.
Apps that make use of this feature are highly encouraged to add RECEIVE_BOOT_COMPLETED
so the push message will persist between device reboots.
Return
The builder instance.
Parameters
longRunningTask
true
to require a long running task, otherwise false
.