Push Notifications with Parse,com
Since I don;t know XCode and project structure very well I could use some help. I exported xcodeproj form tiggzi and imported into XCCode 4.5.x
Below instructions from parse,com on code implementation, 2 simple snippets to add.
1) ==from parse==
Open up your AppDelegate.m file and add the following import to the top of the file:
#import
Then paste the following inside the application:didFinishLaunchingWithOptions: function:
[Parse setApplicationId:@"personalkeyidapp"
clientKey:@"personalclientkeyhere"];
=============
QUESTION: does it go into phonegaptemplate.m file?
2) ==from parse - testing procedure==
Add the following code to your main app delegate class and inspect the error given:
(void)application:(UIApplication *)application
didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
{
if ([error code] == 3010) {
NSLog(@"Push notifications don't work in the simulator!");
} else {
NSLog(@"didFailToRegisterForRemoteNotificationsWithError: %@", error);
}
}QUESTION: I can't locate this method, where do I find it?