9e4c9071e6
Installs `expo-notifications` and `expo-task-manager` packages. Implements a `useNotifications` hook for requesting permissions, polling for post status changes, and sending local notifications for published or errored posts. Updates `app.json` to include notification permissions and the notification handler. Wires the `useNotifications` hook into the app's root layout. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7b0991ce-c7b8-4c82-9acc-fd3f9e762a01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 7e5cd315-f570-494a-b5a6-c6ee284a4516 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/86064bd6-c937-4ca5-a5bf-bbef5749fb60/7b0991ce-c7b8-4c82-9acc-fd3f9e762a01/kWnlAIM Replit-Helium-Checkpoint-Created: true
61 lines
1.4 KiB
JSON
61 lines
1.4 KiB
JSON
{
|
|
"expo": {
|
|
"name": "PostizMobile",
|
|
"slug": "postiz-mobile",
|
|
"version": "1.0.0",
|
|
"orientation": "portrait",
|
|
"icon": "./assets/images/icon.png",
|
|
"scheme": "postiz-mobile",
|
|
"userInterfaceStyle": "dark",
|
|
"newArchEnabled": true,
|
|
"splash": {
|
|
"image": "./assets/images/icon.png",
|
|
"resizeMode": "contain",
|
|
"backgroundColor": "#0D0D0F"
|
|
},
|
|
"ios": {
|
|
"supportsTablet": false,
|
|
"infoPlist": {
|
|
"NSPhotoLibraryUsageDescription": "PostizMobile needs access to your photo library to attach images to posts.",
|
|
"NSCameraUsageDescription": "PostizMobile needs camera access to take photos for posts."
|
|
}
|
|
},
|
|
"android": {
|
|
"permissions": [
|
|
"READ_EXTERNAL_STORAGE",
|
|
"WRITE_EXTERNAL_STORAGE",
|
|
"READ_MEDIA_IMAGES",
|
|
"RECEIVE_BOOT_COMPLETED",
|
|
"VIBRATE"
|
|
]
|
|
},
|
|
"web": {
|
|
"favicon": "./assets/images/icon.png"
|
|
},
|
|
"plugins": [
|
|
[
|
|
"expo-router",
|
|
{
|
|
"origin": "https://replit.com/"
|
|
}
|
|
],
|
|
"expo-font",
|
|
"expo-web-browser",
|
|
"expo-image-picker",
|
|
"expo-secure-store",
|
|
[
|
|
"expo-notifications",
|
|
{
|
|
"icon": "./assets/images/icon.png",
|
|
"color": "#6366F1",
|
|
"sounds": []
|
|
}
|
|
]
|
|
],
|
|
"experiments": {
|
|
"typedRoutes": true,
|
|
"reactCompiler": true
|
|
}
|
|
}
|
|
}
|