Closed tentenponce closed 12 months ago
related issue: https://stackoverflow.com/questions/74272587/android13-receiver-exporteds-explanation-is-correct
Possible to be fixed by adding RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED as flag on registerReceiver()
. Can this be a optional parameter (with a default value RECEIVER_NOT_EXPORTED)?
I have some users also experiencing it. I'm using the following
return WillStartForegroundTask(
onWillStart: () async {
return true;
},
androidNotificationOptions: AndroidNotificationOptions(
channelId: 'service_runner',
channelName: 'Service Runner',
channelDescription:
'Used to spin up foreground services, preventing the app from being killed.',
channelImportance: NotificationChannelImportance.LOW,
priority: NotificationPriority.LOW,
isSticky: false, // important
),
iosNotificationOptions: const IOSNotificationOptions(
showNotification: false,
playSound: false,
),
foregroundTaskOptions: const ForegroundTaskOptions(
interval: 5000,
isOnceEvent: false,
allowWakeLock: false,
allowWifiLock: false,
),
notificationTitle: 'Service is running',
notificationText: 'Tap to return to the app',
child: child!,
),
);