setLightScreenOnNotification
Enables or disables screen wake-up when notification arrives.
When enabled, the device screen will turn on briefly when a push notification is received, even if the screen was off. This helps ensure users notice important notifications. Example:
// Wake screen for important notifications (delivery, alerts)
PushwooshNotificationSettings.setLightScreenOnNotification(true);
// Don't wake screen (battery saving)
PushwooshNotificationSettings.setLightScreenOnNotification(false);
// Conditional based on notification type
boolean isUrgent = checkNotificationType();
PushwooshNotificationSettings.setLightScreenOnNotification(isUrgent);
Content copied to clipboard
Parameters
on
true to wake screen on notification, false to keep screen off