Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 69    Views: 300

MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
05/08/12 02:08 PM (13 years ago)

Adding Scringo SDK to iOS

Hi all. As per a few requests on this thread: http://www.buzztouch.com/forum/thread.php?tid=47196C82CBCE423D91440B9&currentPage=1 Here are a few simple things to do with Scringo SDK. I believe the Scringo SDK beta is now open to all iOS users, sign up, download the SDK and follow their instructions, it is very easy to do. It is cross platform but I am led to believe the Android SDK is still private. Don't quote me on that though. As I said, their guide is simple and only a few steps, you needn't be a coder to get it going, follow the steps here: http://www.scringo.com/download.php?id=y08Bwg5GPJMXzEgtbi1ZoR3HYkkkqdLZ Once you have done that you need to make a slight code modification. Navigate to the following file in xcode: BT_reachabilty.h (it is in the BT_Objects group) and find the following code: #define kReachabilityChangedNotification @"kNetworkReachabilityChangedNotification" and replace it with the following line of code: #define kReachabilityChangedNotification @"kBT_NetworkReachabilityChangedNotification" If you do not do this you'll just keep getting a 'no network' error. I'm told this will be fixed in the next release which should be in around 2 weeks. It was / is just a case of BT and Scringo not playing well together as you can see from the simple code change. It is also relatively easy to add posts to the feed page of the plugin. For instance, if you want the feed to be populated with users activity you can add the following line of code: [ScringoAgent postToFeed:@"Just uploaded a photo"]; This will, as you can probably guess, notify users of a new image being posted to your user gallery. I added it to the BT_screen_imageEmail.m file so it updates my feed. You can also register a Facebook App. While this has nothing to do with Scringo as such, it will allow the app users to login via Facebook and post to their wall and invite friends, kinda neat. You can do that here http://developers.facebook.com/docs/mobile/ios/build/ Please don't ask me about FB though, can't stand the beast!
 
Sande
Android Fan
Profile
Posts: 103
Reg: May 06, 2012
Umeå, Sweden
2,780
like
05/08/12 02:12 PM (13 years ago)
I can confirm that the Android SDK is closed beta at the moment
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/08/12 03:35 PM (13 years ago)
Thank u kindly MacApple :)
 
vlad
I hate code!
Profile
Posts: 40
Reg: Mar 28, 2012
Boston
1,000
like
05/08/12 03:51 PM (13 years ago)
This is awesome. Thanks for the share.
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
05/08/12 05:09 PM (13 years ago)
!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/08/12 05:19 PM (13 years ago)
You should have mail Magic_Man
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/08/12 09:40 PM (13 years ago)
Thanks MacApple. Can't wait to try it in the morning. D
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
05/08/12 10:55 PM (13 years ago)
i got it to work the problem is wen i refresh the app the menu goes away did u have that problem with your app?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/09/12 02:11 AM (13 years ago)
Hi MacApple. I have one warning on this line [ScringoAgent startSession:self.window locationManager:nil]; the warning say: Class method '+StartSession:locationManager:' not found (return type defaults to 'id')
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 04:36 AM (13 years ago)
@st726 That is correct, the pop up only shows on initial launch.
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 05:12 AM (13 years ago)
I've added the code and the build is successful but I can't get scringo to trigger in the app. I have a few classes to teach and will get back at it. D
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
05/09/12 05:59 AM (13 years ago)
Hi everyone, I'm Elon from the Scringo team. If you have any issues/questions/feedback about the product, feel free to contact me at [email protected]. I'll be happy to assist. By the way, if you want to configure the popup to be displayed every time someone is launching your app, just put the value 2 in the WelcomePopupMode field in the ScringoAppSettings.plist file (which is part of the installation zip). The possible values for this field are: 0 - Don't show the popup at all 1 - Show it only the first launch (the default) 2 - Show it on every launch Sorry about that, but we're still working on the full documentation :-)
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 06:03 AM (13 years ago)
Hey my good man! Sweet to see you on here and thanks again for a tight product.
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
05/09/12 06:07 AM (13 years ago)
Double post.. Sorry. Elon
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/09/12 08:00 AM (13 years ago)
Thanks Mac- nice work bringing the developer that wants to help us to the BT site! Welcome Elon, i think a few us will have questing as we try this new toy out. Thanks for offering the help!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 08:02 AM (13 years ago)
He's good people ATrain53 with a sweet product. Spoke to the good man a couple of weeks ago about BT, big things ahead for both. Was going to try ad make Chicago this Saturday but looking less likely now, bit gutted.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/09/12 08:08 AM (13 years ago)
Hi again MacApple Can you post your line you have i you app delegate.m fil? Where do you put it? //mackimack
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 08:10 AM (13 years ago)
@Mackimack I will do but will not be on laptop until 430 pm EST, around 930 your time I believe, that cool? Remind me what line?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/09/12 08:16 AM (13 years ago)
Nice! thanks!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 08:17 AM (13 years ago)
NP
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 10:15 AM (13 years ago)
I have an app running v.2.0 and I don't have a bt_objects folder showing. Is this only in older versions of BT? D
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 10:30 AM (13 years ago)
I know that I am becoming annoying with this, but I have one more question for now. In my app running v.1.5 I have edited the code via your instructions and scringo documentation, but I can't get the plugin to show on my device or in simulator. I checked the output and see that it is pinging the scringoserver/api but still nothing. Any ideas before I trash it all and start from scratch? Thanks for your time AppleMac, and Elon for creating this. D
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 10:39 AM (13 years ago)
OK. You have double checked all the code yes? Did you change any default settings?
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 11:09 AM (13 years ago)
in the scringo plist file? No
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 11:11 AM (13 years ago)
Hate to say this but you have been through the process from start to finish, checked our code etc? If so, try closing Xcode and loading project again ad delete the app from your device and redeploy.
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 11:27 AM (13 years ago)
I just came to that realization and deleted the project. In the process of reloading the code and moving the scringo folder in. Thanks for taking the time to answer me on multiple occasions. I'll let you know how it goes. D
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 11:28 AM (13 years ago)
NP. Keep us posted, you'll be there in no time.
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
05/09/12 11:43 AM (13 years ago)
Hi Dbone, If it's still doesn't work for you, feel free to zip your xcode project, and send it to me, and I will take a look what's going on. Elon
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 11:45 AM (13 years ago)
There you go Dbone!
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 11:51 AM (13 years ago)
Latest error message: Scringo - update: AppId or UserId not set Around and around I go.
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/09/12 11:51 AM (13 years ago)
Oh I missed your post Elon. Thank you so much. I will take you up on that offer.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 11:51 AM (13 years ago)
Did you see Scringo comment above?
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
05/09/12 08:43 PM (13 years ago)
@MacApple where did you paste [ScringoAgent postToFeed:@"Just uploaded a photo"]; in the BT_screen_imageEmail.m? I tried to paste it in several locations and got error. Thanks Trying to put the final touches on this thanks . Magic
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/09/12 08:54 PM (13 years ago)
Can you wait till AM and I'll send you it?
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
05/09/12 08:58 PM (13 years ago)
@Mac - Sure no problem. I am off to bed got a 5a CST rise. Just shoot me an email when you get a free minute. Thanks Tony
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/09/12 11:10 PM (13 years ago)
Getting Scringo sorted out...will post what I find as well...very cool MacApple Thanks!!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/10/12 04:31 AM (13 years ago)
@Magic_Man I posted it at end of the //emailImage
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/10/12 04:48 AM (13 years ago)
@IanJamespiano hi! I like to see your solution. I think I have the same problem as you have!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/10/12 04:54 AM (13 years ago)
@Mackimack The appDelegate.m file has the following code added. At the end of the import statements you should have: #import <Scringo/ScringoAgent.h> Then, at the end of didfinishlaunchingwithoptions you should have: [ScringoAgent startSession:self.window locationManager:nil andFacebook:nil]; } //tmpApp //return return TRUE;
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/10/12 05:08 AM (13 years ago)
Nice! Now it works! Thanks MacApple!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/10/12 05:11 AM (13 years ago)
I found in the simulator that the Scringo tabs disappeared after a few open and closing...try adding ( if u have this problem) the ScringoAgent at the end of your configureEnvironmentUsingAppData method. Just below this line: }//app parsed it's configuration data I have been talking with Scringo and they are checking out the BT_source code to make sure what is the best option.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/10/12 05:12 AM (13 years ago)
Most welcome my good man, enjoy!
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/10/12 06:01 AM (13 years ago)
Same problem as @ianjamespiano... Followed instructions, builds fine but nothing... Tried cleaning, closing Xcode etc. but nothing coming up...
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/10/12 06:10 AM (13 years ago)
Sorry- got it! Same problem as @mackimack - had this line in the wrong place [ScringoAgent startSession:self.window locationManager:nil andFacebook:nil]; Thanks @MacApple!
 
Dbone
I hate code!
Profile
Posts: 21
Reg: Apr 30, 2012
Philadelphia
2,060
like
05/10/12 06:11 AM (13 years ago)
I got it! Mac thanks for that last post. I had ([ScringoAgent startSession:self.window locationManager:nil andFacebook:nil];) higher in the code than it should have been. One small change it is now showing up on my test device. Awesome. Thanks D
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/10/12 06:14 AM (13 years ago)
@Sepala @Dbone Nice one guys!
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/10/12 10:27 AM (13 years ago)
Hi @MacApple I am trying to get the feed working but having the same problem as @magic_man... I am pasting this line: [ScringoAgent postToFeed:@"Just uploaded a photo"]; into BT_screen_imageEmail.m in the //emailImage section but I get errors wherever I paste it... any suggestions?
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/10/12 02:54 PM (13 years ago)
Hey @sepala You are going to want to drop it in the BT_screen_imageEmail.m in the //emailImage section of code right at the end of that section. //flag as 'true' self.didEmail = TRUE; [ScringoAgent postToFeed:@"Just uploaded a photo"];
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/11/12 01:39 AM (13 years ago)
Yeah I was trying to put it there but I get these errors: Semantic Issue. Use of undeclared identifier 'ScringoAgent" Parse Issue. Extraneous "]" before";" Can't think what I am doing wrong as Scringo is working great...
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
05/11/12 01:43 AM (13 years ago)
Hey @sepala Please make sure to add the following import line to the file: #import <Scringo/ScringoAgent.h>
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/11/12 01:49 AM (13 years ago)
HI Yes I have done that in AppDelegate.m
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
05/11/12 01:52 AM (13 years ago)
Please make sure to add it also to the file where you put the [ScringoAgent postToFeed:@"Just uploaded a photo"]; (e.g. BT_screen_imageEmail.m )
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/11/12 03:28 AM (13 years ago)
Brillian! Thanks Elon! Didn't realise that you had to import ScringoAgent.h into whichever screen you want to add to the feed. Thanks!
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/11/12 03:46 AM (13 years ago)
Got the feed working with the quiz now. Thanks again @scringo and @MacApple
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/11/12 06:53 AM (13 years ago)
i'm excited to try this out next week in my app. very impressed with the help/assistance Elon. that's the way to get people using your technology and telling others about it.
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/12/12 03:50 AM (13 years ago)
@ianjamespianio Elon from Scringo said that you may have got the Facebook Connect button working well. Is it complicated to do?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/12/12 04:16 AM (13 years ago)
Hi, working on a tutorial for Scringo and Buzztouch users...will have it posted by tonight...Elon has been very helpful :)
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
05/12/12 04:28 AM (13 years ago)
Excellent! Thank you.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/12/12 04:09 PM (13 years ago)
Hi, Here is the link to what I have done so far with Scringo (includes Facebook)...it's a compilation of info gathered from Elon at Scringo and Macapple. Please let me know if any mistakes or things to be added. http://dl.dropbox.com/u/39276137/ScringoBT_PDF.pdf Also, how do I add this to the BT How To's? Send BT an email? thanks!
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
05/14/12 12:43 PM (13 years ago)
@Scringo @Macapple, Is there a way to update the feed as an over the air push rather than an Apple update. ?
 
ALFREA
Aspiring developer
Profile
Posts: 89
Reg: Jul 24, 2011
San Antonio, TX
3,640
like
05/16/12 07:35 PM (13 years ago)
How does a user edit their "Profile?" Name:, Gender:, Location?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/16/12 07:53 PM (13 years ago)
That just gets filled in from the Facebook and twitter of the user...so make sure to see the guide on Facebook working with Scringo. The twitter part only works on IOS 5 devices
 
ALFREA
Aspiring developer
Profile
Posts: 89
Reg: Jul 24, 2011
San Antonio, TX
3,640
like
05/16/12 09:05 PM (13 years ago)
Thanks for all of your help. :-) One last and final question....I promise....for the evening: I am having problems adding "just did something awesome" in my feed. *** I added the #import <Scringo/ScringoAgent.h> in both sections, but nothing is appearing. I do not have an image/email uploader, so I just put the phrase "anywhere." I read your guide over and over...and the forum over and over, but I am stuck. Any suggestions?
 
ALFREA
Aspiring developer
Profile
Posts: 89
Reg: Jul 24, 2011
San Antonio, TX
3,640
like
05/16/12 09:06 PM (13 years ago)
Thanks for all of your help. :-) One last and final question....I promise....for the evening: I am having problems adding "just did something awesome" in my feed. *** I added the #import <Scringo/ScringoAgent.h> in both sections, but nothing is appearing. I do not have an image/email uploader, so I just put the phrase "anywhere." I read your guide over and over...and the forum over and over, but I am stuck. Any suggestions?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/16/12 09:12 PM (13 years ago)
What screen are u adding it to? What action are you performing to see the message?
 
ALFREA
Aspiring developer
Profile
Posts: 89
Reg: Jul 24, 2011
San Antonio, TX
3,640
like
05/16/12 10:09 PM (13 years ago)
I am adding it to BT_screen_map.h. I played around with the map, but the feed still doesn't appear. I don't really care for the maps; I just placed it "anywhere" like the guide says. I do not have an image/email uploader, and I don't plan to add one soon. I really just want to be able to start conversations with my users. I just want to be able to ask my users questions or for their opinions on certain topics in the feed. Is this possible? I hope so. Also, I have the same question as Rad Doc: "Is there a way to update the feed as an over the air push rather than an Apple update?"
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/16/12 10:16 PM (13 years ago)
The "post to feed " messages are hard coded for when the app performs a certain action so those won't be changed without changing in the code. Hopefully Scringo will chime in on what you need. Haven't played with the Feed part of it much myself yet :)
 
ALFREA
Aspiring developer
Profile
Posts: 89
Reg: Jul 24, 2011
San Antonio, TX
3,640
like
05/16/12 10:27 PM (13 years ago)
I am adding it to BT_screen_map.h. I played around with the map, but the feed still doesn't appear. I don't really care for the maps; I just placed it "anywhere" like the guide says. I do not have an image/email uploader, and I don't plan to add one soon. I really just want to be able to start conversations with my users. I just want to be able to ask my users questions or for their opinions on certain topics in the feed. Is this possible? I hope so. Also, I have the same question as Rad Doc: "Is there a way to update the feed as an over the air push rather than an Apple update?"
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
10/05/12 11:58 PM (13 years ago)
Hasn't been a post here in a while, but I figured I'd try my luck. If a user accesses an app with Scringo implemented within the app with no online connection, he/she will receive a "No network. Try again later" error. Is there any way to eliminate this message for offline users? Thanks! Nicholas
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
10/06/12 07:33 AM (13 years ago)
@PE, no there needs to be a connection because when the app launches or is accessed from within the app you have to have a connection to the Scringo server. I am a Hugh Scringo supported this product is so cool! I have it installed on my app for iOS and droid and it is working great. I have worked hand and hand with the developers of Scringo for months. They are great bunch of guys. They even sent me a Scringo t-shirt because we talk so much. I wear it every where. LOL Anyway I would say this is a must for any app you want to give a social connection to for your users. Plus the product is getting better and better as they make changes. With the latest SDK you can now control all your Scringo settings from Scringo.com no need to resubmit to apple or google. Good luck.
 

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.