Is it possible to test push notification in mobile apps, such as android & ios, with an emulator rather than a physical device?
In this ( http://docs.telerik.com/platform/appbuilder/sample-apps/sample-backend-services-pushnotifications ) article, I learned that such testing was not possible from within the emulator. During a quick Google search, I noticed many other push-notification services couldn't be tested in the emulator.
I would like to be able to be able to test the push-notification feature without needing to posses a physical device, because I can't afford them.
iOS
You cannot test real push notifications on iOS Simulator because it does not support it. You would get this error if you tried to register for remote notifications:
NSCocoaErrorDomain Code=3010 "Remote notifications are not supported in the simulator"
You should try to debug the app on real device not on the simulator. However you can mock push notifications on iOS using this library.
Android
The Android emulator is capable of receiving push notifications through GCM, however, it does require an additional step of actually logging a valid Google account into the emulator when it is running. This will need to be done for each emulator that you wish to use with push notifications through GCM.