Dev-hwang

Results 29 comments of Dev-hwang

It seems to be related to doze mode. Some device may require the `android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS` permission. Are you using another plugin in your implemented TaskHandler? Or are you using the network?

This issue seems to be related to [Doze mode](https://developer.android.com/training/monitoring-device-state/doze-standby) on the Android platform. When using the service for extended periods of time, it is recommended to turn off battery optimization...

It seems to be fine on real devices with Android 9.0 and lower. Can I know the development environment and the version of the device you tested? I will continue...

Can you tell me which version of the plugin you are using? If you can also tell me the scenario in which the problem occurs, I think it will help...

@Kimsangwon0509 혹시 구현하신 TaskHandler 부분 볼 수 있을까요?

만약 `FlutterForegroundTask.updateService` 함수를 호출하여 다른 TaskHandler를 시작한다고 했을 때 그 다른 TaskHandler에도 onNotificationPressed을 구현하셔야 합니다.

Android 10 이상부터 Activity 시작에 제한 사항이 있어 문제가 생긴 것 같습니다. 문제 해결되면 말씀드리겠습니다.

@Kimsangwon0509 Android 10 이상부터 Activity 시작에 제한 사항이 있어 [SYSTEM_ALERT_WINDOW](https://developer.android.com/reference/android/Manifest.permission?hl=ko#SYSTEM_ALERT_WINDOW) 권한을 사용하여 문제를 해결하고자 합니다. 제한 사항에 대한 자세한 내용은 [공식 페이지](https://developer.android.com/guide/components/activities/background-starts?hl=ko)를 참고해주세요. ```yaml dependencies: flutter_foreground_task: ^3.7.1 ``` AndroidMenifest.xml 파일에...

Did you request and grant "android.permission.SYSTEM_ALERT_WINDOW" permission? The above permission is required to use the launchApp function in apps on Android 10 (API level 29) and higher.

https://developer.android.com/guide/components/activities/background-starts To avoid the restriction, this plugin uses the "android.permission.SYSTEM_ALERT_WINDOW" permission.