jyjeanne/ai-setup-forge/push-notifications-setup

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

To implement remote push notifications to engage users, using Expo Notifications service (FCM for Android, APNs for iOS). Use when: To inform users of updates, messages, or alerts; To re-engage users who haven''t opened the app recently.

Install

npx vskill@latest install jyjeanne/ai-setup-forge/push-notifications-setup

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/push-notifications-setup.

Purpose

To implement remote push notifications to engage users, using Expo Notifications service (FCM for Android, APNs for iOS).

When to Use

  • To inform users of updates, messages, or alerts.
  • To re-engage users who haven't opened the app recently.

Procedure

1. Configuration (Expo)
  1. Install: npx expo install expo-notifications expo-device expo-constants.
  2. App.json: Configure extra.eas.projectId.
2. Permission & Token Retrieval

Create a hook to get the Expo Push Token:

tsx
async function registerForPushNotificationsAsync() {
if (Platform.OS === 'android') {
await Notifications.setNotificationChannelAsync('default', {
name: 'default',
importance: Notifications.AndroidImportance.MAX,
});
}
const { status } = await Notifications.requestPermissionsAsync();
if (status !== 'granted') return;
const token = (await Notifications.getExpoPushTokenAsync()).data;
return token; // Send this to your backend
}
3. Handling Notifications
  1. Foreground:

``tsx Notifications.setNotificationHandler({ handleNotification: async () => ({ shouldShowAlert: true, shouldPlaySound: true, shouldSetBadge: false, }), }); ``

  1. Background/Interaction: Add listeners:
  • addNotificationReceivedListener: Triggered when received.
  • addNotificationResponseReceivedListener: Triggered when user taps the notification.
4. Sending (Backend)

Send requests to https://exp.host/--/api/v2/push/send.

json
{
"to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"title": "hello",
"body": "world"
}

Constraints

  • Credentials: You must upload APNs Key (iOS) and FCM Server Key (Android) to Expo dashboard/EAS.
  • Testing: Push notifications generally do NOT work on Simulators; use a physical device.

Expected Output

A system where the device receives a token, sends it to the server, and the server can trigger a notification appearing on the device.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/push-notifications-setup/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/push-notifications-setup)

Something wrong with this skill or its page? Tell us.