chore: add notifee and firebase-messaging
This commit is contained in:
parent
987778b737
commit
79c6e6b014
|
@ -41,6 +41,7 @@
|
|||
"@codler/react-native-keyboard-aware-scroll-view": "^2.0.1",
|
||||
"@gorhom/bottom-sheet": "^4.3.1",
|
||||
"@hookform/resolvers": "^2.9.10",
|
||||
"@notifee/react-native": "^7.8.0",
|
||||
"@nozbe/watermelondb": "0.23.0",
|
||||
"@react-native-async-storage/async-storage": "^1.17.11",
|
||||
"@react-native-camera-roll/camera-roll": "5.6.1",
|
||||
|
@ -56,6 +57,7 @@
|
|||
"@react-native-firebase/analytics": "^14.11.0",
|
||||
"@react-native-firebase/app": "^14.11.0",
|
||||
"@react-native-firebase/crashlytics": "^14.11.0",
|
||||
"@react-native-firebase/messaging": "^18.5.0",
|
||||
"@react-native-masked-view/masked-view": "^0.2.8",
|
||||
"@react-navigation/drawer": "6.4.1",
|
||||
"@react-navigation/elements": "^1.3.6",
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
--- a/node_modules/@notifee/react-native/android/src/main/java/io/invertase/notifee/NotifeeApiModule.java
|
||||
+++ b/node_modules/@notifee/react-native/android/src/main/java/io/invertase/notifee/NotifeeApiModule.java
|
||||
@@ -238,7 +238,7 @@ public class NotifeeApiModule extends ReactContextBaseJavaModule implements Perm
|
||||
@ReactMethod
|
||||
public void requestPermission(Promise promise) {
|
||||
// For Android 12 and below, we return the notification settings
|
||||
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
||||
+ if (Build.VERSION.SDK_INT < 33) {
|
||||
Notifee.getInstance()
|
||||
.getNotificationSettings(
|
||||
(e, aBundle) -> NotifeeReactUtils.promiseResolver(promise, e, aBundle));
|
||||
@@ -265,7 +265,7 @@ public class NotifeeApiModule extends ReactContextBaseJavaModule implements Perm
|
||||
(e, aBundle) -> NotifeeReactUtils.promiseResolver(promise, e, aBundle));
|
||||
|
||||
activity.requestPermissions(
|
||||
- new String[] {Manifest.permission.POST_NOTIFICATIONS},
|
||||
+ new String[] {"android.permission.POST_NOTIFICATIONS"},
|
||||
Notifee.REQUEST_CODE_NOTIFICATION_PERMISSION,
|
||||
this);
|
||||
}
|
Loading…
Reference in New Issue