This skill provides guidelines for implementing and troubleshooting push notifications across various mobile platforms, including iOS, Android, React Native, Expo, and Flutter. It is useful for developers looking to enhance their mobile apps' notification systems.
$ npx skills add https://github.com/clix-so/skills --skill push-notification-best-practicesPush Notification Best Practices provides developers with platform-specific guidance for implementing push notifications on iOS and Android. The skill covers APNS configuration for iOS, FCM setup for Android, and integration patterns for React Native, Expo, and Flutter. It addresses token management, message handling, background and foreground notification processing, and deep linking implementation. Developers use this skill when setting up push notifications, debugging delivery issues, configuring platform-specific handlers, or troubleshooting token and routing problems across mobile platforms.
Install using the command `$ npx skills add https://github.com/clix-so/skills --skill push-notification-best-practices`
Implementing push notifications in iOS applications using APNS.
Troubleshooting push notifications in Android using FCM.
Managing tokens for push notifications across platforms.
Handling message delivery and click actions in mobile apps.
$ npx skills add https://github.com/clix-so/skills --skill push-notification-best-practicesgit clone https://github.com/clix-so/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Provide best practices for implementing push notifications in [PLATFORM] (e.g., iOS, Android, React Native, Expo, or Flutter) for [COMPANY]'s [APP_NAME] app. Include setup steps, payload structure, and troubleshooting tips for [SPECIFIC_ISSUE].
### Push Notification Best Practices for React Native (Expo)
#### **1. Setup & Configuration**
- **Expo Push Notifications**: Ensure `expo-notifications` is installed (`expo install expo-notifications`).
- **Credentials**: Upload your iOS `.p8` key and Android `server_key` to Expo’s push notification service.
- **Device Registration**: Call `Notifications.getExpoPushTokenAsync()` to register devices.
#### **2. Payload Structure**
Use this template for testing:
```json
{
"to": "ExpoPushToken[...]",
"title": "Order Update",
"body": "Your order #12345 is out for delivery!",
"data": {
"orderId": "12345",
"deepLink": "order/12345"
}
}
```
#### **3. Troubleshooting Common Issues**
- **Android**: Check `Firebase Cloud Messaging (FCM)` server key validity.
- **iOS**: Verify APNs certificate expiration in Apple Developer Portal.
- **Expo**: Use `expo push:send` CLI to test notifications.
#### **4. User Permissions**
- Request permissions with `Notifications.requestPermissionsAsync()`.
- Handle opt-out gracefully (e.g., store user preference in `AsyncStorage`).
#### **5. Testing & Debugging**
- Use **Expo’s Push Notification Tool** to simulate notifications.
- Check Expo logs for errors (`expo log` or `expo start --clear`).
Need help with a specific error? Share the logs!Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan