fix: show notification from native

This commit is contained in:
shenlong-tanwen
2025-10-01 05:29:23 +05:30
parent 6c67bbd528
commit 6fc1bca8c2
11 changed files with 104 additions and 76 deletions
+2 -2
View File
@@ -22,6 +22,8 @@ class BackgroundWorkerSettings {
abstract class BackgroundWorkerFgHostApi {
void enable();
void saveNotificationMessage(String title, String body);
void configure(BackgroundWorkerSettings settings);
void disable();
@@ -33,8 +35,6 @@ abstract class BackgroundWorkerBgHostApi {
// required platform channels to notify the native side to start the background upload
void onInitialized();
void showNotification(String title, String content);
// Called from the background flutter engine to request the native side to cleanup
void close();
}