You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some apps would be great to alert user that their device has low battery (because, user is on a critical journey)
Idea
We just need a native plugin that access device battery status and emits an event if battery is low, like cordova-plugin-battery-status does (https://github.com/apache/cordova-plugin-battery-status).
This way, a very simple bubble event could be implemented:
window.addEventListener("batterystatus", onBatteryStatus, false);
function onBatteryStatus(status) {
instance.publishState( "batterylevel", status.level );
instance.triggerEvent( "batterylow" );
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Use case
Idea
All reactions