A demo of the Pushy SDK for React Native integrated into a sample React Native 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 React Native app.
- Make sure you have an up-to-date version of the React Native CLI installed:
npm install -g react-native-cli
- Clone the repository locally:
git clone https://github.com/pushy-me/pushy-demo-react-native.git
npm installto install the React Native dependencies
- For Android, run
react-native run-androidto run the app on either an emulator or a connected Android device
- For iOS, open the
ios/Pushy.xcodeprojin Xcode, select your physical device, update the Signing Team in the project properties, and press Run to run the app on your iOS device
- Copy the device token from the Xcode console and paste it into the demo page to send yourself a test notification