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

Notification issues on Chinese-vendor phones #89

Closed
2 tasks done
iqfareez opened this issue Nov 15, 2021 · 4 comments
Closed
2 tasks done

Notification issues on Chinese-vendor phones #89

iqfareez opened this issue Nov 15, 2021 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request user: feedback From user feedback (eg Play Store/feedback page/email)

Comments

@iqfareez
Copy link
Member

iqfareez commented Nov 15, 2021

What's going on?

This issue similar to #77. Where I found that Chinese vendor phones (like Xiaomi, Realme etc.) has a restriction where apps can't autostart which prevented apps to fire a scheduled notification.

Some of the user report (From Google Play Store)

User 1

At first using the app I was pleased . After sometime I don't get azan notification anymore. Uninstall and installing a few times still no azan on each prayer time. Keep the apps because it shows dhuha time which is absent in most prayer app.

User 2

assalamualaikum. pada awalnya, aplikasi ini ada beri notifikasi(azan) bila masuk waktu solat. tapi beberapa hari selepas tu, sudah tidak ada lagi notifikasi daripada aplikasi ini sehingga sekarang. saya menggunakan oppo. adakah aplikasi ini tidak berfungsi untuk oppo?

Yup there are many more.

Proposal

Challenges

  • Code complexity.
  • I don't have any Chinese-vendor phone 😓. Yeah, it causes inconvenience for me since I can't test the app on those devices. So, I may do something that is predictable, ie, if it doesn't break on my devices, it also not going to break on other devices (but that's not always the case 🤣) I just got a Redmi Note 11 hehe, here is mpt running on that phone.
@iqfareez iqfareez added bug Something isn't working enhancement New feature or request labels Nov 15, 2021
@iqfareez iqfareez self-assigned this Nov 15, 2021
@iqfareez iqfareez changed the title Notification issues on Chinese Vendor phones Notification issues on Chinese-vendor phones Nov 15, 2021
@iqfareez iqfareez added the user: feedback From user feedback (eg Play Store/feedback page/email) label Nov 30, 2021
@iqfareez
Copy link
Member Author

Not sure if this was related
image
image

Oppo?! (Speaking Jawa)

@iqfareez
Copy link
Member Author

iqfareez commented Mar 7, 2022

We can try to add prompt like these;

image
image

Seems like this package, disable_battery_optimization is just what we needed 🤩

@iqfareez
Copy link
Member Author

@iqfareez
Copy link
Member Author

Related article by howtogeek.com: https://www.howtogeek.com/805157/google-explains-your-android-phones-broken-notifications/

Modern versions of Android strike a decent balance between extending battery life (by pausing or limiting background tasks) and still staying connected to cloud servers that provide push notifications. However, some manufacturers take that a step further for their devices, by implementing more battery-saving techniques that can lead to background services breaking. OnePlus has had issues over the years with unreliable notifications, as well as the Chinese versions of many Xiaomi, Oppo, and Vivo phones.

This Twitter user express his annoyance: https://twitter.com/bencsin/status/1522100809831370752?s=20&t=R7Xw6IpT99TPNjQJHUHywQ

Hope these OEMs fixes all this crap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request user: feedback From user feedback (eg Play Store/feedback page/email)
Projects
None yet
Development

No branches or pull requests

1 participant