I've enabled push notifications for my phonegap app inside the AppDelegate.m
file. The line of code I'm using is from a video tutorial, since I don't really know OBJ-C, and it is giving me a Format String Issue. Here's the code along with the error.
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString *deviceTokenString = [NSString stringWithFormat:@"%@", deviceToken];
NSLog(deviceTokenString);}
Format is not string literal (potentially dangerous)
Knowing Javascript, I kind of understand what they mean by string literally but I'm not sure how to resolve it. Any ideas?