My family and I all have iPhones. We often try to use AirDrop to share
photos and videos of my grandbabies. It almost never works. We’re on the
same AirPort-based wireless network and all have Bluetooth on, in case that
matters. When sitting right next to one another, Airdrop will often just
sit there not showing anyone to share to. Sometimes if you close and open
the share sheet a few times, the other person’s generic user icon will
appear in the share sheet, and when it does the transfers always seem to
succeed. But discovery seems to be an issue with AirDrop in general, so
these problems you experience may not be due in any way to problems within
your app.

On Fri, May 27, 2016 at 1:23 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de>
wrote:

> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
>
> - (IBAction)airDrop: (NSButton *)sender
> {
>         NSArray *shareItems = list of one or more urls of pdf files
>         NSSharingService *service = [ NSSharingService
> sharingServiceNamed: NSSharingServiceNameSendViaAirDrop];
>         service.delegate = self;        //      probably not needed
>         [service performWithItems:shareItems];
> }
>
> Usually this just works:
> I click the AirDrop button, a Panel slides down with a picture of the pdf
> (or a symbol for multiple files if more than one).
> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login
> picture, I click it, and all is well.
>
> Sometimes it does not work correctly:
> In this case I have to set the iPad to “AirDrop: Everyone". A generic user
> picture will appear on the Mac and it will still work.
>
> But sometimes it does not work at all:
> I can do whatever (like restarting the iPad; restarting the Mac) but still
> no picture of a recipient will appear in the Mac AirDrop Panel.
>
> How can I debug this?
>
> Gerriet.
>
> Found some log messages, which seem to be related:
>
> Clicking my AirDrop button:
>
> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery
> started
> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser
> Powered On
> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising
> hashes <01ca38ce b5742b51 4900>
> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 :
> SDBonjourBrowser::failedToStartAdvertisingWithError Error
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access"
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at
> this time.}
> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 :
> SDBonjourBrowser::failedToStartAdvertisingWithError Error
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access"
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at
> this time.}
>
> Clicking “Cancel" in the AirDrop Panel:
>
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in
> CoreDragRemoveTrackingHandler: -1856
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in
> CoreDragRemoveReceiveHandler: -1856
> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery
> stopped
> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising
> stopped
>
> But still don’t know what to do.
>
> Gerriet.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/cejwork%40gmail.com
>
> This email sent to cejw...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to