mannprerak2 / nearby_connections

Flutter plugin (android) for sharing bytes and files Offline, (Based on the android Nearby Connections API)
https://pub.dev/packages/nearby_connections
BSD 2-Clause "Simplified" License
94 stars 30 forks source link

Implement iOS side #4

Open mannprerak2 opened 5 years ago

mannprerak2 commented 5 years ago

Currently, this library supports only android to android communication.

It is possible to add iOS to iOS communication to this plugin using the MultipeerConnectivity library for iOS Any help to achieve this will be appreciated.

EDIT 1: This might become a better option in the future https://github.com/google/nearby/tree/main/connections/swift/NearbyConnections/Example

mannprerak2 commented 4 years ago

See this for help with iOS side implementation.

Note: For hacktoberfest, you can submit as many PR's on this as you want (As this is not a trivial issue).
mavyfaby commented 2 years ago

Any news for this?

mannprerak2 commented 2 years ago

Hi @mavyfaby, currently I am unable to pursue this due to lack of time.

Pl1997 commented 1 year ago

Hello ! It appears that the nearby connections API now supports iOS (see recently updated docs)... Does this open any new bright future about this subject ?

Thank you !

mannprerak2 commented 1 year ago

@Pl1997 can you send me the link?

Is it possible you are talking about the nearby messaging API instead?

Pl1997 commented 1 year ago

Thank you for your interest ! Here are the links, the related support section appeared only very recently https://github.com/google/nearby/tree/main/connections/swift/NearbyConnections/Example https://developers.google.com/nearby/connections/overview

(see also this : https://github.com/google/nearby/issues/1720 )

mannprerak2 commented 1 year ago

@Pl1997 We're stuck for now, since nearby_connections on iOS is only available via SPM, until one of these is resolved-

  1. https://github.com/google/nearby/issues/1685
  2. https://github.com/flutter/flutter/issues/33850
anilari commented 1 year ago

We could have an option here https://developers.google.com/nearby/messages/ios/migrate-to-nc?hl=tr

mannprerak2 commented 1 year ago

@anilari Yeah this needs the nearby connections library.

We can't yet expose this as a plugin, since the iOS flutter build will only resolve cocoapod dependencies (while this requires SPM)

anilari commented 1 year ago

I found a workaround here, https://stackoverflow.com/questions/65864229/build-error-when-adding-a-dependency-using-swift-package-manager-in-xcode-for-a will try to do it with an example plugin.

timarnoldev commented 1 year ago

+1

pmietlicki commented 1 year ago

+1

ihdream72 commented 1 year ago

+1

thanglq1 commented 9 months ago

+1

Pl1997 commented 9 months ago

@Pl1997 We're stuck for now, since nearby_connections on iOS is only available via SPM, until one of these is resolved-

  1. Add CocoaPods support google/nearby#1685
  2. Investigate Swift Package Manager for Swift plugins flutter/flutter#33850

Hello ! I found this, would it possibly help ?

https://github.com/trinhngocthuyen/cocoapods-spm

mannprerak2 commented 9 months ago

Hi @Pl1997 I'm not sure since I don't have much experience working with SPM or CocoaPods.

Would really appreciate a PR if you can help.

Pl1997 commented 9 months ago

Hello ! Unfortunately I don't have any either, I really don't have the skills to submit a PR.... So sorry !!