mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
05/12/13 08:45 AM (12 years ago)

Push Notifications using Parse.com

Hi guys, Just wondering if there is any newer guide out there for integrating Parse into buzztouch? They changed the development center around and buzztouch has been updated a few times since the buzz parse guides / videos were published, just don't want to spend another week trying to get push working again. Cheers, David https://buzztouchmods.com
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
05/12/13 12:25 PM (12 years ago)
Hi David, I am all ears too if somebody has a how-to guide! @lsills81 published a good tutorial a while ago but now his instructions are throwing a few errors. As you said, things have probably changed since. Anyway, here is the link to the thread in case you want to have a go: http://www.buzztouch.com/forum/thread.php?tid=27DEF35D7F3C942B5BB57A8&command=isSearching&currentPage=2&topicTitle=parse&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= Cheers, Farcat
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/12/13 06:26 PM (12 years ago)
Thanks for the respond Farcat. Turns out the guide that Parse offers is excellent, the only modifications that occur are all in the appdelegate.m file! Cheers, David https://buzztouchmods.com
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
05/15/13 05:32 AM (12 years ago)
Hi David, How are you doing with your Parse integration? I am stuck, maybe you could advise me? On Parse.com I am going through the Quick Start tutorial, up to the Test bit which returns : "Got data! You saved your first object:". All is good, I assume that I have then to click on point 5 "Learn the SDK" to carry on the install. On point 5 of this doc (Adding Code for a Push Enabled iOS Application) I am struggling to integrate the code in the appdelegate.m file. Do you know where it goes? - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { // Store the deviceToken in the current installation and save it to Parse. PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:newDeviceToken]; [currentInstallation saveInBackground]; } and - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [PFPush handlePush:userInfo]; } I have try different locations but they all come up with errors. Thanks for your help! Farcat
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/15/13 08:13 AM (12 years ago)
Hi Farcat, You're getting errors becuase those functions -already exist- in the .m file becuase of buzztouch push. All you need to do is search for the already existing functions in the .m file, and place the code parse wants you to put into those functions in there. Example: Search for: - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { PLACE this inside: // Store the deviceToken in the current installation and save it to Parse. PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:newDeviceToken]; [currentInstallation saveInBackground]; Search For: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { Place this inside: [PFPush handlePush:userInfo]; Hope this makes sense! If you need more help, email me, we can do a fast teamviewer session. [email protected] Cheers, David https://buzztouchmods.com
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
05/15/13 12:41 PM (12 years ago)
Thanks David, Yes, it make sense and I have tried it but I am still getting errors: I am following you advise but still getting the errors: Use of undeclared identifier 'PFInstallation' Use of undeclared identifier 'currentInstallation' Use of undeclared identifier 'currentInstallation' Use of undeclared identifier 'currentInstallation' I have sent you an email with a screenshot if you could have a quick look it would be fantastic. Thanks for the Teamviewer session offer! Farcat
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
05/15/13 01:42 PM (12 years ago)
Thanks David, Problem sorted. If anybody read this, make sure you stick to the latest code from the official site (parse.com here). I copied and pasted from another source and got bad code. Farcat
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/15/13 01:50 PM (12 years ago)
Your welcome! Cheers, David https://buzztouchmods.com
 
eJucomm
Aspiring developer
Profile
Posts: 73
Reg: Nov 22, 2010
McAllen
730
like
06/01/13 01:30 PM (12 years ago)
David, these two lines of code saved the day!! After 5 forevers of trying to figure out what I was doing wrong and found this goldmine post and done!! Gracias.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
06/01/13 01:33 PM (12 years ago)
Don't you love that feeling when that happen? :)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/08/13 06:56 AM (12 years ago)
@ejucomm... no problem! @farcat - we all do ha! David https://buzztouchmods.com
 

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.