Skip to content
Back to skills

Push Notifications

ASecurity

Implements mobile push notifications with well-timed permission requests and deep-linking notification categories; use when implementing push notifications, handling notification permissions, or debugging delivery.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentstypescriptgodebugging

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add sawrus/agent-guides --skill push-notifications --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Push Notifications?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Push Notifications
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sawrus-push-notifications/badge)](https://www.skillsdirectory.com/skills/sawrus-push-notifications)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: push-notifications
description: "Implements mobile push notifications with well-timed permission requests and deep-linking notification categories; use when implementing push notifications, handling notification permissions, or debugging delivery."
---

# Skill: Push Notifications

## When to load

When implementing push notifications, handling notification permissions, or debugging delivery.

## Permission Request (Ask at Right Moment)

```typescript
// ❌ Never ask at app launch
// ✅ Ask when user understands the value
async function requestNotificationPermission(context: string): Promise<boolean> {
  // Show custom pre-permission explanation first
  const userAgreed = await showNotificationExplanation(context);
  if (!userAgreed) return false;

  const { status } = await Notifications.requestPermissionsAsync();
  return status === 'granted';
}
```

## Notification Categories (Deep Link on Tap)

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

// Handle tap → navigate to correct screen
Notifications.addNotificationResponseReceivedListener(response => {
  const data = response.notification.request.content.data;
  if (data.type === 'order_update') {
    navigationRef.navigate('OrderDetail', { orderId: data.order_id });
  }
});
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.