Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
04/07/13 04:02 PM (12 years ago)

How to integrate Scringo Push Notifications in a Buzztouch App

Put [ScringoAgent didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; as the last command in - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken Put [ScringoAgent didFailToRegisterForRemoteNotificationsWithError:error]; as the last command in - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error And put [ScringoAgent didReceiveRemoteNotification:userInfo]; as the last command in - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
04/07/13 11:02 PM (12 years ago)
Looks helpful, thanks.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/08/13 12:58 AM (12 years ago)
Thanks! I hadn't gotten around to this yet. Very much appreciated! Less headaches lol
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
04/08/13 01:36 AM (12 years ago)
Looks cool. Thanks.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/08/13 08:14 AM (12 years ago)
Thanks for sharing @GoLakers!
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/08/13 09:43 AM (12 years ago)
Go Lakers, Would you be able post a screenshot of where you entered it in the code. Thanks.
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
05/04/13 11:05 AM (12 years ago)
As per Rad Doc, it would be great if you could expand on where you've put this in your code.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/05/13 03:05 AM (12 years ago)
I've created a pdf with the placement in the app delegate m file. https://dl.dropboxusercontent.com/u/3222229/rss/scringopush.pdf
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
07/07/13 10:59 AM (12 years ago)
I just totally messed up my app delegate.m file by trying to follow the PDF form above for push notification activation. I accidentally deleted some commands and now there are semantic errors and "use of undeclared identifiers and Invalid arguments..etc. I didn't save anything and yet when I exit the project and return, the issues are still there. What a mess.
 
New Techie
I hate code!
Profile
Posts: 26
Reg: Oct 12, 2011
location unknow...
4,560
like
09/28/13 06:53 PM (12 years ago)
Adam I did all this and I get the messages when I test the device but no badge number. Scringo said it might have something to do with my code signing but I have my APN certs and I believe I used the correct profiles (have to admit that is all very confusing). But I keep seeing this error in my output window: 2013-09-28 21:42:32.730 AAKTS.temp_caseinsensitive_rename[42260:907] Scringo - Failed registrating for push notification: { NSLocalizedDescription = "no valid 'aps-environment' entitlement string found for application"; Any suggestions????? Anyone???? I'm really stuck here and just need this last piece to publish:(
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
09/28/13 07:00 PM (12 years ago)
Regenerate your certs
 

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.