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

Feature -> Add iOS Background Fetch #81

Merged
merged 23 commits into from
Sep 25, 2023
Merged

Conversation

gdelataillade
Copy link
Owner

@gdelataillade gdelataillade commented Aug 25, 2023

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

@gdelataillade gdelataillade self-assigned this Aug 25, 2023
@gdelataillade gdelataillade added the work in progress This issue is being worked on label Aug 25, 2023
@gdelataillade gdelataillade linked an issue Aug 25, 2023 that may be closed by this pull request
@dev-chetan
Copy link

dev-chetan commented Sep 11, 2023

@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
Copy link
Owner Author

Hi @dev-chetan

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

@gdelataillade
Copy link
Owner Author

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
Copy link
Owner Author

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

@dev-chetan
Copy link

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

@gdelataillade
Copy link
Owner Author

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

@gdelataillade gdelataillade merged commit 020ce74 into main Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress This issue is being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alarm not ringing anymore after 6+ hours
2 participants