Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Firebase Messaging and Geolocator last versions are incompatible #1556

Closed
4 of 8 tasks
lore-co opened this issue Aug 16, 2024 · 1 comment
Closed
4 of 8 tasks
Assignees
Labels
status: needs more info We need more information before we can continue work on this issue.

Comments

@lore-co
Copy link

lore-co commented Aug 16, 2024

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Steps to reproduce

Create a new project and add both:

firebase_messaging: ^15.0.4

and

geolocator: ^13.0.1

Expected results

Flutter pub get command should run without issues

Actual results

Because no versions of firebase_messaging match >15.0.4 <16.0.0 and firebase_messaging 15.0.4 depends on
firebase_messaging_web ^3.8.12, firebase_messaging ^15.0.4 requires firebase_messaging_web ^3.8.12.
And because no versions of firebase_messaging_web match >3.8.12 <4.0.0 and firebase_messaging_web 3.8.12 depends on
web ^0.5.1, firebase_messaging ^15.0.4 requires web ^0.5.1.
And because geolocator >=13.0.1 depends on geolocator_web ^4.1.1 which depends on web ^1.0.0, firebase_messaging
^15.0.4 is incompatible with geolocator >=13.0.1.
So, because myApp depends on both geolocator ^13.0.1 and firebase_messaging ^15.0.4, version solving faile

Code sample

Code sample
  • Not needed

Screenshots or video

No response

Version

13.0.1

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.2.1 23C71 darwin-arm64, locale en-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Community Edition (version 2023.2.1)
[✓] VS Code (version 1.92.0)
@TimHoogstrate TimHoogstrate self-assigned this Aug 19, 2024
@TimHoogstrate
Copy link
Contributor

Dear @lore-co,

Using

dependency_overrides:
  web: ^1.0.0

will probably resolve your issue.

Kind regards,

@TimHoogstrate TimHoogstrate added the status: needs more info We need more information before we can continue work on this issue. label Aug 19, 2024
@lore-co lore-co closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs more info We need more information before we can continue work on this issue.
Projects
None yet
Development

No branches or pull requests

2 participants