react-native-push-notification
react-native-push-notification copied to clipboard
LocalNotifiacion and LocalNotificationSchedule not working
Hello, I've been having this problem for a while, so basically, the local notifications were working fine until one day that they stopped working, I don't know what happened, but it just stopped(maybe I touched something).
Anyways, I'll leave the android folder code here, would love if you could help me guys:
- android/build.gradle buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 23 compileSdkVersion = 34 targetSdkVersion = 34 ndkVersion = "26.1.10909125" kotlinVersion = "1.9.22" supportLibVersion = "23.1.1" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } }
apply plugin: "com.facebook.react.rootproject"
-
android/app/src/main/AndroidManifest.xml
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/round_logo" android:roundIcon="@mipmap/round_logo" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:exported="true">
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" android:exported="false"/> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" android:exported="false"/> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver" android:exported="false"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver>
-
android/app/src/main/res/values/colors.xml
#FFF -
I didn't touch my android/settings.gradle, android/app/build.gradle nor MainApplication.kt
Some remedies I tried was using another virtual device, trying to link manually, but it doesn't seem to work.
Any suggestions on why this is happening?
Thank you in advance guys :)
test on android 11, android 13 react-native 0.73.5 react-native-push-notification: 8.1.1
same problem