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

Sync doesn't work on MIUI #450

Closed
balek opened this issue Feb 18, 2018 · 14 comments
Closed

Sync doesn't work on MIUI #450

balek opened this issue Feb 18, 2018 · 14 comments

Comments

@balek
Copy link

balek commented Feb 18, 2018

I'm adding a new sync backend, choosing accounts to sync, than nothing happens. No new files on a server, no subitems in the new backend's list. I can see such requests in server's access log:
46.188.7.106 - s [18/Feb/2018:22:49:23 +0300] "OPTIONS /remote.php/webdav/accounting/ HTTP/2.0" 200 930 "-" "okhttp/3.9.1"
46.188.7.106 - s [18/Feb/2018:22:49:23 +0300] "PROPFIND /remote.php/webdav/accounting/ HTTP/2.0" 207 1052 "-" "okhttp/3.9.1"
Version 2.8.7 from F-Droid.

@mtotschnig
Copy link
Owner

Currently, once you have added the backend, My Expenses does not trigger the first sync right away, but it should start at the latest when you enter new data into one account, or after the configured sync frequency. You can also manually trigger the sync by long clicking on a backend and selecting "Sync now".
If it is still not working, could you switch on debug log from the settings, and inspect the contents of SyncAdapter-latest.log in Android/data/org.totschnig.myexpenses/files/logs ?

@balek
Copy link
Author

balek commented Feb 27, 2018

I don't know why, but all logs are empty... I've prepared a screen record: https://cloud.balek.ru/s/2PMq4M8S7HDHwME

Debug is enabled, but all logs have 0B size.

@mtotschnig
Copy link
Owner

As I mentioned, after adding the backend, could you long press and select "Sync now". If you copy the logs to your computer, do they still have 0B size?

@balek
Copy link
Author

balek commented Feb 28, 2018

As I mentioned, after adding the backend, could you long press and select "Sync now".

Sorry, I have forget to do it on video. It does nothing. Logs are still empty, even on computer.

It prompts me, that problem could be not in NextCloud, but in MIUI firmware. I tried to sync with Dropbox. Everything is the same: account sublist, logs and dropbox are empty. Is there any other place, where I can look for logs?

Another possible reason is the trial version of syncing. Are you sure it's in a working state? Maybe some bug get into free version and was not observed before?

@mtotschnig
Copy link
Owner

Could you tell more about that prompt about MIUI? I have tested sync with trial version recently and did not find any issue.

@balek balek changed the title Can't sync with NextCloud Sync doesn't work on MIUI Mar 16, 2018
@balek
Copy link
Author

balek commented Mar 16, 2018

I have finally found a solution. It really was MIUI specific problem. I had to enable some "Autostart" option in system settings for My Expenses. Than sync started working. Thank you for your help.

@balek balek closed this as completed Mar 16, 2018
@mtotschnig
Copy link
Owner

@balek Thanks for reporting this valuable information!

@mtotschnig
Copy link
Owner

mtotschnig commented Sep 15, 2018

@balek Since I am regulaly receiving reports from users on Xiaomi devices about sync not working, could you describe in detail the path how you navigate to that option, and eventually provide a screenshot?

@balek
Copy link
Author

balek commented Sep 18, 2018

Hi! Path to application settings differs a little between MIUI versions. But the idea is the same: enable Autostart option for My Expenses.

Settings -> Installed apps -> My Expenses -> Autostart

Settings
Installed apps
My Expenses

@mtotschnig
Copy link
Owner

@balek Thanks a lot!

@danielb7390
Copy link

danielb7390 commented Sep 18, 2019

This just fixed my problem. Didn't have logs, even connected via adb to see logcat and nothing.

@mtotschnig You might want to consider to add a warning when enabling the sync for the first time to avoid more confused users!

@mtotschnig
Copy link
Owner

@danielb7390 Thank you for your excellent suggestion. I'd need to find out how to identify devices that are hit by this problem. Could you send me a feedback request from the app settings, or post some information about your device here?

@danielb7390
Copy link

danielb7390 commented Sep 23, 2019

I think this is what you asked?
Don't think there's much useful here other than the brand, i guess you could match by brand that would be enough.
Or maybe probably overkill...: https://stackoverflow.com/questions/47610456/how-to-detect-miui-rom-programmatically-in-android

APP_VERSION:3.0.5.1 (revision 384) 20190917-0925 PLAY com.android.vending ANDROID_VERSION:9 BRAND:xiaomi MODEL:Redmi Note 5 CONFIGURATION:{"colorMode":5,"densityDpi":440,"extraConfig":" themeChanged=0 themeChangedFlags=0","fontScale":1,"hardKeyboardHidden":"HARDKEYBOARDHIDDEN_YES","keyboard":"KEYBOARD_NOKEYS","keyboardHidden":"KEYBOARDHIDDEN_NO","locale":"en","mcc":268,"mnc":1,"navigation":"NAVIGATION_NONAV","navigationHidden":"NAVIGATIONHIDDEN_YES","orientation":"ORIENTATION_PORTRAIT","screenHeightDp":714,"screenLayout":"SCREENLAYOUT_SIZE_NORMAL+SCREENLAYOUT_LONG_YES+SCREENLAYOUT_LAYOUTDIR_LTR+SCREENLAYOUT_ROUND_NO","screenWidthDp":392,"seq":174,"smallestScreenWidthDp":392,"touchscreen":"TOUCHSCREEN_FINGER","uiMode":"UI_MODE_TYPE_NORMAL+UI_MODE_NIGHT_NO","userSetLocale":false,"windowConfiguration":"{ mBounds=Rect(0, 0 - 1080, 2030) mAppBounds=Rect(0, 0 - 1080, 2030) mWindowingMode=fullscreen mActivityType=standard}"} LICENCE: EXTENDED (GPA.3398-2169-9898-06437)

@raffaem
Copy link

raffaem commented Apr 9, 2024

Is this called "Pause app activity if unused" now, and must be unchecked rather than checked?

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

4 participants