Discussion Forums  >  Uncategorized

Replies: 25    Views: 306

XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
01/20/12 06:00 PM (12 years ago)

Does PARSE work?

Does parse push notifications service work? when i get to the last part to test it Code is: PFObject *testObject = [PFObject objectWithClassName:@TestObject]; [testObject setObject:@bar forKey:@foo]; [testObject save]; Where do i add that to my buzztouch project? The tutorial is here https://www.parse.com/apps/quickstart#ios/existing
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 06:42 AM (12 years ago)
Parse works, yes. If you are using a splash screen you can drop that test code in there after the '//viewDidLoad'
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 06:45 AM (12 years ago)
Where do i add that code? How do i get my device token? may i ask for you to help me?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 06:50 AM (12 years ago)
I just told you where you can add the code. Parse generates the device token for you, well the code does. I am helping you.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 06:58 AM (12 years ago)
but where do i add everything? appdelegaete.m or .h? Please help me out, i might pay also!
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 07:05 AM (12 years ago)
Have you setup your provisioning profiles? When it asks you to insert code after something you can search in xcode for that line of code, that'll help you. appdelegate.m is where you have the 'didFinishLaunchingWithOptions' isnt it?
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 07:06 AM (12 years ago)
yes, i did that. still can't seem to get it working. will you join my session over team viewer or join.me and see? it will only take a couple of seconds
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 07:36 AM (12 years ago)
are you Free now?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 07:38 AM (12 years ago)
What step are you having trouble with? The Parse guide is only 3 or 4 steps and I told you above where to put the code.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 07:57 AM (12 years ago)
I really don't know, you can took a look here ( PLEASE ) If you could join and look quickly and then see... ( i am in a RUSH SORT OF Because I'm not at home, and I'm using 3G on my laptop) here https://join.me/899-552-807
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:03 AM (12 years ago)
How about you wait until you get home on a proper connection then. You could always ask the Parse support guys as well.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:04 AM (12 years ago)
I asked them... they don't help, could you please join me? i am on the last part, and it would take 2 seconds for you to see... Please? https://join.me/899-552-807
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:06 AM (12 years ago)
Parse wouldn't help you? What did they say? Post your errors here, others can learn that way, you know? I'm not going to view a laptop on a flaky 3G connection.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:09 AM (12 years ago)
when i am adding this - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { // Tell Parse about the device token. [PFPush storeDeviceToken:newDeviceToken]; // Subscribe to the global broadcast channel. [PFPush subscribeToChannelInBackground:@]; } i get { Expected identifier and here [PFPush subscribeToChannelInBackground:@]; Expected an Objective-C directive after '@' and @end @end must appear in an @implementation context
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:13 AM (12 years ago)
Where did you add that, right after 'didFinishLaunchingWithOptions'? Did you also import the Parse.h ?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:13 AM (12 years ago)
You didn't tell me why Parse didn't help you, what did they say?
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:14 AM (12 years ago)
parse.h? I just added the framework like it says. -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge| UIRemoteNotificationTypeAlert| UIRemoteNotificationTypeSound];
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:15 AM (12 years ago)
They said i can't provide any assistance
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:17 AM (12 years ago)
Who told you that at Parse? It worries me that you don't recognise the '#import <Parse/Parse.h>' comment.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:18 AM (12 years ago)
oh, sorry, #import <Parse/Parse.h> i added that to main.m I forgot, i did add it. How do i get rid of those errors? if you want to see... just take a quick look here, it won't lag https://join.me/899-552-807
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:21 AM (12 years ago)
Who told you at Parse they wouldn't help, last time I'm going to ask mate, sorry and no I'm not going to join you.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:23 AM (12 years ago)
i sent them a message, and the said we don't provide any personal assistance. thats why I'm asking you for help.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:30 AM (12 years ago)
I think i got it! so, do i have to save the ipa to my desktop, then add the ipa to my phone? then send a notification?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/21/12 08:33 AM (12 years ago)
No. Plug in your iphone, run the app on your iphone then send a notification. It should ask you on launch if you want to allow notifications. My cat just threw up on an expensive rug, I'm off to clean that.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
01/21/12 08:35 AM (12 years ago)
ok, i will try that, and see if it asks for push notifications
 
jonathanmiami
I hate code!
Profile
Posts: 20
Reg: Dec 09, 2010
Miami
200
like
04/05/12 03:53 PM (12 years ago)
I have follow all the steps and my app runs fine but still does not show any push notifications or errors anywhere...please help!!
 

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.