Search This Blog

Showing posts with label push notification. Show all posts
Showing posts with label push notification. Show all posts

Tuesday, 18 March 2014

Generate PEM certificate from P12 certificate

Open terminal and go to the path where you place p12 certificate and run this complete below command:

openssl pkcs12 -in certificateName.p12 -out certificateName.pem -nodes

iOS Local Notifications

Here we have sample code for local notification

    UILocalNotification *notification = [[UILocalNotification alloc] init];
    notification.alertBody =@"Test Message";
    notification.soundName = UILocalNotificationDefaultSoundName;
    

    [[UIApplication sharedApplication] presentLocalNotificationNow:notification];