Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 16    Views: 196

JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
10/16/12 06:42 AM (13 years ago)

Accessing an SDK from a home page button (possible paid project?)

I'm building an app (on both iOS and Android for a client) that needs a third party SDK integrated. The SDK in question is the Aurasma Augmented Reality function and, annoyingly, they call it a 'kernel' rather than an SDK. I have their SDK in the app and correct frameworks, libraries and linkers used. I've followed the very useful PDF guide from Absentia (http://www.buzztouch.com/files/howtos/make-a-button-do-anything.pdf) on making the button 'do anything' and the method is more than sound for opening third party SDKs (Chartboost, for example). So my issue is, what do I call in the code to instantiate / open the Aurasma functionality? The screen shot of the button.m file is here (https://docs.google.com/document/d/1nhAvQIAXzCERUjOqqpHDLdF2h9OrMuDg8iXKW9vawss/edit) showing the glaring space for the code. The download instructions (which are overly simplified for my tastes) are here (https://docs.google.com/open?id=0B7z8VO2FDWLGWnJPeFhfdkpfcU0) (they're provided by the Aurasma developers). Their suggestion on their forum is as follows: "Here are some pro tips from out iOS dev expert: +(AKViewController*)aurasmaViewControllerWithDelegate: (id<AKViewControllerDelegate>)delegate will return a UIViewController subclass that you should present by calling - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion on another view controller with viewControllerToPresent being the AKViewController. -(void)aurasmaViewControllerDidClose:(AKViewController*)aurasmaViewController will be called on the delegate passed to aurasmaViewControllerWithDelegate: when the AKViewController has finished." But this makes little sense to me. I think I haven't referenced something right. So any pointers would be gratefully received. Finally, if someone wants to take this off my hands and do it for me (via Teamviewer on my machine) then we can talk prices (it's time sensitive, so there's a rate available, please message me). Thanks in advance.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 06:59 AM (13 years ago)
I had this working open up the example project and makes sure this works in the emulator. Then create a blank plugin upload compile stick it in your package. then copy all the details present view controller is BT_viewcontroller I did it through trial and error but your right it's not easy and creating the augmented bits and pieces is even harder to make it work. I'm not by my computer but that is how i did due to it being on a screen there is no need to do that button thing. Got a feeling I removed it from my project will try and have a look when I get home. Watch the how to build a plugin seminar it will be easier decoding the aurisma xib file.
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
10/16/12 07:13 AM (13 years ago)
Thanks for the response. I tried with the plugin option first, to no avail. I'll give it another go. It would be great if you could expand on your second paragraph a bit more (there's no commas, so I'm struggling to follow!) What I think I read is: -Create a blank plugin in the buzztouch.com panel (called 'Aurasma Plugin', for example) -Upload this 'Aurasma Plugin' to my self hosted panel. -Download the package (the the new 'Aurasma Plugin' in it). The question then is what do I put into the Aurasma Plugin? Their download includes two elements; An 'AurasmaKit' which is supposed to be all that's needed to integrate it and AKTest (which is their test application which contains the launch screen). I'd be grateful for further assistance and, as mentioned, if you wouldn't mind chatting through it, there's payment available (I'll stop mentioning this now, I sound desperate!). By the way, the test application from Aurasma was working fine in the emulator.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 07:47 AM (13 years ago)
yeah that's what I meant. All I did was copy the lines of code from the AKTest into the new plugin. For the life of me I don't know why I didn't save the files. I'll have a play around tonight and see how I get on. The reason I stopped was, at the moment there isn't a way the augmented reality thing to link to another screen in buzztouch only to html through there kernel/framework I didn't like that. Give me a little time when I get it working I'll ask you to send me the file I'll make changes and send it back. That team viewer is so unresponsive and plus I know my own layouts better. I'll message you when I'm happy I can implement it to a good standard. Defo don't want paying too much responsibility lol
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/16/12 10:32 AM (13 years ago)
Where is the page that allows you to download the Aurasma SDK?...I can't seem to find it
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 10:33 AM (13 years ago)
you need to register takes a day or two to give the login details
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
10/16/12 11:13 AM (13 years ago)
Hey @Absentia, I've got the SDK files if you need to see them. They are the test ones they allow developers to download. Let me know an email address and I can zip and send. Cheers.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 03:39 PM (13 years ago)
Christ 6 hours I've been messing with this shit and all I'm getting is errors and crashes. Must beat aurasma
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/16/12 03:41 PM (13 years ago)
[email protected] - send em my way
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 04:34 PM (13 years ago)
I give up, good luck Absentia, I bet it's dead simple
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
10/16/12 11:20 PM (13 years ago)
Hi Kittsy, Really appreciate that you've bothered to try, it means a lot! It's alos reassuring that someone else has been driven to the point of frustration! Absentia, zip file is on it's way now. Cheers.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/12 11:34 PM (13 years ago)
I'll probably have another 6 hour look tonight much to the distress of my partner. I would never use this in my apps but it's like a puzzle now that needs solving
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/16/12 11:36 PM (13 years ago)
Haha man I'm getting a little nervous to look at this thing..sounds like a nightmare
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
10/17/12 12:03 AM (13 years ago)
Tell me about it! I've sent an email to Aurasma but, unsurprisingly, I can only speak to sales and not tech. They will, however, forward my email and I'll get back here if there's any news. They have a forum but the answers are a little vague. Kittsy, I tried the option of copying over the entire test application into a blank plugin. With correct frameworks, libraries and linkers installed at least it did not crash or pause. The plugin however only opened a blank screen. In case it's of any assistance, the file configuration looks like this: <a href="https://docs.google.com/document/d/1C9eDTG_G5PDKoCuZIkbPPgieAVICDc6r90kr5I6wI3g/edit" target="_blank" rel="nofollow">https://docs.google.com/document/d/1C9eDTG_G5PDKoCuZIkbPPgieAVICDc6r90kr5I6wI3g/edit</a> And my plugin.m file like this: <a href="https://docs.google.com/document/d/1u7OgeDMK0CCFQCGFIZE2dsdLEA6n_Uy9ldROOamwblE/edit" target="_blank" rel="nofollow">https://docs.google.com/document/d/1u7OgeDMK0CCFQCGFIZE2dsdLEA6n_Uy9ldROOamwblE/edit</a> And my plugin.h file like this: <a href="https://docs.google.com/document/d/1Qmp7duFtUaMjQ7-AUmnYSE9xKOqQRmoA4Fs8jA689HA/edit" target="_blank" rel="nofollow">https://docs.google.com/document/d/1Qmp7duFtUaMjQ7-AUmnYSE9xKOqQRmoA4Fs8jA689HA/edit</a> I think the error is is with called the view controller (somewhere, I'm not called the right one, but I've no idea where). In terms of how useful this would be I'm doing it from a commercial standpoint. I've had three clients this week alone request an AR feature and one of them already has the Aurasma function completed and just needs an app to hold it in. So basically, my motivation on this is purely commercial.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/18/12 02:06 PM (13 years ago)
how you getting on. I've become obsessive in getting this implemented. But still with no luck. I can get it as far as the splash screen before an error occurs with the reachability class. But worse I had a dig around in the target and project they use C language dialect GNU99 but buzztouch uses C99 thought i'd solved it but....... GNU99 when I swap it, it causes errors in the methods calling the screens from the control panel. Have had a good mess around with the kit and feel I could do something with it now. Even more depressing
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/18/12 05:19 PM (13 years ago)
Sorry...I haven't even had a chance too look at this. I've been distracted trying to integrate an Appoxee inbox onto a socialize action bar. The aurasma file is sitting on my desktop - ill post here if I figure anything out
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
10/19/12 04:10 AM (13 years ago)
Hey guys, I'm quite close to throwing in the towel on this too. It just seems that it's too much work with no helpful input from the team behind the software. On that note, however, I've had two emails from them this week (prior to their tech guy being available later this afternoon, apparently). The first was an email from their sales dept. stating some info on compatibility (they'd assumed I was building for iOS6 exclusively!). Their SDK works on iOS 4 and above, so I changed the build (I was building for iOS3 and above, as normal) and nothing changed. The second was an reference to their build architecture. Apparently, it likes armv7 only and I believe this may not be compatible with BT anyway (my knowledge falls down here). I'm leaving it for a few days in case it leads me to distraction any further.
 

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.