Skip to content

[messaging] Running an app with the -O3 flags triggers an issue when getting a token #11459

Open
@Lyokone

Description

@Lyokone

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!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions