I’m developing an app for both Android and iOS, thanks to Dart & Flutter. It looks fine for me on Android, but not on Apple.
I’m using Firebase App Check to secure the resources of Google.
In Android, every time I run the app in debug mode, a Firebase App Check debug token appears at the beginning of the log.
I’ve tried to repeat the operation in Apple. I even try to run the app with Xcode. But Xcode shows an exception/error:
Cannot create a FlutterEngine instance in debug mode without Flutter tooling or Xcode.
To launch in debug mode in iOS 14+, run flutter run from Flutter tools, run from an IDE with a Flutter IDE plugin or run the iOS project from Xcode.
Alternatively profile and release mode apps can be launched from the home screen.
If I use flutter CLI to run my app in debug mode, the log doesn’t show the Firebase App Check debug token.
If I develop a release mode, and after installing it in my iPhone, I saw in the logs
Firebase App Check Debug Token:
And it is the closest solution I’ve found to see Firebase App Check debug token. I need to run the app in debug mode, because a lack of issues related with Firebase.
Ah. If I use another provider, what fails is App Attest.
A bit of Flutter/Dart code about Firebase initialize
await FirebaseAppCheck.instance.activate(
androidProvider: kDebugMode ? AndroidProvider.debug : AndroidProvider.playIntegrity,
appleProvider: kDebugMode ? AppleProvider.debug : AppleProvider.appAttestWithDeviceCheckFallback,
);
When I ask an LLM, it suggests that I use Firebase without Firebase App Check, which I don’t want.
I’ve already read this post about something related with it, but I don’t have any similar in my AppDelegate.swift file.