Open emanuelmarlon opened 1 month ago
Hi @emanuelmarlon
Have you tried to enable androidFullScreenIntent
? Also make sure you carefully followed the Android installation steps: https://github.com/gdelataillade/alarm/blob/main/help/INSTALL-ANDROID.md
Let me know.
Please write in English so everybody can understand.
quando o alarme dispara que o aparelho ta bloqueado e a tela inativa(apagada) eu gostaria que ativasse a tela (ascender) mas não 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" não funcionou
Oi@emanuelmarlon
Você tentou habilitar
androidFullScreenIntent
? Certifique-se também de ter seguido cuidadosamente os passos de instalação do Android: https://github.com/gdelataillade/alarm/blob/main/help/INSTALL-ANDROID.mdAvise.
yes I enabled
I just can't do that
Step 6 If you want to use the androidFullScreenIntent feature, some OEM (Samsung, Honor, Huawei, Xiaomi, Oppo, Asus, etc...) will require to grant the auto_start_flutter permission.
I just can't do that
Step 6 If you want to use the androidFullScreenIntent feature, some OEM (Samsung, Honor, Huawei, Xiaomi, Oppo, Asus, etc...) will require to grant the auto_start_flutter permission.
Why not ?
Eu simplesmente não consigo fazer isso Etapa 6 Se você quiser usar o recurso androidFullScreenIntent, alguns OEMs (Samsung, Honor, Huawei, Xiaomi, Oppo, Asus, etc...) exigirão a concessão da permissão auto_start_flutter .
Por que não ?
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.
Clone o repositório de pacotes e execute o aplicativo Flutter de exemplo localizado na pasta de exemplo.
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.
1) Have you granted auto-start permission ? 2) What device do you use ?
- Você concedeu permissão de inicialização automática?
- Que dispositivo você usa?
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.
1) Follow the android setup steps.
2) Make sure AlarmSettings.androidFullScreenIntent
is set to true.
3) Set an alarm and turn you screen off. When alarm starts to ring, the screen turns on and ring screen is shown.
The auto-start permission package makes sure your device allows auto-start and fixes background problems.
Demo of the example app:
https://github.com/user-attachments/assets/f99e01c8-9a8b-4a24-9764-f17a1674d9df
Demo of the example app:
trim.C6305039-A70E-4180-A02D-2100159C6E6E.MOV That's what I'm talking about, mine works that way because you didn't close the application completely, when the application is closed it doesn't come up like you left it minimized, see the link https://drive.google.com/file/d/1amKJy3NiSDNR3yg99iUKreBYew6M0orv/view?usp=sharing
It works even if app was killed:
https://github.com/user-attachments/assets/1e10f847-b6ea-44c8-aaf1-4a8797c0888e
Funciona mesmo se o aplicativo for encerrado:
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.
Lamento saber que você ainda está enfrentando esse problema. Esta é a primeira vez que isso é relatado, então pode ser específico da sua configuração.
Por favor, verifique novamente se tanto seu aplicativo quanto seu dispositivo estão configurados corretamente. Você também pode tentar diferentes etapas de solução de problemas para ver se algo muda. Avise-me se o problema persistir, e farei o meu melhor para ajudar mais.
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.
the auto start package doesn't work, is there another one I can use?
You mean flutter_fgbg
package ?
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 { // Add your function code here! // Add your logic here that should be executed in the background // For example, you can perform a task like saving data, calling an API, etc.
print('Function segundoPlano1 called in the background.');
// Example: Simulating an asynchronous operation await Future.delayed(Duration(seconds: 2)); // Simulating a task print('Background task completed.'); } that I call in main is correct
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