Object documentation: PhoneWakeState B4A Code Snippet FCM messages/notifications: Use Phonewakestate to throw notifications without delay - KMatle    Apr 26, 2021   (10 reactions) (even with high priority) doesn't work all the time when the phone sleeps.
Setting the phonewakestate before throwing the notification and releasing it after seems to work:
pws.PartialLock...), "tag1", Main).Notify(4)
pws.ReleasePartialLock
Phone Lib is needed pws is defined... B4A Question PhoneWakeState - Troberg    Mar 26, 2015 Is it important that I use the same instance of PhoneWakeState when I set KeepAlive and when I set ReleaseKeepAlive.
In other words, do I have to declare a PhoneWakeState and keep it, or can I just do a
dim pws as PhoneWakeState
pws.KeepAlive(True)
and then, somewhere later down the line... B4A Question Does PhoneWakeState partiallock work explicitly for each service or generally app based - hatzisn    Jun 23, 2019 PhoneWakeState's partiallock. Is partiallock enabled explicitly for each service or generally for the application. That's to say if I partiallock the phone in each service's service_create sub and I releasepartiallock in each service_destroy sub and the phonewakestate variables are declared... B4i Question B4i PhoneWakeState .KeepAlive(True) - cambol    Aug 23, 2019 how to set B4i
I can do in B4A
Dim pws As PhoneWakeState
pws.KeepAlive(True)
pws.ReleaseKeepAlive... B4A Question PhoneWakeState KeepAlive(True): screen goes blank for a second - teddybear (first post)    Mar 7, 2022
Hello Everyone,
It is a simple counter app (my first one).
I use KeepAlive(True) of PhoneWakeState in Activity_Pause and ReleaseKeepAlive in Activity_Resume.
When I run my app, screen goes dimmer in about 20 sec, then goes black for 1 sec then comes back automatically - to repeat all this 30... B4A Question [SOLVED] PhoneWakeState : changing WakeLocks - lemonisdead    Jan 27, 2016 Hello,
There is something I can't understand and can't manage to prototype : if I have previously engaged a PartialLock and need to activate the screen I do use a KeepAlive(True).
But, if aft... B4A Question [SOLVED] PhoneWakeState PartialLock & PhoneSensors when screen is off - lemonisdead    Jan 25, 2016 phone only) : in an app, when the screen is put off using the power button, even if I had put the system on PartialLock, the PhoneSensors stop.
Previously, I had put a relaunch of the sensors when... B4A Question [CLOSED] Get the current PhoneWakeState ? - lemonisdead    Feb 18, 2015 Hello,
Do we have a way to get the current WakeState not to release it by chance if any other app is relying on it ?
Many thanks for that... B4A Question [SOLVED] A "better" PhoneWakeState - lemonisdead    Mar 17, 2014 I experienced some troubles with some phones which gone to sleep ignoring my PhoneWakeState arguments. Especially when the lockscreen is locked.
Isn't it possible to be provided a way to ensure... B4A Question PhoneWakeState And Timer In DeepSleep - Erel (first post)    Jan 8, 2018 Not sure that I understand the question. Phone.KeepAlive is expected to turn on the screen. It is certainly possible that your device doesn't allow it.... Page: 1   2   3   4   5   6   7   |