basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
06/18/12 12:18 PM (13 years ago)

Appoxee installation errors in Xcode (iOS)

I'm installing the latest Appoxee SDK (1-0-10) into my Xcode project, but there are errors in the middle of the code I'm pasting in using Appoxee's web site ( http://www.appoxee.com/AppoxeeWebManager/iphoneCode/installation.html ) on this line: @implementation unitedapp_appDelegate I'm getting "semantic issue: incomplete implementation" on the same line, I'm getting "semantic issue: method in protocol not implemented" Here: - (NSString *) AppoxeeDelegateAppSDKID; I'm getting "method declared here" Here: @interface unitedway_appDelegate : NSObject <UIApplicationDelegate, BT_downloadFileDelegate, I'm getting "required for direct or indirect protocol 'AppoxeeDelegate'" and the big red exclamation mark one: } - (NSString *) AppoxeeDelegateAppSDKID { I get "use of undeclared identifier 'appoxeedelegateappsdkid" can anyone help!??
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
06/18/12 02:22 PM (13 years ago)
this is the code i see on the site: #import "Appoxee.h" @interface yourAppDelegate : NSObject <UIApplicationDelegate,AppoxeeDelegate> { } @end I'm trying to understand why you are using BT_downloadFileDelegate in your declaration? I'd probably have to look and try this myself to be of more help, but also note on top where they say: The following steps instruct you on how to implement Appoxee in its basic modal mode. so you're not cutting/pasting code verbatim to make it work. you have to modify that sample code they supply to fit your app.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/18/12 03:46 PM (13 years ago)
hi, thanks for your response. It says to add the bold parts. Appoxee don't expect you to be using BuzzTouch, which is why it's not listed in the <UIApplicationDelegate>. It says to add the text #import "Appoxee.h" then add AppoxeeDelegate to the NSObject list, which is what I did. I copied/pasted the blocks they said to in their instruction page, and amended some like the ones above. No, I wasn't copy/pasting verbatim, I followed their instructions.
 
Annonymous
Profile
06/19/12 07:14 AM (13 years ago)
are you trying to do this on BT 1.5 or 2.0? I think you've done all the hard work already and you are close. Esp if you have dealt with the cert. That process makes it hard to just tinker/test this without setting it up to really work! I really haven't looked at integrating Appoxee as IIRC it was still in beta? But I want a PN and just can't decide which Push Notification to try - Parse, Socialize or Appoxee. All on my radar to try out... Looking at Appoxee instructions again it does look very straight forward to implement. It does look like mostly like a cut/paste job. I need to RTFM and understand Appoxee it a bit better, but i think i will give this a shot in the next few days and see if i can implement it. and what features of it are you planning to use? I'd be trying from BT 2.0. I would try cleaning up that header file first so it looks like this: (this is from a dummy 2.0 ATRAIN53APP_appDelegate.h) #import "BT_audioPlayer.h" #import "Appoxee.h" @interface ATRAIN53APP_appDelegate : NSObject <UIApplicationDelegate, BT_downloadFileDelegate, AppoxeeDelegate, UITabBarControllerDelegate, AVAudioPlayerDelegate, UIAlertViewDelegate> and then that second chunk of code they have you cut/paste i would add that in my ATRAIN53APP_appDelegate.m file in this statement which is right at the top of the file: -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ start adding it right after this and make sure you put in your AppoxeeDelegateAppSDKID in the code! again, not tested but that is how i would first try to implement this into my 2.0 APP. and the double pp and ee in the name could trip you up too when manually adding code. watch for that. i hope to try it sooner than later, but maybe something in my post might help you now?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
06/19/12 07:17 AM (13 years ago)
^^ not sure how i posted that anonoymously- so if that advice is bunk....LOL.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/19/12 07:28 AM (13 years ago)
;-) thanks, I'll take a look and see if that works. Removing their code gives me an error free file, so something's odd in what I did or in their instructions. I'm using appoxee successfully in another app (that a friend installed for me), and I compared this with my new app, and couldn't see any differences, but you're right, it only needs one simple spelling error and I'm screwed. Esp with the strange spelling of appoxee. finger's crossed!
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/19/12 08:09 AM (13 years ago)
still getting errors. The red lines in the appoxee code - they say what regular bold and green mean, but not what red means! When I pasted in the code from -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ to [[AppoxeeManager sharedManager] show]; } this line gives errors: - (NSString *) AppoxeeDelegateAppSDKID I added my SDK key to the lines below this, but it still says it's an undeclared identifier. as you'll see here: http://b143apps.com/argh.jpg
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/19/12 08:14 AM (13 years ago)
stop the presses! I got rid of some errors by deleting the last } in the appoxee code they give you to paste in, so it now ends with then goes straight into the existing code: //Ask the Appoxee to appear (only for modal mode) [[AppoxeeManager sharedManager] show]; //set the configuration file name configurationFileName = @"BT_config.txt"; But now, it has a different error on this line: [[AppoxeeManager sharedManager] addBadgeToView:AppoxeeButton badgeText:badgeText badgeLocation:CGPointMake(0,0) shouldFlashBadge:hasNumberChanged]; where I get the error "use of undeclared identifier "AppoxeeButton" this is driving me crazy (er)
 
Appoxee Team
I hate code!
Profile
Posts: 6
Reg: Jan 15, 2012
Madrid
60
like
06/20/12 01:09 AM (13 years ago)
You have to create a button called "AppoxeeButton" and then this error will disappear. In your ViewController.h define a button : UIButton *AppoxeeButton; In your ViewController.m file put this code in the viewdidload method: AppoxeeButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [AppoxeeButton setTitle:@"Inbox" forState:UIControlStateNormal]; [AppoxeeButton addTarget:self action:@selector(showAppoxee) forControlEvents:UIControlEventTouchDown]; [AppoxeeButton setFrame:CGRectMake(0,0,40,40)]; [self.view AppoxeeButton]; and also add this method to your ViewController.m file: - (IBAction)showAppoxee { [[AppoxeeManager sharedManager] show]; }
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
06/20/12 08:14 AM (13 years ago)
@Appoxee Thanks for the tip, very, VERY helpful. I had a feeling some type of UIViewcontroller was needed. I saw references in the notes when i glanced them over but thought - maybe you can this can work with just the Push Notifications and you don't have to create a view.... But then I was wondering how one would access the Appoxee 'INBOX' then? That answers my question - you have to create a button to pull up the Appoxee View. Makes prefect sense. Thanks for the sample code snippet too, saves me the work! I Really like this product. How long until you guys are officially out of Beta? (and Spain vs France. WOW. Does the town watch this game on a large screen in the Plaza Del Torros? That would be majestic.) @basement - I don't know if thoise instructions are a game changer for you. I can do this pretty easily now in BT 2.0, but haven't worked with the Custom Plug-in in BT 1.5. There have been some GREAT posts recently on how to use the 1.5 custom plug-in. I'd actually have to start there and try that to see where to add the code. Need to see the actual .h and .m files that plug-in generates. Happy to try and help a little ojnthe custom screen to see if we can get this working for you. This forum hacks up code so i'd prefer to do that via email if you want to swap some files, etc...
 

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.