Hello,
The F-Droid application does not detect or notify that a newer version of the application is available on the F-Droid repository.
My procedure:
- Prepare my own F-Droid repository hosted on GitLab, which contains multiple versions of one application (for example xyz.apk):
- xyz_1.1.1.apk
- xyz_1.2.1.apk
- xyz_1.3.1.apk
- Configure xyz.yml file for the xyz application in the metadata directory to use xyz_1.1.1.apk application as follows:
- AutoUpdateMode: Version %v
- UpdateCheckMode: None
- CurrentVersion: 1.1.1
- CurrentVersionCode: 1
- Commit my F-Droid repo to the master branch in GitLab (without any tag)
- Add my own repository to F-Droid application
- Install xyz application to Android device with version 1.1.1 =====> OK
- Switch Android device to home screen
- Change configuration in the xyz.yml file in the metadata directory to use xyz_1.2.1.apk application from the previous xyz_1.1.1.apk as follows:
- AutoUpdateMode: Version %v
- UpdateCheckMode: None
- CurrentVersion: 1.2.1
- CurrentVersionCode: 2
- Run the following commands:
- fdroid update -c
- fdroid rewritemeta
- fdroid update
- Commit changes of my F-Droid repo to the master branch in GitLab (without any tag)
- I am waiting for more than 1 hour to see if my Android device notifies me that I have xyz.apk app update available to newer version 1.2.1 =====> ERROR - No notification has occurred on the Android device
Additional informations:
- The F-Droid application settings in the Settings screen in the Updates section are as follows:
- Setting “Over Wi-Fi” is set to “Always use this connection when available”
- Setting “Over data” is set to “Always use this connection when available”
- Setting “Automatically fetch updates” is set to Enable
- Setting “Automatically update interval” is set to “Check for updates hourly”
- Setting “Show available updates” is set to “Show a notification when updates are available”
- If the F-Droid application is running in the background and the home screen is displayed =====> The notification about the availability of the xyz.apk update was not displayed
- If the F-Droid application is running in the foreground =====> The notification about the availability of the xyz.apk update was not displayed
- The new version of the xyz.apk application is detected only if I manually perform Updating repositories in the “Latest” screen (by swiping down on the screen)
- I tried with F-Droid versions:
- 1.12.1
- 1.17.0
- 1.19.0
- I tried it on Android 8.1
Where is the problem:
- Is there a problem somewhere in my procedure?
- Is there a problem in the F-Droid application that the service is not running in the background?