Add Onesignal Push logo

Add Onesignal Push

Community
khadinakbarlabs
add-onesignal-push

Add advanced push notifications via OneSignal in RN + Expo with segmentation, A/B testing, and re-engagement campaigns. Use when the user says 'add onesignal', 'better push notifications', 'push segmentation', 'push a/b test', 'reengagement push'.

Overview

Publisherkhadinakbarlabs
Repositoryexpo-mobile-app-builder
Skill nameadd-onesignal-push
Stars
3
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by khadinakbarlabs on GitHub. Read the source before you install it.

Installation

Install the Add Onesignal Push AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/add-onesignal-push
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/khadinakbarlabs/expo-mobile-app-builder.git /tmp/expo-mobile-app-builder
mkdir -p .claude/skills
cp -r /tmp/expo-mobile-app-builder/skills/add-onesignal-push .claude/skills/add-onesignal-push
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Add Onesignal Push in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Add Onesignal Push on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Add Onesignal Push is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Add OneSignal Push (advanced beyond expo-notifications)

expo-notifications is fine for basic push. OneSignal adds: segmentation, A/B test, scheduled campaigns, automation triggers.

When to use which

NeedTool
Send push to a single user from your backendexpo-notifications + Expo Push API
Send to all users / a segmentOneSignal
Triggered campaigns (e.g., "didn't open in 3 days")OneSignal
A/B test push copyOneSignal
In-app messages (overlays, not just push)OneSignal

Install

bash
pnpm add onesignal-expo-plugin react-native-onesignal

In app.json:

json
{
  "expo": {
    "plugins": [
      [
        "onesignal-expo-plugin",
        {
          "mode": "production",
          "iosNSEFilePath": "./assets/onesignal/NotificationServiceExtension.m"
        }
      ]
    ]
  }
}

Init (App.tsx)

tsx
import { OneSignal } from 'react-native-onesignal';

OneSignal.initialize('YOUR_ONESIGNAL_APP_ID');

// Request permission (use after onboarding, not at app start)
OneSignal.Notifications.requestPermission(true);

// Tag user properties for segmentation
OneSignal.User.addTags({
  plan: 'pro',
  signup_date: '2026-01-15',
  language: 'en',
});

// Set external ID (your backend user ID)
OneSignal.login(user.id);

Segmentation

In OneSignal dashboard, create segments:

  • "Trial users (first 7 days)"
  • "Paying users"
  • "Churned users (no open in 14d)"
  • "iOS users on iOS 18+"
  • "EN users"

Then send campaigns to specific segments.

Triggered campaigns (the killer feature)

Examples:

  • "User completed onboarding but didn't return in 24h" → "Don't forget to log your first meal!"
  • "Trial ends in 24h and user hasn't subscribed" → "Last chance — your trial ends tomorrow"
  • "User opened app 3+ times this week" → "You're on fire! Try this advanced feature."
  • "User hasn't opened in 14 days" → "We miss you. Here's what's new."

Configure in OneSignal -> Messages -> Automation.

A/B testing copy

Variant A: "Your streak is at 7 days. Keep it going!"
Variant B: "🔥 7-day streak! Tap to extend."

OneSignal sends each to 50%, picks winner after 24h based on open rate.

In-app messages (not push)

For users who are IN the app: overlays, banners, modals.

Use case: announce a new feature when user opens the home screen for the 5th time.

Privacy

  • Add OneSignal to your Privacy Manifest (privacy-manifest-rn)
  • Mention OneSignal in Privacy Policy
  • OneSignal is GDPR-compliant, has DPA in dashboard
  • Don't tag PII (no email, phone) — use external ID only

Cost

  • Free tier: 10k subscribers, unlimited push
  • Pro: $9/mo + usage above thresholds
  • Indie apps usually stay free until 10k installs

Common gotchas

  • Forgetting NSE (Notification Service Extension) for rich push (images, action buttons)
  • Asking for push permission too early = denied 80%+
  • Push permission denied = can't ask again unless user goes to Settings
  • Best practice: use custom pre-prompt screen explaining VALUE before showing system dialog

Pair with

  • add-expo-notifications for basic push (combine: use expo for transactional, OneSignal for marketing)
  • add-deep-links so push opens specific screen
  • add-posthog-rn to measure push → engagement → conversion

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Add Onesignal Push AI skill do?

Add advanced push notifications via OneSignal in RN + Expo with segmentation, A/B testing, and re-engagement campaigns. Use when the user says 'add onesignal', 'better push notifications', 'push segmentation', 'push a/b test', 'reengagement push'.

Why use Add Onesignal Push on TypingMind?

Because you install it once and use it with any model. Add Onesignal Push is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Add Onesignal Push in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/khadinakbarlabs/expo-mobile-app-builder/tree/main/skills/add-onesignal-push. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Add Onesignal Push?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Add Onesignal Push?

As many as you like. As long as a model supports skills, you can use Add Onesignal Push with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Add Onesignal Push AI skill free?

Yes. It is published on GitHub by khadinakbarlabs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇