Update: 2026-07-03 15:03:13
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import UIKit
|
||||
import Flutter
|
||||
import FirebaseCore
|
||||
import native_geofence
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
@@ -10,7 +11,10 @@ import FirebaseCore
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
|
||||
|
||||
// --- 1. تسجيل callback الإضافات للخلفية (مطلوب لـ native_geofence) ---
|
||||
NativeGeofencePlugin.setPluginRegistrantCallback { registry in
|
||||
GeneratedPluginRegistrant.register(with: registry)
|
||||
}
|
||||
|
||||
// --- 2. تهيئة Firebase ---
|
||||
FirebaseApp.configure()
|
||||
|
||||
Reference in New Issue
Block a user