A demo of the Pushy SDK for Cordova integrated into a sample Cordova app.
Pushy is the most reliable push notification gateway, perfect for real-time, mission-critical applications.
This app registers your device to receive push notifications and assigns it a unique token, which you can copy and paste into the demo page to send yourself a test push notification on both Android and iOS.
Visit our documentation to integrate Pushy into your existing Cordova app.
- Clone the repository locally:
git clone https://github.com/pushy/pushy-demo-cordova.git
- Run
cd pushy-demo-cordova
- Run
cordova platform add ios && cordova platform add android
to add both Android & iOS platforms
- Run
cordova run android
to run the project on an Android device - Observe the Android logcat (
adb logcat *:S chromium
) for the Pushy device token and paste it into the demo page to send yourself a test notification
- Run
open platforms/ios/*.xcworkspace
to open the iOS project in Xcode and set the Signing Team in the "Pushy" target to your own development team - Connect your iOS device via USB
- Run
cordova run ios
- Copy the device token from the Console utility (select your device and search for "Pushy device token") and paste it into the demo page to send yourself a test notification