Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 19    Views: 224

feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
03/04/13 06:25 AM (12 years ago)

help integrating Bump into bt app

Hello all Im here stuck again. I would really appreciate some help integrating this awesome feature of bumping devices to transfer files. There is a bump API that you can get from bump technologies. I got the api and integrated the files needed to "make my app bumpable" Now i dont know how to integrate this amazing feature into any of my screens. How do I add this to a screen? Can anyone help. Here is the link from github - https://github.com/bumptech/bump-api-ios/tree/master/BumpTestApp
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/04/13 06:47 AM (12 years ago)
what are you bumping
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/04/13 06:50 AM (12 years ago)
even i would like to know what are you planning to "bump"
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/04/13 07:01 AM (12 years ago)
This sounds interesting, is bumping using bluetooth to transfer files to another device? What can you transfer?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
03/04/13 07:04 AM (12 years ago)
I'm guessing this is the feature in the recent Samsung ads where two people tap their Droids together to send files?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/04/13 07:06 AM (12 years ago)
it is requires both to have the program with bump capabilities and can transfer pretty much anything. I can never think of any uses for it, I downloaded the bump app when I first got an iphone and never really used it. I was messing with the apk ages ago
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/04/13 07:06 AM (12 years ago)
It's been around for years
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/04/13 07:07 AM (12 years ago)
the samsung thing its different,same concept,different name..
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
03/04/13 07:15 AM (12 years ago)
That's funny then that their big cool feature over the iPhone has already been available on the iPhone for some time! Agreed, though, seems more gimmicky than useful
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/04/13 07:39 AM (12 years ago)
Well I would like for the user to bump word docs, pdfs, powerpoints, spreadsheets.
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/04/13 08:17 AM (12 years ago)
Here is my first problem when I follow the instructions for integrating bump I get this error in xcode. steps Agree to the API license agreement and get your API key: http://bu.mp/apiagree Add libBump.a and BumpClient.h to your Xcode project. Ensure that your target is linked against libBump.a, CFNetwork.framework, CoreLocation.framework, and AudioToolbox.framework. Configure your client: [BumpClient configureWithAPIKey:@"your_api_key" andUserID:[[UIDevice currentDevice] name]]; error /Users/admin/Downloads/bump-api-ios-master/libBump/libBump.a(ssl_err.o) ld: 3596 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) This looks familiar I just dont know how to fix it.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/04/13 08:29 AM (12 years ago)
3596 duplicate symbols I'd have a fresh clean of the derived folder, it sounds like the libBumb.a has quite a few classes that are the same as the ones BT have supplied us with, this happened with Aurasma as they had their own reachability class. I did have this working a few months ago so I'm guessing something might have changed
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/04/13 09:05 AM (12 years ago)
I think it would make a good plugin. I can think of a few ideas for its use, also I can image something like this feature would work will in the teen market with the right idea.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
03/04/13 09:27 AM (12 years ago)
Didn't even know the IPhone had a "bump" feature. According to that comercial IPhone doesn't..lol LA
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/04/13 09:41 AM (12 years ago)
I did a clean of the project. Do you suggest I change something with in the libBumb.a file because i cant even open it?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/04/13 09:56 AM (12 years ago)
@la it's an app called bump its not native. @feraco no you can't crack open a lib file. I'll try and take a look later
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/04/13 02:26 PM (12 years ago)
Hey I have some progress! The project I started to try to integrate bump into had scringo and aurasma integrated into it. I now tried with a new project that was downloaded from the server a few weeks ago.( before push) It builds successfully in simulator. Now im not sure if I have to make a screen for this or if I should try loading it to a real device and try to bump it. I added this to my appdelegate file but im not sure what it does. Any advise in appreciated. - (void) configureBump { [BumpClient configureWithAPIKey:@"my_api" andUserID:[[UIDevice currentDevice] name]]; [[BumpClient sharedClient] setMatchBlock:^(BumpChannelID channel) { NSLog(@"Matched with user: %@", [[BumpClient sharedClient] userIDForChannel:channel]); [[BumpClient sharedClient] confirmMatch:YES onChannel:channel]; }]; [[BumpClient sharedClient] setChannelConfirmedBlock:^(BumpChannelID channel) { NSLog(@"Channel with %@ confirmed.", [[BumpClient sharedClient] userIDForChannel:channel]); [[BumpClient sharedClient] sendData:[[NSString stringWithFormat:@"Hello, world!"] dataUsingEncoding:NSUTF8StringEncoding] toChannel:channel]; }]; [[BumpClient sharedClient] setDataReceivedBlock:^(BumpChannelID channel, NSData *data) { NSLog(@"Data received from %@: %@", [[BumpClient sharedClient] userIDForChannel:channel], [NSString stringWithCString:[data bytes] encoding:NSUTF8StringEncoding]); }]; [[BumpClient sharedClient] setConnectionStateChangedBlock:^(BOOL connected) { if (connected) { NSLog(@"Bump connected..."); } else { NSLog(@"Bump disconnected..."); } }]; [[BumpClient sharedClient] setBumpEventBlock:^(bump_event event) { switch(event) { case BUMP_EVENT_BUMP: NSLog(@"Bump detected."); break; case BUMP_EVENT_NO_MATCH: NSLog(@"No match."); break; } }]; }
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
03/04/13 03:00 PM (12 years ago)
The iPhone bump app works less than half the time, as mentioned it has been around for an age but is far from reliable. Both users have to have a network connection that is not flaky and have the app. Seemless it is not. When things don't work people get annoyed and think our product is naff. That said Bump can go between iPhone and Android, at least it used to be able to. The reason the commercial pushes it as a neat feature on Android is because, well, it is neat and they know the equivalent, non-native iPhone solution is just poor. Wish you all the best with it @feraco and hope you get a slick bump feature going.
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/04/13 04:28 PM (12 years ago)
@MacApple thanks for the input. You have a good point. New problem - when I try to build on to my device I get a new error. which is file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/admin/Downloads/msearthsciencebuddy_v20_iOS-1/libBump/libBump.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) When i look through various forums about this error most people say to remove architecture armv7s. When I try this I am not sure if i am doing this the correct way. In valid architectures I changed it to armv7 and now I get a different error that says- have the same architectures (armv7) and can't be in the same fat output fileCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo failed with exit code 1
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/06/13 10:30 AM (12 years ago)
OK so I have the app building in the simulator with bump integrated into it. I cant build it on to a iphone 5 device. I read a ton of forums explaining something about armv7s and the iphone 5. I didnt fully understand it. according to the bump integration api instructions my app should be bumpable. I do not know how to simulate a bump in the simulator. I tried to shake the device and nothing happened. I also cant build it on to my iphone5 device to test the bump. Does anyone know how to simulate bump on simulator?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.