Viktoriia il y a 8 mois
Parent
commit
7b647944a6
3 fichiers modifiés avec 11 ajouts et 9 suppressions
  1. 11 8
      app.config.ts
  2. BIN
      assets/notification-android-icon.png
  3. 0 1
      package.json

+ 11 - 8
app.config.ts

@@ -3,6 +3,7 @@ import path from 'path';
 import dotenv from 'dotenv';
 
 import type { ConfigContext, ExpoConfig } from 'expo/config';
+import { Platform } from 'react-native';
 
 const env = process.env;
 
@@ -48,9 +49,16 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
     resizeMode: 'cover',
     backgroundColor: '#ffffff'
   },
-  notification: {
-    icon: './assets/notification-icon.png'
-  },
+  notification: Platform.select({
+    ios: {
+      icon: './assets/notification-icon.png',
+      color: '#FFFFFF'
+    },
+    android: {
+      icon: './assets/notification-android-icon.png',
+      color: '#FFFFFF'
+    }
+  }),
   updates: {
     url: 'https://u.expo.dev/c31c6828-3c32-4c7a-aabc-f9b8336b3b66'
   },
@@ -72,9 +80,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
         'Enable NomadMania.com to access your photo library to upload your profile picture. Any violence, excess of nudity, stolen picture, or scam is forbidden',
       NSPushNotificationsDescription:
         'This will allow NomadMania.com to send you notifications. Also you can disable it in app settings',
-
-      NSMicrophoneUsageDescription:
-        'Nomadmania app needs access to the microphone to record audio.',
       NSDocumentsFolderUsageDescription:
         'Nomadmania app needs access to the documents folder to select files.',
       NSCameraUsageDescription: 'Nomadmania app needs access to the camera to record video.',
@@ -108,7 +113,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
       'USER_FACING_NOTIFICATIONS',
       'INTERNET',
       'CAMERA',
-      'RECORD_AUDIO',
       'MODIFY_AUDIO_SETTINGS'
     ],
     versionCode: 74 // next version submitted to Google Play needs to be higher than that 2.0.21
@@ -156,6 +160,5 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
         microphonePermission: 'Allow Nomadmania to access your microphone.'
       }
     ],
-    ['@react-native-firebase/messaging']
   ]
 });

BIN
assets/notification-android-icon.png


+ 0 - 1
package.json

@@ -16,7 +16,6 @@
     "@react-native-clipboard/clipboard": "^1.14.2",
     "@react-native-community/datetimepicker": "8.0.1",
     "@react-native-community/netinfo": "11.3.1",
-    "@react-native-firebase/messaging": "^21.2.0",
     "@react-navigation/bottom-tabs": "^6.5.11",
     "@react-navigation/drawer": "^6.6.15",
     "@react-navigation/material-top-tabs": "^6.6.5",