537 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
95
views
Android onLocationChanged() callback not working when the screen is off
I'm relatively new to Android programming, and I was trying to create an app with a Foreground Service (I'm targeting API 31 or higher) which uses Location and Sensors. I've implemented both ...
0
votes
0
answers
221
views
Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'?
Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'. > Could not resolve all dependencies for configuration ':wakelock_plus:releaseUnitTestRuntimeClasspath'. > ...
0
votes
0
answers
24
views
how does FusedLocationProviderClient with callback handle doze mode and deep sleep
I'm working on an app whose main task is to send location data. I've found that using a callback with FusedLocationProviderClient and a foreground service works perfectly, regardless of the time ...
0
votes
0
answers
29
views
Enable Wake Lock on Buildfire
Is there a way to enable wake lock in Buildfire or a similar solution to keep the screen from dimming/turning off while a plugin is open?
I've tried using the WakeLock API as well as playing looped ...
0
votes
0
answers
85
views
Issue with Wake Lock API not releasing after service worker notification click in Vue.js PWA on Xperia 10 V device
I'm using the Wake Lock API in my Vue.js PWA to prevent the screen from going to sleep.
I request the wake lock with:
wakelock = navigator.wakeLock.request('screen');
Later, I release the wake lock ...
0
votes
1
answer
695
views
Full-Screen Intent not opening on Android 14
I'm building an alarm app for Android and I'm trying to launch a full-screen intent from a notification when the alarm rings while the phone is locked (as the documentation suggests). It works without ...
2
votes
2
answers
2k
views
WakeLock API not working in Safari (iOS) but working in Windows/android platform with same code
I want to enable wake lock API. It is working fine with Windows platform and android devices but not in Safari or iOS devices.
Console has error NotAllowed, Permission was denied in Safari Browser.
I ...
1
vote
1
answer
565
views
Another Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher
I found many discussions regarding this error, but I am not able to fix it.
I have a flutter project, building to Android and iOS. I just upgraded from 3.7.10 to 3.19.0 and are upgrading the pubspec ...
2
votes
1
answer
693
views
How to turn on android screen when received FCM push notification?
Is there a way to turn on android screen when received push notification from FCM or somewhere else?
I want it will turn on even if the app is in background, and even if the app is killed.
In addition,...
0
votes
2
answers
119
views
Is there any mechanism to sleep exact 1 min precision?
I am developing a library that should work every minute. Sometimes this library doesn't wake at given time. It wakes after a delay.
Example timestamps are like this:
12:00:00:250
12:01:00:250
12:02:00:...
0
votes
1
answer
52
views
Keep the screen on in Trusted Web Activity
I want to keep screen on while show trusted tabs.
I was override the WebViewFallbackActivity class and inject this code but it's not working:
PowerManager powerManager = (PowerManager) ...
0
votes
1
answer
109
views
Display alert dialog after specific time
I want to start a timer (i think in this case CountDownTimer) as soon as I get a specific wakelock. Once the countdown timer finishes, i want to display an alert dialog. When the wakelock is released, ...
3
votes
1
answer
2k
views
A problem occurred configuring project ':wakelock' in Flutter
So I have been trying to run my flutter app but I keep getting errors upon errors. When I ran flutter run, this is what I got
Launching lib\main.dart on M2102J20SG in debug mode...
FAILURE: Build ...
0
votes
1
answer
801
views
How to use wakelock / make an app run when the device is locked
So I am trying to make an app that needs to use some networking stuff while running
in the background. (From a thread cause you can't otherwise and cause it's in the background)
But when I lock the ...
0
votes
0
answers
297
views
Using Wakelock with Audio Service in flutter
I have a requirement to give the user the option to keep specific screen in the app awake so the screen will not be switched off automatically in order to give the user the time to read the content. ...