Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files

Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files

Ways of testing push notifications in the iOS Simulator

  • Dragging and Dropping the APNs File
  • Using the Command Line
  • Press Control on the keyboard and click anywhere in the Xcode Project bundle to and then click on add a “New  File”.
Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files
  • Select GeoJSON File from the dialog window.
Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files
  • Name the file as pushNotificationPayload.apns as shown in below image and then follow the next instruction to create it.
Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files
  • Xcode will add the extension .geojson to the file. Change the extension to .apns. The pushNotificationPayload file is a certificate for the Apple Push Notification service(APNs).
Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files
  • Now replace the file’s contents with the code below.
Simplified Testing of Push Notifications in iOS Simulator with JSON .apns Files

Discover more from Synclovis Systems

Subscribe to get the latest posts sent to your email.


Leave a Reply

  • About Us
  • Services
  • Industries
  • Solutions
  • Technologies
  • Portfolio
  • Blog