Open
Description
Description
When running an app in Debug mode (with -O0, so no optimizations), I get the token without any issues using tokenWithCompletion
.
But when I'm running the app using -O3 (in Debug or Release mode), I get this error message
"Invalid fetch response, expected 'token' or 'Error' key"
First reported in firebase/flutterfire#10656
Reproducing the issue
Run tokenWithCompletion
with the -O3 flag.
Firebase SDK Version
10.11
Xcode Version
14.3.1
Installation Method
CocoaPods
Firebase Product(s)
Messaging
Targeted Platforms
iOS
Relevant Log Output
"Invalid fetch response, expected 'token' or 'Error' key"
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved
snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock
snippet
Replace this line with the contents of your Podfile.lock!