I have an application that should send a periodic heart rate to the server, but when the phone goes into standby mode, the background heartbeat flow dies. Is there anyway to wake the phone in standby mode, send a heartbeat, and then return to software programming? I want to avoid using PARTIAL_WAKE_LOCK if possible.
thank
In any case, to wake the phone in standby mode, send a pulse, and then sleep again programmatically?
AlarmManager _WAKEUP. , ( WakefulIntentService, , , -).
AlarmManager
_WAKEUP
WakefulIntentService
PARTIAL_WAKE_LOCK, .
- WakeLock, -. AlarmManager, WakeLock , 100% .
WakeLock
Source: https://habr.com/ru/post/1761800/More articles:Getting a separate list of identifiers in CoreData - iphoneКакой лучший способ запустить фоновый процесс, к которому можно получить доступ позже - rubyFilling in UITextField - xamarin.iosCalling a REST service using Python - pythonForced Automation Mask to apply to UIView - ioshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1761801/how-can-i-make-an-alias-or-shortcut-or-symlink-inside-a-subversion-repository&usg=ALkJrhiN6T1fhF5-93lWVSh0i_k2OddZlAGetting all articles with GROUP_CONCAT field of their tags - sqlgtk idle_add not working? - pythonApplication Settings + DirectoryInfo / FileInfo - c #import a C # form into C ++ - c ++All Articles