Discussion Forums  >  Uncategorized

Replies: 41    Views: 276

kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
02/04/12 09:46 AM (14 years ago)

parse implementation issue

Hello, Could some one please share the IOS appdelegate file .. Test is working fine and compile is fine. But not showing any options for messages. Seems to be I need to add more code for appdelegate file .. tried to adding from the help docs .. did not help much thanks,
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/04/12 10:26 AM (14 years ago)
When you say 'not showing any options for messages' what do you mean?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/04/12 11:03 AM (14 years ago)
The appdelegate.m / .h file is different in your app and not the same as all the others. This just means we cannot share one with you because it won't do you any good. This file is created for your project when you download the source code.
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/04/12 11:20 AM (14 years ago)
@MacApple - was not able to test after sending the test message from the site . I have installed the app on the iphone with devt setup. @David - I know there are some differences, but I am not going to use the way it is , just use it as reference and add the code needed
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/06/12 05:11 AM (14 years ago)
MacApple - Could you please share some tips or code .. I am still struck with it.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/06/12 06:07 AM (14 years ago)
I'll shout back tonight and see if you have managed to get it working, busy all day today but will check back in.
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 06:22 PM (14 years ago)
MacApple - I am still here . Would you please help me out. Best
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 06:24 PM (14 years ago)
Hey, Sorry, crazy week. You want to hook up tomorrow AM? I'm on EST.
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 06:57 PM (14 years ago)
yes.. I am also on EST... if you could send me the delegate file .. I will try again. I got the base test working and I can see the test is successful. P Thanks
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 07:01 PM (14 years ago)
Right. If you got that working you are not too far. Remember when you generate / create the live certificate in Apple you have to download the new release cert into Xcode. This involves editing the existing one, no need to make changes, then download it and deploy to Xcode. What part of the implementation are you stuck at?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 07:04 PM (14 years ago)
I am just not able to get the push notification working in devt environment.. got the certificates setup one for prod and another for dev. I can see the test object created in parse site, but not able to do anything after that like sending push message and see in the app ... setting section to turn off/turn on . I have the certificates added to the organizer.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 07:10 PM (14 years ago)
OK. We'll get this working tomorrow, promise. You added the additional code in Parse tutorial after getting the test object?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 07:22 PM (14 years ago)
that's where I am struck .. that's the reason asked for the sample delegate file .. so I can compare and add it
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 07:25 PM (14 years ago)
I hear you. What part of the code are you struggling to place?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 07:27 PM (14 years ago)
as of now I have placed only 3 lines of code that parse gave and all the references needed .. not sure what else to add , checked their docs and API .. there is lot of code , not sure what exactly I need to add :)
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 07:30 PM (14 years ago)
OK. Let's reconvene in the AM, that cool?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/10/12 07:30 PM (14 years ago)
yes.. sounds good
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/12 07:38 PM (14 years ago)
Good man. Ping me around 10.
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 08:14 AM (14 years ago)
I am here.. let me know when you
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 09:28 AM (14 years ago)
Hey. OK, in your main appDelegate.m directly below this: didFinishLaunchingWithOptions this method fires when the application first launches. This is different than when it becomes the active application in a multi-tasking environment */ You have added: - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { // Tell Parse about the device token. [PFPush storeDeviceToken:newDeviceToken]; // Subscribe to the global broadcast channel. [PFPush subscribeToChannelInBackground:@]; } Yes?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 10:59 AM (14 years ago)
yes.. this block is after didFinishLaunchingWithOptions //parse start - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { // Tell Parse about the device token. [PFPush storeDeviceToken:newDeviceToken]; // Subscribe to the global broadcast channel. [PFPush subscribeToChannelInBackground:@]; } - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [PFPush handlePush:userInfo]; } - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { if ([error code] == 3010) { NSLog(@Push notifications don't work in the simulator!); } else { NSLog(@didFailToRegisterForRemoteNotificationsWithError: %@, error); } } //parse end have these lines in didFinishLaunchingWithOptions allowedInputCharacters = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@!$; //parse start [Parse setApplicationId:@id clientKey:@key]; [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge| UIRemoteNotificationTypeAlert| UIRemoteNotificationTypeSound]; //parse end
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 11:11 AM (14 years ago)
7919:707] didFailToRegisterForRemoteNotificationsWithError: Error Domain=NSCocoaErrorDomain Code=3000 no valid 'aps-environment' entitlement string found for application UserInfo=0x2bd1d0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application} Here is the error now . checked code sign to match app developer for debug, and production for distribution
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 11:34 AM (14 years ago)
OK. and you have this: [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge| UIRemoteNotificationTypeAlert| UIRemoteNotificationTypeSound]; directly below this line in you appDelegate.m //init the allowed input characters string. ONLY these characters will be allowed in input fields. allowedInputCharacters = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@!$; and you have: #import Parse/Parse.h in your main appDelegate.h Yes?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 11:49 AM (14 years ago)
yes. I have them
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 11:52 AM (14 years ago)
OK. Didn't see the error you posted earlier in thread, there is an issue with your certs, it isn't recognizing a valid push cert.
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 12:13 PM (14 years ago)
I am totally lost .. read the manuals for this .. created ..looks okay from the developer account and certificates.. would you be able to verify with joinme.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 12:21 PM (14 years ago)
OK. I think that error shows you that the Push code in Xcode is working but it cannot find a valid working cert. Have you tried wiping out the certs and redeploying them?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 12:39 PM (14 years ago)
Would you like me to delete every thing from developer account and key chain. and start fresh .. I can try again, not sure if I am doing something wrong .. I have done 3 times so far.. go to point where app is getting validated for upload .. game center working .. just only push is having the issue
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 12:43 PM (14 years ago)
give me hint on your email.. will send my setup from developer and key chain screen shots..
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 12:46 PM (14 years ago)
I'm not saying that is a definite fix but if you have all the code in the right place and that error is being thrown up something isn't right with the cert, in my opinion anyway. Was suggesting killing the push certs and redoing them. Then quickly edit the main distribution cert you use and redeploy that, it has to be updated after implementing push. Even without editing it, open it change something then back again and redownload. You did all that, yeah? You see what I mean? If all code is in correct place, you managed to get the object saved etc and then added the second two snippets of code in the right place it should work but error says it can't hit a valid 'aps-environment'
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 12:55 PM (14 years ago)
that's where I am lost .. close to 2 weeks struggling to get certificates things working properly .. thought got to a point , but seems not ... all debug messages went fine, I ca nsee more then 60 messages during my debugging in parse site when I try the app .. that;s the error
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 02:28 PM (14 years ago)
I hear you. Drop me your email and if you want i'll send you an app with Push working so you can check off code etc, cool?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 06:21 PM (14 years ago)
please send me to chandra exforsys dot com , thanks for helping me
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 06:23 PM (14 years ago)
Welcome. Not sure about that email. email me at keith at aipple dot com
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/11/12 06:26 PM (14 years ago)
Ps. Keep the project to yourself, cool? Good luck!
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/11/12 06:48 PM (14 years ago)
Yes. It's clear. Thanks,
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/12/12 08:56 AM (14 years ago)
How did you get on?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
02/12/12 09:05 AM (14 years ago)
just about to get started ..
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/12/12 09:06 AM (14 years ago)
Good stuff.
 
Chacka7
buzztouch Evangelist
Profile
Posts: 113
Reg: Oct 29, 2011
London
1,330
like
03/16/12 04:53 AM (13 years ago)
Has anyone managed to successfully install push into an Android project using parse.com yet? I believe all of the above refers to IOS. Going to try and install on Android this weekend (as long as I am not too hungover from Paddys day!) :) Just wondering if anyone had any major issues that I could look out for. Thx :)
 
jonathanmiami
I hate code!
Profile
Posts: 20
Reg: Dec 09, 2010
Miami
200
like
04/05/12 03:54 PM (13 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!!
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/19/12 06:22 PM (13 years ago)
Thanks for all the posts here guys, I managed to get this working on my iOS app in an afternoon. Has anyone implemented any of the other features available in Parse?
 

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.