2026-04-03-pre map libra
This commit is contained in:
@@ -45,10 +45,10 @@ Future<bool> onStart(ServiceInstance service) async {
|
||||
print("✅ Background Service: Socket Connected!");
|
||||
if (service is AndroidServiceInstance) {
|
||||
flutterLocalNotificationsPlugin.show(
|
||||
notificationId,
|
||||
'أنت متصل الآن',
|
||||
'بانتظار الطلبات...',
|
||||
const NotificationDetails(
|
||||
id: notificationId,
|
||||
title: 'أنت متصل الآن',
|
||||
body: 'بانتظار الطلبات...',
|
||||
notificationDetails: const NotificationDetails(
|
||||
android: AndroidNotificationDetails(
|
||||
notificationChannelId,
|
||||
'خدمة السائق',
|
||||
@@ -107,10 +107,10 @@ Future<bool> onStart(ServiceInstance service) async {
|
||||
if (service is AndroidServiceInstance) {
|
||||
if (await service.isForegroundService()) {
|
||||
flutterLocalNotificationsPlugin.show(
|
||||
notificationId,
|
||||
'خدمة السائق نشطة',
|
||||
'بانتظار الطلبات...',
|
||||
const NotificationDetails(
|
||||
id: notificationId,
|
||||
title: 'خدمة السائق نشطة',
|
||||
body: 'بانتظار الطلبات...',
|
||||
notificationDetails: const NotificationDetails(
|
||||
android: AndroidNotificationDetails(
|
||||
notificationChannelId,
|
||||
'خدمة السائق',
|
||||
|
||||
Reference in New Issue
Block a user