teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
02/27/13 07:28 AM (12 years ago)

New Scringo integration

I am trying to integrate the new Scringo software into my IOS app. I have the majority of the work done, I am just stuck on the last few items... I am looking for someone to help me for $$payment. I am looking for someone to connect with me via "Team Viewer", like I said most of the work is done, I have all of the screens needed open on my computer... if you know how to do this and are looking for a little extra cash please email me at [email protected] I have tried to do this myself, but I am getting some errors in xcode that I just cant figure out. I do have my app also open in Xcode... Thank You!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/27/13 07:36 AM (12 years ago)
Is the new Scringo framework, still a slide on the screen or is it permantly displayed on screen so users can actually see it at all times?
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 07:37 AM (12 years ago)
I think it's still the slide but there's an option to add a permanent button.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 09:14 AM (12 years ago)
Hi teamcaz, Not sure if the Scringo tutorial in the How To's section is out of date for this. Have you checked that out? In the meantime I am going to get comfy with the integration. Keep you posted! ian
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/27/13 09:28 AM (12 years ago)
Great! your previous tutorial Ian was a massive help. To be fair I stopped using Scringo as I didn't like the fact that it was hidden from the users view, to have a permanent button on screen would be a better option, however I do like Socialize for its simplicity.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 10:10 AM (12 years ago)
Hi teamcaz, I just loaded Scringo into a new Buzztouch project and their new implementation makes it super easy. Have you gotten the Scringo screen to swipe open? All you have to do is add the entire Scringo folder to your Xcode project then in the Appdelegate.m file add: [ScringoAgent startSession:@"YOUR_SCRINGO_APP_ID" locationManager:nil]; To your didfinishLaunching method. All this is as per the Scringo documentation. Let me know where your at with it. we'll get it! ian
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 10:34 AM (12 years ago)
Ian thank you for your help! so I am at the part of the scringo tutorial of: // Your application code [ScringoAgent startSession:@"YOUR_SCRINGO_APP_ID" locationManager:nil]; return YES; } so I put this just under the -Bool deal right... do I include the "//Your application code" also...?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 11:01 AM (12 years ago)
This is where I like to put the call to Scringo in my appDelegate.m file around line 555 You just need to insert your Scringo App Id. https://dl.dropbox.com/u/39276137/ScringoCodePlacement.png Let me know when you get there.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 11:35 AM (12 years ago)
@dragon you can now set a method to pop out the scringo bar with a button, if that makes sense. I personally love the unobtrusiveness of it. Ps I am replying to your email
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 11:52 AM (12 years ago)
Ok Ian... sorry for the delay... I successfully have that in place....
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 11:55 AM (12 years ago)
Try to run the app in the simulator and see if you can swipe?
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
02/27/13 11:55 AM (12 years ago)
Love it! works great!
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 12:04 PM (12 years ago)
It works! Ian you rock... Now can u explain to me how to add a button to it?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 12:54 PM (12 years ago)
To add the button to the navbar add this in the viewWillAppear method unde rthe setup navigation Makes sure you add to every plugin screen you want the button in. This will also over write any right buttons in the control panel. #import <Scringo/ScringoAgent.h> //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self:[self screenData]]; UIBarButtonItem *rightBarButton = [ScringoAgent scringoActivationBarItem]; self.navigationItem.rightBarButtonItem = rightBarButton;
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
02/27/13 01:08 PM (12 years ago)
This is great! kittsy thanks again! PS I could not get opentok to work for IOS. It worked for chrome and firefox html browsers. Im still trying!
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 01:11 PM (12 years ago)
Kittsy can you by chance explain a little more detail where and what to post to get the button to appear in the nav bar? I am sorry I know it sounds dumb but I am a bit slow :) or if you have a pic by chance?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 01:17 PM (12 years ago)
plugin e.g BT_screen_blank, BT_menu_list etc they include .m and .h files In the .m file of every plugin you want that top button to appear you add #import <Scringo/ScringoAgent.h> to the top of every .m file where all the others are Then find the viewWillAppear method it is in different paces in different plugins but everyone has one. find this //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self:[self screenData]]; and add this underneath UIBarButtonItem *rightBarButton = [ScringoAgent scringoActivationBarItem]; self.navigationItem.rightBarButtonItem = rightBarButton;
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 01:34 PM (12 years ago)
If you want it to appear on all of your nav bars in the top right corner you can do it this way, bare in mind this will stop access to right navbar buttons in other plugins. IN BT_viewUtilities.m add #import <Scringo/ScringoAgent.h> where all the other imports are at line 280 under this //////// end setup status bar ///////////////////////////////////////// add UIBarButtonItem *rightBarButton = [ScringoAgent scringoActivationBarItem]; theViewController.navigationItem.rightBarButtonItem = rightBarButton;
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 02:13 PM (12 years ago)
Ok Ian... sorry for the delay... I successfully have that in place....
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 02:19 PM (12 years ago)
Kittsy thank you sooooooo much! it is working like a charm! the one and only last and final thing is how I go about letting the user sign in with there facebook or twitter... I did make a facebook app for this app so I have an app ID for Facebook.... I just dont know how to code it in. I do know how to make the Facebook line in BT.info.Plist, just can you tell me besides that what I have to do for facebook integration?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/27/13 02:21 PM (12 years ago)
So does anyone know whether the old Scringo integration tutorial still applies to the new improved version?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 02:32 PM (12 years ago)
I can't remember but this one is two lines of code to get it working in app three more lines of code to add the button to open it aswell as swipe and the same facebook procedure It's easy
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
02/27/13 03:02 PM (12 years ago)
1. does it need armv6? Im getting 30 x "Apple Mach-O Linker Error"'s 2. is there a minumum deployement target. I would just love it if something worked first time for me one day :D
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/27/13 03:04 PM (12 years ago)
make sure you add the frameworks twitter,framework accounts.framework coretext.framework the rest are already in your package if you have already done that give it a clean
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 03:29 PM (12 years ago)
This is much easier to install than the older Scringo. It's similar but fewer steps. will have to update the How To:)
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 03:41 PM (12 years ago)
I am soooo close! the last step is this and I just dont know where to put it: 3. In your app delegate's class, make sure to implement these methods as follow: -(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [ScringoAgent handleOpenURL:url]; } -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ return [ScringoAgent handleOpenURL:url]; }
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 03:46 PM (12 years ago)
You should be able to add it right under where you added the first code in the appdelegate.m file [ScringoAgent startSession:@"Your_Scringo_App_ID" locationManager:nil]; } - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [ScringoAgent handleOpenURL:url];
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 03:54 PM (12 years ago)
I am soooo close! the last step is this and I just dont know where to put it: 3. In your app delegate's class, make sure to implement these methods as follow: -(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [ScringoAgent handleOpenURL:url]; } -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ return [ScringoAgent handleOpenURL:url]; }
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 04:04 PM (12 years ago)
It's official it works! I am so grateful for all of your help! I really like this new scringo... one last final question and I swear I am done for the day! it says I can add test users... I will erase before I submit to the app store but it says add this by calling: [ScringoAgent setTestMode:YES]; does this also go under the last stuff as well? or where exactly does this go?
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 04:06 PM (12 years ago)
sorry! I dont know why it keeps adding the same message...
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 04:11 PM (12 years ago)
No worries about all the questions, that's why we are here! Just add it after the original call to Scringo like so: [ScringoAgent startSession:@"Yjqy6jPWWFv3L9G50iwgwF6lyu8SFRF0" locationManager:nil]; // Set to NO for Release [ScringoAgent setTestMode:YES];
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 04:12 PM (12 years ago)
When you refresh your browser after submitting a post it posts it again. I'll delete them:)
 
teamcaz
I hate code!
Profile
Posts: 513
Reg: Jun 12, 2011
carlsbad
5,130
like
02/27/13 04:17 PM (12 years ago)
Thank You Ian!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
02/27/13 04:20 PM (12 years ago)
No problem. Glad it's working!
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
02/28/13 07:25 AM (12 years ago)
@kittsy, Since adding scringo (with the slide from the left option) it seems to be impacting you carousel plugin. When you try and scroll through the coverflow, if you use the left half of the screen, you pull out scringo. Not sure if its just me, but thought id make people aware
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/28/13 08:05 AM (12 years ago)
yeah your right it will do they'll both be using the same gesture recognizer to swipe left and right. You will either need to disable, the swipe of scringo and use a button instead. Or if you are going to use scringo in an iphone app I think the vertical scrolling carousels look pretty. So vertical up/down gesture will move the carousel, and right to left will control scringo. unfortunately it's just one of those things, you could disable the scroll in the carousel and have it autorotate, but as a user that would be annoying as hell.
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
02/28/13 08:12 AM (12 years ago)
i have added the button option.....how do i disable the swipe. thats what i have been looking for this morning
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
02/28/13 08:17 AM (12 years ago)
Scringo always crashed my app when trying to connect to Facebook. 1. i edited BT_info.plist http://www.randalldesigns.co.uk/picture1.tiff 2. code added to appdelegate.m file http://www.randalldesigns.co.uk/picture2.tiff 3. app created in FB http://www.randalldesigns.co.uk/picture3.tiff am i missing something thats causing my app to crash when i try to connect? i hit connect, flips me to facebook. i accept the authorisation, or now it says you have already authorised the app. i click okay to take me back to my app and its frozen. http://www.randalldesigns.co.uk/picture4.tiff Thanks Steve
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/28/13 08:25 AM (12 years ago)
that error screen show us nothing in the debugger in the bottom right hand corner has the juicy stuff. it will be a null pointer or something like that, I'll try and replicate when I get home
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
02/28/13 08:29 AM (12 years ago)
2013-02-28 15:08:06.352 myapp[7792:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull stringByAddingPercentEscapesUsingEncoding:]: unrecognized selector sent to instance 0x39c78090' *** First throw call stack: (0x318e12a3 0x395fe97f 0x318e4e07 0x318e3531 0x3183af68 0x1fc74f 0x1f3589 0x203a6d 0x1efbe7 0x1e9477 0x1e984b 0x3221c6fd 0x3215c1f9 0x3215c115 0x315be45f 0x315bdb43 0x315e5fcb 0x3182774d 0x315e642b 0x3154a03d 0x318b6683 0x318b5ee9 0x318b4cb7 0x31827ebd 0x31827d49 0x353fe2eb 0x3373d301 0x13c261 0xf2330) libc++abi.dylib: terminate called throwing an exception
 
RFConcierge
Lost but trying
Profile
Posts: 142
Reg: May 08, 2012
San Diego, ca
7,520
like
03/10/13 08:43 PM (12 years ago)
Send to [email protected] if you haven't already. Elon over there is helping me through a crash event when I close the app and reopen it. Ryan
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/03/13 09:35 AM (12 years ago)
Kittsy You rock i got my right scringo button with ease.. i suggest a short post in the new scringo forum with that will answer alot of questions in the future.. its hard for me to get just on the scringo site
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/20/13 12:11 PM (12 years ago)
Hey, I added the right button, but that didn't stop the swipe to activate the scringo. How can I d that? I want to disable the swipe and use only the button to access scringo. Thanks. Miguel
 

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.