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.