This sample app demonstrates the integration of the Pushwoosh Expo plugin and tests notification delivery on iOS and Android platforms.
It is designed to showcase the capabilities of Pushwoosh without the need for extensive setup.
- Register/unregister device to receive notifications
- Send test notifications using our sample project without the need to set up your project in control panel or Firebase console
- Enable/disable server communication with Pushwoosh
- Set custom user ID for a device
- Send events
- Set custom and default languages for a device
- Set tags
- Set emails for a user or a device
- Get HWID to clipboard
- Get push token to clipboard
- Get user ID to clipboard
- Project created in Firebase console
- Encryption key and key ID from Apple
- Application in Pushwoosh control panel with Android and iOS platforms configured. Android Firebase configuration iOS token-based configuration
- Node.js and npm (or yarn)
- Expo CLI
- Expo Go app for mobile devices
- Android Studio
- Xcode
- Install dependencies
npm install
- Connect your app to Pushwoosh and Firebase
Enter the app ID from Pushwoosh control panel and FCM sender ID:
L85 pushwoosh-expo-sample/app/_layout.tsx:
Place the google-services.json in the root directory of the app:
- Prebuild
npx expo prebuild
- iOS platform only: ensure that the push notification capability is enabled in your project, and that "Remote Notifications" is selected under "Background Modes":
Sign the app:
- Start the app with the test device connected to your machine
Android:
npx expo run:android
iOS:
npx expo run:ios
- Allow the application to send notifications
- Send a test notification.
If you have any questions, feel free to contact us at help@pushwoosh.com or open an issue in this repository 🤝