Documentation Index
Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
Use this file to discover all available pages before exploring further.
@amisi/notifications
@amisi/notifications provides an adapter-based notifications API so you can switch providers without changing screen-level logic.
Adapter model
-
Contract
- Providers implement the shared
NotificationAdaptercontract.
- Providers implement the shared
-
Runtime selection
- Select the active adapter at runtime using
initializeNotifications({ adapter, options }).
- Select the active adapter at runtime using
-
Built-in adapters
onesignalexpomock
Initialize
Initialize notifications once at app startup. The starter app initializes notifications inapps/mobile/app/_layout.tsx using amisi.config.json.
Request permission
Use the hook in screens/components:Manage notification preferences
Persist user preferences using the same hook:OneSignal configuration
For OneSignal, configure the app and plugin setup in:amisi.config.json(notifications.adapterand optional options)apps/mobile/app.json(onesignal-expo-plugin)
onesignal.
Expo notifications configuration
If you select theexpo adapter, keep native Expo notification permissions and credentials configured for iOS and Android builds.