Can I receive a push notification on a simulator or emulator?
This depends on your target platform:
- If your target platform is iOS, you cannot receive a push notification on the iOS simulator. In this instance, you must test push notifications on a physical device.
- If your target platform is Android, you can test a push notification on an emulator if the emulator target uses a version of Google APIs to receive the push notifications.
To test push notifications on a device, you must first register your device as a QA device in Swrve. In addition, your development team must have performed the required technical prerequisites. In particular, they must have configured the following:
- To enable an app to send push notifications to iOS devices, they must create an iOS push certificate and upload it to Swrve.
- To enable an app to send push notifications to Google Play devices, they must create an Android server key and input it into Swrve.
For more information about push notifications, see Intro to push notifications.