Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
$19

Application License

Unlimited applications Binary restricted distribution 6 months support
$119

Developer License

Unlimited projects Source and binary distribution 6 months support
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

(1 ratings)

Bluetooth File Transfer

Bluetooth File Transfer
Developed by Max Bäumle, Released Aug 19, 2012

File transfer between two iOS devices via Bluetooth

Objective-C

BTFileTransfer is a subclass of NSObject that lets you transfer any kind of data (from simple text to complex files) via Bluetooth.

Great for "bumping" a vCard or settings between two devices.

The demo app included with your purchase lets you send photos from one iOS device to another (tested and confirmed working on iPhone, iPad and iPod Touch).

Video of the demo app running on iPhone 4 and iPad 2

Deployment target: Tested with iOS 5 and later

ARC compatible

Bonus 1: Buyers of the developer license can request features that might be implemented later

Bonus 2: Demo app "BTChat" available to everyone soon after release (like Messages app but Bluetooth) [Screenshot]

Back to top

Installation

Drag both files – BTFileTransfer.h and BTFileTransfer.m into your project and link against GameKit.framework.

Back to top

Usage

Create a new instance of BTFileTransfer like this

_fileTransfer = [[BTFileTransfer alloc] init];

and assign "self" as the delegate of BTFileTransfer like this

_fileTransfer.delegate = self;

Implement at least the required delegate method of the BTFileTransferDelegate protocol. According to the header it is

- (void)fileReceived:(NSData *)data {

}

"Pair" by calling

[_fileTransfer pair];

After the delegate method

- (void)peerConnected:(NSString *)displayName {

}

got called you can send data or a file using one of the two available methods:

UIImage *image;
NSError *error;

[_fileTransfer sendData:UIImageJPEGRepresentation(image, 0.8) error:&error];

Like that you can also send strings, arrays or a dictionary.

To send a file from the local filesystem:

NSString *path;
NSError *error;

[_fileTransfer sendFile:path error:&error];
Back to top

Advanced properties

@property (strong) NSString *displayName;

Human-readable name identifying the current device

Device name is used if not set

Back to top

Advanced delegate methods

- (void)fileTransferInProgress:(unsigned int)expectedLength;

Called when receiving a file on the device receiving it.

You can present the user with an alert telling him the size of the file.

View all 1 reviews »

User Reviews

Read all 7 comments »

Questions & Comments


Or enter your name and Email
  • Gautam Jain 1 month ago
    Hi, I am building an app which requires me to transfer pdf and ppt's of sizes around 10-30 mb via bluetooth. I came through across your product and would like to know if that's possible and upto what size. Secondly, there are some apps that do use the OBEX protocol but only for jailbroken phones. I wish to confirm that your product would help me do it on non jailbroken devices as well.
    • Max Bäumle Developer 1 month ago
      It is possible but a proprietary protocol is used so files can only be transferred between iOS devices that have your app running.
    • Gautam Jain 1 month ago
      Great then. Also can I send arbitrary data like my pointer/touches or is it just files ? Thanks in advance
    • Max Bäumle Developer 1 month ago
      Just wrap them in a NSData object and you should be fine.
    • Gautam Jain 1 month ago
      Can I get a trial version? I want to check the transfer speed.
    • Max Bäumle Developer 1 month ago
      Binpress offers a 14 days money-back guarantee. If you provide a valid reason you'll receive a refund for your purchase.
    • Gautam Jain 1 month ago
      Well I do understand that. But would not enough speed be a valid reason, I don't think so. I'm fine if you can just tell it to me. What will essentially be the time to transfer say 25 mb from iPhone 4 to 4 ( it has bluetooth 2.1). As per the http://vimeo.com/47536324, it looks pretty fast.
You must be logged-in to vote. Log-in to your account or register now.