currently I want to store the userid when user login the flutter app, then I use shared preference to store the user id, however, in the app extension which is native swift, it cannot retrive the data by the key, always returning nil. SharedPreferencesService.instance.get this line can print the user id out
flutter:
SharedPreferencesService.instance.set("id", userId); log.d("SharedPrefrence saved: " + SharedPreferencesService.instance.get("id"));
swift:
let id = UserDefaults.standard.string(forKey: "id")
1