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

No sound & vibration on iOS and older Android version (7.0 Nougat) #244

Open
bi1101 opened this issue Nov 24, 2022 · 3 comments
Open

No sound & vibration on iOS and older Android version (7.0 Nougat) #244

bi1101 opened this issue Nov 24, 2022 · 3 comments

Comments

@bi1101
Copy link

bi1101 commented Nov 24, 2022

Here's my set up:
Airnotifier 3.x
Moodle site 4.0.3
Moodle customized app 4.0.2

When I send push notifications from Moodle to the app, there's no sound or vibration on iOS, on modern Android it works fine, but on older android, it doesn't have sound or vibration

I have access and have already tried it with an official Airnotifier from the Moodle team and everything works fine so I think this is a problem with 3.x version of Airnotifier.

@sulzer
Copy link

sulzer commented Nov 3, 2023

I'm facing the same issue with iOS devices. On newer Android releases it seems to work fine. Have you ever found a solution? It seems the "sound" : "default" is missing in the push payload, however in api\push.py it seems to be defined on line 138:
apns_default = {"badge": None, "sound": "default", "push_type": "alert"}

@bi1101
Copy link
Author

bi1101 commented Nov 3, 2023

The problem is not that simple I'm afraid, there's a heavily custom version that Moodle use, with lots of changes in the code. Unfortunately, this code is not open-sourced. You can try to reverse engineer it from the app code but I had no luck.

@sulzer
Copy link

sulzer commented Nov 3, 2023

Thanks for your quick response.

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

2 participants