Send push notifications to iOS and Android devices from your Convex backend
Push Notifications
a0 provides built-in push notification delivery through FCM (Android) and APNs (iOS). Your Convex backend sends notifications via a0’s API — no third-party push services needed.
Push notifications do NOT work in Expo Go or the a0 preview app.
Test with a custom APK (Android) or TestFlight build (iOS).
How it works
Your app collects device push tokens using expo-notifications
Your Convex backend calls internal.notifications.sendNotification
a0 detects the platform from the token and delivers via FCM or APNs
The convex/notifications.ts file is automatically included in your project. It’s an internal action — only your server-side Convex functions can call it, not the client.
Getting a device push token
Use getDevicePushTokenAsync() from expo-notifications — notgetExpoPushTokenAsync():
import * as Notifications from "expo-notifications";async function registerForPushNotifications() { const { status } = await Notifications.requestPermissionsAsync(); if (status !== "granted") return null; const { data: token } = await Notifications.getDevicePushTokenAsync(); return token; // Save this to your Convex database}
Sending notifications
Call sendNotification from your Convex backend using internal (not api):
import { internal } from "./_generated/api";// From a mutation — schedule it since mutations can't call actions directlyawait ctx.scheduler.runAfter(0, internal.notifications.sendNotification, { to: devicePushToken, title: "New Message", body: "You have a new message", data: { screen: "chat", chatId: "abc123" },});// From an action — call directlyawait ctx.runAction(internal.notifications.sendNotification, { to: [token1, token2, token3], title: "Announcement", body: "Check out our new feature!", badge: 1,});
Upload both in Project Settings → Build Settings → Android Credentials
Create a new APK build
iOS Setup
iOS push notifications are configured per Apple Developer team:
Connect your Apple Developer account via the Publish → App Store flow
Set up APNs credentials (automatic or manual) from the team management dialog
Create a new App Store / TestFlight build
The aps-environment entitlement is included automatically in all builds.
Handling notifications in your app
import * as Notifications from "expo-notifications";Notifications.setNotificationHandler({ handleNotification: async () => ({ shouldPlaySound: true, shouldSetBadge: true, shouldShowBanner: true, shouldShowList: true, }),});// When user taps a notificationNotifications.addNotificationResponseReceivedListener((response) => { const data = response.notification.request.content.data; // Navigate based on data});
Troubleshooting
Issue
Fix
”no valid aps-environment entitlement”
Create a new build — older builds may not include this entitlement
”BadDeviceToken”
Device token expired or from wrong environment — get a fresh token
”Firebase service account is not configured”
Upload credentials in Build Settings → Android Credentials
”APNs credentials are not configured”
Set up APNs key in Publish → App Store → team management
Notifications not received
Must test on TestFlight (iOS) or custom APK (Android), not Expo Go
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"a0.dev Docs","colors":{"primary":"#3579FF","light":"#3579FF","dark":"#032CFF"},"logo":{"light":"https://mintcdn.com/a0dev/mgZ85r1zTikFn1BJ/logo/black.svg?fit=max\u0026auto=format\u0026n=mgZ85r1zTikFn1BJ\u0026q=85\u0026s=b81996e0e0b3ba904a96a5c4be77b03e","dark":"https://mintcdn.com/a0dev/mgZ85r1zTikFn1BJ/logo/white.svg?fit=max\u0026auto=format\u0026n=mgZ85r1zTikFn1BJ\u0026q=85\u0026s=90943ebe1a2871f9005776aa24b65aa6"},"favicon":"/favicon.ico","navbar":{"links":[{"href":"https://a0.dev/discord","label":"Discord Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://a0.dev"}},"footer":{"socials":{"x":"https://x.com/a0dev","reddit":"https://reddit.com/r/a0dev","discord":"https://a0.dev/discord"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"house","href":"https://a0.dev"},{"anchor":"Discord","icon":"discord","href":"https://a0.dev/discord"},{"anchor":"Reddit","icon":"reddit","href":"https://a0.dev/reddit"},{"anchor":"Blog","icon":"newspaper","href":"https://a0.dev/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"a0dev","hasAudioNarration":false,"actualSubdomain":"a0dev","customDomains":["docs.a0.dev"],"gitSource":{"type":"github","owner":"teehee-tech","repo":"a0","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae92b3538209ab1c633d082:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"Development","count":10},{"language":"default","tag":"Publishing","count":9},{"language":"default","tag":"iOS","count":7},{"language":"default","tag":"Testing Your App","count":5},{"language":"default","tag":"Agent Guide","count":4},{"language":"default","tag":"Setup Account","count":3},{"language":"default","tag":"Submit to App Store","count":3},{"language":"default","tag":"Monetization","count":2},{"language":"default","tag":"Over the Air Updates","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"development/push-notifications","slug":"/development/push-notifications","pageMetadata":{"title":"Push Notifications","description":"Send push notifications to iOS and Android devices from your Convex backend","href":"/development/push-notifications","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send push notifications to iOS and Android devices from your Convex backend\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`push-notifications`,children:`Push Notifications`}),`\n`,_jsx(_components.p,{children:`a0 provides built-in push notification delivery through FCM (Android) and APNs (iOS). Your Convex backend sends notifications via a0’s API — no third-party push services needed.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Push notifications do NOT work in Expo Go or the a0 preview app.\nTest with a custom APK (Android) or TestFlight build (iOS).`})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Your app collects device push tokens using `,_jsx(_components.code,{children:`expo-notifications`})]}),`\n`,_jsxs(_components.li,{children:[`Your Convex backend calls `,_jsx(_components.code,{children:`internal.notifications.sendNotification`})]}),`\n`,_jsx(_components.li,{children:`a0 detects the platform from the token and delivers via FCM or APNs`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`convex/notifications.ts`}),` file is automatically included in your project. It’s an `,_jsx(_components.strong,{children:`internal action`}),` — only your server-side Convex functions can call it, not the client.`]}),`\n`,_jsx(Heading,{level:`2`,id:`getting-a-device-push-token`,children:`Getting a device push token`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`getDevicePushTokenAsync()`}),` from `,_jsx(_components.code,{children:`expo-notifications`}),` — `,_jsx(_components.strong,{children:`not`}),` `,_jsx(_components.code,{children:`getExpoPushTokenAsync()`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` * `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Notifications `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"expo-notifications\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` registerForPushNotifications() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { status } = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Notifications.requestPermissionsAsync();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (status !== `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"granted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { data: token } = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Notifications.getDevicePushTokenAsync();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Save this to your Convex database`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`sending-notifications`,children:`Sending notifications`}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`sendNotification`}),` from your Convex backend using `,_jsx(_components.code,{children:`internal`}),` (not `,_jsx(_components.code,{children:`api`}),`):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { internal } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"./_generated/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// From a mutation — schedule it since mutations can't call actions directly`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ctx.scheduler.runAfter(0, internal.notifications.sendNotification, {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` to: devicePushToken,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` title: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"New Message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You have a new message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data: { screen: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, chatId: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// From an action — call directly`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ctx.runAction(internal.notifications.sendNotification, {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` to: [token1, token2, token3],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` title: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Announcement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Check out our new feature!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` badge: 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Argument`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`to`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | string[]`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Device push token(s)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Notification title`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`body`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Notification body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Record\u003cstring, string | number | boolean | null>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Custom data payload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`badge`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`App icon badge count (iOS)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`android-setup`,children:`Android Setup`}),`\n`,_jsxs(_components.p,{children:[`Follow the `,_jsx(_components.a,{href:`/development/android-fcm-setup`,children:`Android FCM Setup guide`}),` to configure Firebase Cloud Messaging credentials:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a `,_jsx(_components.a,{href:`https://console.firebase.google.com/`,children:`Firebase project`}),` and add your Android app`]}),`\n`,_jsx(_components.li,{children:_jsxs(_components.a,{href:`/development/android-fcm-setup#step-2-download-google-servicesjson`,children:[`Download `,_jsx(_components.code,{children:`google-services.json`})]})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/development/android-fcm-setup#step-3-create-a-firebase-service-account-key`,children:`Create a Firebase service account key`}),` (for FCM v1 delivery)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/development/android-fcm-setup#step-4-upload-to-a0`,children:`Upload both`}),` in `,_jsx(_components.strong,{children:`Project Settings → Build Settings → Android Credentials`})]}),`\n`,_jsx(_components.li,{children:`Create a new APK build`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`ios-setup`,children:`iOS Setup`}),`\n`,_jsx(_components.p,{children:`iOS push notifications are configured per Apple Developer team:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Connect your Apple Developer account via the `,_jsx(_components.strong,{children:`Publish → App Store`}),` flow`]}),`\n`,_jsx(_components.li,{children:`Set up APNs credentials (automatic or manual) from the team management dialog`}),`\n`,_jsx(_components.li,{children:`Create a new App Store / TestFlight build`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`aps-environment`}),` entitlement is included automatically in all builds.`]}),`\n`,_jsx(Heading,{level:`2`,id:`handling-notifications-in-your-app`,children:`Handling notifications in your app`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` * `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Notifications `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"expo-notifications\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Notifications.setNotificationHandler({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` handleNotification: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () => ({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` shouldPlaySound: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` shouldSetBadge: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` shouldShowBanner: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` shouldShowList: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// When user taps a notification`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Notifications.addNotificationResponseReceivedListener((response) => {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data = response.notification.request.content.data;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Navigate based on data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Issue`}),_jsx(_components.th,{children:`Fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”no valid aps-environment entitlement”`}),_jsx(_components.td,{children:`Create a new build — older builds may not include this entitlement`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”BadDeviceToken”`}),_jsx(_components.td,{children:`Device token expired or from wrong environment — get a fresh token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”Firebase service account is not configured”`}),_jsx(_components.td,{children:`Upload credentials in Build Settings → Android Credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”APNs credentials are not configured”`}),_jsx(_components.td,{children:`Set up APNs key in Publish → App Store → team management`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Notifications not received`}),_jsx(_components.td,{children:`Must test on TestFlight (iOS) or custom APK (Android), not Expo Go`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Push Notifications","description":"Send push notifications to iOS and Android devices from your Convex backend","href":"/development/push-notifications","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Push Notifications","slug":"push-notifications","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Getting a device push token","slug":"getting-a-device-push-token","depth":2,"children":[]},{"title":"Sending notifications","slug":"sending-notifications","depth":2,"children":[]},{"title":"Android Setup","slug":"android-setup","depth":2,"children":[]},{"title":"iOS Setup","slug":"ios-setup","depth":2,"children":[]},{"title":"Handling notifications in your app","slug":"handling-notifications-in-your-app","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"a0dev","siteName":"a0.dev Docs","title":"Push Notifications - a0.dev Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-20T14:28:49.469Z","originalFileLocation":"development/push-notifications.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send push notifications to iOS and Android devices from your Convex backend\">\u003cmeta data-mint-head name=\"application-name\" content=\"a0.dev Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Push Notifications - a0.dev Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send push notifications to iOS and Android devices from your Convex backend\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"a0.dev Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.a0.dev/development/push-notifications\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://a0dev.mintlify.site/_mintlify/api/og/v2?division=Development\u0026amp;title=Push+Notifications\u0026amp;description=Send+push+notifications+to+iOS+and+Android+devices+from+your+Convex+backend\u0026amp;theme=acdae411db47e4be7bc5dff0\u0026amp;signature=d5f0f88ce1e1cd5f8406b0207075035260bf003cefa1310f53a2fea43768c86b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Push Notifications - a0.dev Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send push notifications to iOS and Android devices from your Convex backend\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://a0dev.mintlify.site/_mintlify/api/og/v2?division=Development\u0026amp;title=Push+Notifications\u0026amp;description=Send+push+notifications+to+iOS+and+Android+devices+from+your+Convex+backend\u0026amp;theme=acdae411db47e4be7bc5dff0\u0026amp;signature=d5f0f88ce1e1cd5f8406b0207075035260bf003cefa1310f53a2fea43768c86b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/a0dev/cmCs8ZNfdbhV0Ff-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"a0.dev Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3579FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.a0.dev/development/push-notifications\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/development/push-notifications.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.a0.dev/#organization\",\"name\":\"a0.dev Docs\",\"url\":\"https://docs.a0.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/a0dev/mgZ85r1zTikFn1BJ/logo/black.svg?fit=max\u0026auto=format\u0026n=mgZ85r1zTikFn1BJ\u0026q=85\u0026s=b81996e0e0b3ba904a96a5c4be77b03e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.a0.dev#website\",\"name\":\"a0.dev Docs\",\"url\":\"https://docs.a0.dev\",\"publisher\":{\"@id\":\"https://docs.a0.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.a0.dev/development/push-notifications#webpage\",\"url\":\"https://docs.a0.dev/development/push-notifications\",\"name\":\"Push Notifications\",\"description\":\"Send push notifications to iOS and Android devices from your Convex backend\",\"dateModified\":\"2026-02-20T14:28:49.469Z\",\"isPartOf\":{\"@id\":\"https://docs.a0.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.a0.dev/development/push-notifications#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.a0.dev/development/push-notifications#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Development\",\"item\":\"https://docs.a0.dev/development/deep-links\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Push Notifications\",\"item\":\"https://docs.a0.dev/development/push-notifications\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.a0.dev/development/push-notifications#article\",\"headline\":\"Push Notifications\",\"name\":\"Push Notifications\",\"description\":\"Send push notifications to iOS and Android devices from your Convex backend\",\"url\":\"https://docs.a0.dev/development/push-notifications\",\"mainEntityOfPage\":{\"@id\":\"https://docs.a0.dev/development/push-notifications#webpage\"},\"dateModified\":\"2026-02-20T14:28:49.469Z\",\"publisher\":{\"@id\":\"https://docs.a0.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.a0.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"a0.dev Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"a0.dev Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/development/push-notifications.md","siteName":"a0.dev Docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"house","href":"https://a0.dev"},{"anchor":"Discord","icon":"discord","href":"https://a0.dev/discord"},{"anchor":"Reddit","icon":"reddit","href":"https://a0.dev/reddit"},{"anchor":"Blog","icon":"newspaper","href":"https://a0.dev/blog"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":""}]},{"group":"Agent Guide","pages":[{"title":null,"href":"/agent-guide/overview"},{"title":null,"href":"/agent-guide/three-principles"},{"title":null,"href":"/agent-guide/writing-prompts"},{"title":"New Chat","href":"/agent-guide/new-chat-explained"}]},{"group":"Development","pages":[{"title":"Deep Links","description":"Configure URL schemes to enable deep linking into your a0 app","href":"/development/deep-links"},{"title":"Push Notifications","href":"/development/push-notifications"},{"title":"Android FCM Setup","description":"Set up Firebase Cloud Messaging credentials for Android push notifications","sidebarTitle":"Android FCM Setup","href":"/development/android-fcm-setup"},{"group":"Monetization","icon":"credit-card","pages":[{"title":"Payment Setup","href":"/development/monetization/payment-setup"},{"title":"Payment Implementation","href":"/development/monetization/payment-implementation"}]},{"group":"Testing Your App","icon":"flask-vial","pages":[{"title":"Overview","href":"/development/testing/overview"},{"title":"Web Preview Testing","href":"/development/testing/web-preview"},{"title":"Mobile App Testing","href":"/development/testing/mobile-app-testing"},{"title":"Native Build Testing","href":"/development/testing/native-build-testing"},{"title":"iOS Device Registration","href":"/development/testing/device-registration"}]}]},{"group":"Publishing","pages":[{"group":"Over the Air Updates","icon":"cloud-arrow-up","pages":[{"title":"Update Overview","href":"/publishing/ota-updates/overview"},{"title":"Deploying Updates","href":"/publishing/ota-updates/deploy-updates"}]},{"group":"iOS","icon":"code","pages":[{"title":"Apple Developer Program","sidebarTitle":"Apple Developer Program","href":"/publishing/ios/apple-developer-program"},{"group":"Setup Account","icon":"code","pages":[{"title":"Setup your App Store Connect Account","sidebarTitle":"Setup","href":"/publishing/ios/app-store-connect/setup"},{"title":"Automatic Setup","sidebarTitle":"Automatic Setup","href":"/publishing/ios/app-store-connect/automatic-setup"},{"title":"Manual Setup","href":"/publishing/ios/app-store-connect/manual-setup"}]},{"group":"Submit to App Store","icon":"code","pages":[{"title":"Preparing your App Store Connect Account","href":"/publishing/ios/preparing-asc-account"},{"title":"Deploying Your App","href":"/publishing/ios/deploying-on-a0"},{"title":"Pre-Submission Checklist","href":"/publishing/ios/submission-checklist"}]}]}]},{"group":"Advanced","pages":[{"title":"Upgrading your Project","href":"/advanced/upgrading-your-project"}]}]}]},"basePath":"","title":"Push Notifications - a0.dev Docs","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}