Can we test iOS push notification on Xcode 8 simulator without having programmer membership ?

23,111

Solution 1

No.

Push notifications go from your server to Apple's server to a device that registered for those notifications. That cannot work without Apple's cooperation somewhere in the middle, so a developer membership is needed.

Solution 2

Upgrade your machine to Catalina OS, download Xcode 11.4.

Collect simulator device identifier, bundle identifier and .apns file

Add this test content in .apns file

{ "aps":{ "alert":"Test drop", "sound":"default", "badge":3 } }

Run this command : xcrun simctl push <.apns file name>

Example : xcrun simctl push 8E1C327E-4B05-4190-AEA1-0646E73A3A49 com.Pushnotification test.apns

And run this command

Reference has taken from this link

Share:
23,111
Shreekant
Author by

Shreekant

Researcher Programmer Photographer Traveler "I do not know what I may appear to the world, but to myself I seem to have been only like a boy playing on the seashore, and diverting myself in now and then finding a smoother pebble or a prettier shell than ordinary, whilst the great ocean of truth lay all undiscovered before me". Isaac Newton

Updated on July 09, 2022

Comments

  • Shreekant
    Shreekant over 1 year

    I am just a beginner and trying to implement push notification in my app, but not getting any proper guide. The main problem is that I don't have the programmer membership. If it is possible to do without having actual membership, please explain it in clear and straight forward way.