gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

Feature -> Add iOS Background Fetch #81

Closed gdelataillade closed 1 year ago

gdelataillade commented 1 year ago

Play silent audio until alarm rings in order to keep app active. Check every 30 minutes if app is still active.

dev-chetan commented 1 year ago

@gdelataillade Hello, please check android is not working.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available. Searched in the following locations:

  • file:/Users/dev-one/Documents/mindset/mindset-app-flutter/android/app/libs/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml Required by: project :app > project :background_fetch
gdelataillade commented 1 year ago

Hi @dev-chetan

Thanks for your message. I will take a look at it as soon as possible.

gdelataillade commented 1 year ago

Hi @dev-chetan

The issue was that I added the package background_fetch in the project for iOS, but it needed some Android installation steps. background_fetch is not used for Android in this project, only iOS, so I decided to code the Background Fetch feature directly in the native code and remove background_fetch dependency. This should fix your issue.

gdelataillade commented 1 year ago

Note that I updated iOS installation steps, take a look at the README.

dev-chetan commented 1 year ago

@gdelataillade Hello, The alarm not ringing anymore after 6+ hours Is this issue fixed?

gdelataillade commented 1 year ago

Hi @dev-chetan !

I'm working hard on fixing this issue in this pull request. I think I'm getting close to a working solution.

If you want to help, you can try the latest versions and let me know if it worked for you. Just use this package version: alarm: ^2.0.0-dev.5