-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android screen does not turn on when alarm goes off #257
Comments
Have you tried to enable Let me know. |
Please write in English so everybody can understand. |
|
yes I enabled |
I just can't do that Step 6 |
Why not ? |
but I get this permission when the application is locked with the screen turned on the screen will activate (light up) I think I got the permission when I installed the apk to test it first the screen turned on but then it stopped I need that when the alarm goes off the screen turns on |
Help me please, it's been over a month and I can't do it. |
First thing you could do is to try the example app of the package. If it works fine then it'd probably mean that the issue is from your code. Else, it'd mean that the error comes from the package or from the Android device. Let me know. |
Clone the package repository and run the example Flutter app located in the example folder. |
I cloned it and the behavior is the same when the cell phone is locked and the screen is off and the alarm goes off, the screen does not turn on (lights up). What I want to do on mine is that the screen turns on (lights up) when the alarm goes off and the screen is locked and turned off. |
|
What permission? What do you mean? What do I need to do so that when the alarm goes off and the screen is off, the screen turns on? What are the steps? I cloned the application the way I cloned it, I tested the alarm, everything works fine, just like mine, but the alarm goes off and the screen stays off. I tested it on several devices, several Androids 8,9,10,11,12,13,14. |
The auto-start permission package makes sure your device allows auto-start and fixes background problems. |
Demo of the example app: trim.C6305039-A70E-4180-A02D-2100159C6E6E.MOV |
|
It works even if app was killed: trim.1AAA1DE7-AEFD-4D4A-B4CB-823C866CB22C.MOV |
That's what I want to do, I can't, the screen only turns on when I don't close the application completely, help me out |
I’m sorry to hear that you’re still experiencing this issue. This is the first time it’s been reported, so it might be specific to your setup. Please double-check that both your app and device are properly configured. You might also want to try different troubleshooting steps to see if anything changes. Let me know if the problem persists, and I’ll do my best to assist further. |
Thank you very much for your help and attention, just give me a light, I'm a beginner, what makes the light come on, where should I start, because I've already done so much, I'm already lost. |
You mean |
this how should i use? |
Can you send the error message as a text here please ? |
I have this function import 'package:flutter_fgbg/flutter_fgbg.dart'; Future segundoPlano1() async { print('Function segundoPlano1 called in the background.'); // Example: Simulating an asynchronous operation |
I think when I'll have the time I'll add the permission request directly in the package code so you can use it directly and it will stay up to date. Same for flutter_fgbg. |
Thank you! It would be great to have these permissions and other things directly in the package because there are a lot of no-code people who come from Flutterflow and others who do not have full access to the source code and know nothing about code or almost nothing. For example, I use Flutterflow and it does not give full access to the code, so I have to export the code to Android Studio to be able to configure the package, but thank you for your attention. |
quando o alarme dispara que o aparelho ta bloqueado e a tela inativa(apagada) eu gostaria que ativasse a tela (ascender) mas nao conseguir fazer isso qual a configuração que faz com que a tela acorde ao disoparar o alarme? tentei isso android:showWhenLocked="true"
android:turnScreenOn="true" nao funcionou
The text was updated successfully, but these errors were encountered: