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

Incompatibility with connectivity plugin because of 'Reachability dependency/file' (iOS platform) #6

Open
mpowloka opened this issue Jan 14, 2021 · 6 comments
Assignees

Comments

@mpowloka
Copy link

Steps to reproduce

in pubspec.yaml decalre poth flutter_pusher and connectivity plugins.

What did you expect to happen?

iOS build will fail. (Xcode build will somehow pass, but app won't be installed)

What actually happened? Submit stack traces or anything that you think would help.

The problem is some file/dependency named Reachability.
Another pusher plugin suffers the same problem: HomeX-It/pusher-websocket-flutter#11

...

@mpowloka
Copy link
Author

Any workaround or solution is welcomed. So far I didn't find a way to deal with this.

@chinloyal
Copy link
Owner

chinloyal commented Jan 15, 2021

Yeah this is a common issue, the connectivity package is incompatible with this package because of the Reachability library used for ios. The maintainer of the Reachability library needs to update their library to resolve this issue.

The workaround I found was to use data_connection_checker instead of connectivity, they both work the same way

@meteorSD
Copy link

Could you please explain how to implement your workaround ?

@chinloyal
Copy link
Owner

The package is pretty straightforward, simply use data_connection_checker package instead of connectivity package. They both work the same however data_connection_checker is compatible with this package and other pusher clients

@muhammadhassamriaz
Copy link

Any solution for this issue ?

@thethtun
Copy link

This is PITA! Have anyone found better ways to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants