Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm are not working when we close the app #161

Open
komailabbas12 opened this issue Jan 14, 2022 · 0 comments
Open

Alarm are not working when we close the app #161

komailabbas12 opened this issue Jan 14, 2022 · 0 comments

Comments

@komailabbas12
Copy link

Android minifiest file

`

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:roundIcon="@mipmap/ic_launcher_round"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
    android:launchMode="singleTask"
    android:windowSoftInputMode="adjustResize">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
  </activity>

    <receiver
        android:name="com.emekalites.react.alarm.notification.AlarmReceiver"
        android:enabled="true"
        android:exported="true">
        <intent-filter>
            <action android:name="ACTION_DISMISS" />
            <action android:name="ACTION_SNOOZE" />
        </intent-filter>
    </receiver>

    <receiver
        android:name="com.emekalites.react.alarm.notification.AlarmDismissReceiver"
        android:enabled="true"
        android:exported="true" />

    <receiver
        android:name="com.emekalites.react.alarm.notification.AlarmBootReceiver"
        android:directBootAware="true"
        android:enabled="false"
        android:exported="true">
        <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" />
            <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
        </intent-filter>
    </receiver>
</application>
`

Dependancies

"@react-native-community/async-storage": "^1.12.1", "@react-native-community/datetimepicker": "^5.1.0", "@react-native-firebase/app": "^14.2.2", "@react-native-firebase/auth": "^14.2.2", "@react-native-firebase/database": "^14.2.2", "@react-native-firebase/messaging": "^14.2.2", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11", "axios": "^0.24.0", "install": "^0.13.0", "npm": "^8.3.0", "react": "17.0.2", "react-native": "0.66.4", "react-native-alarm-notification": "^1.8.0", "react-native-gesture-handler": "^2.1.0", "react-native-modal-datetime-picker": "^13.0.1", "react-native-modal-selector": "^2.1.0", "react-native-push-notification": "^8.1.1", "react-native-safe-area-context": "^3.3.2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant