...
Blogios App DevelopmentSimplified 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”.
  • Select GeoJSON File from the dialog window.
  • Name the file as pushNotificationPayload.apns as shown in below image and then follow the next instruction to create it.
  • 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).
  • Now replace the file’s contents with the code below.


Creating digital solutions for your business

Subscribe

Subscribe to stay updated with our latest Tech News & Blogs

Copyright Synclovis System Pvt. Ltd. © 2024. All Rights Reserved