Skip to content

Request to ignore battery optimizations before receiving subscription #97

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

p1gp1g
Copy link

@p1gp1g p1gp1g commented Nov 11, 2024

This privilege is required to start a foreground service from the background. Which is what is intended to be done when the first registration is received with UnifiedPush

Fix #95

This privilege is required to start a foreground service from
the background. Which is what is intented to be done when the
first registration is received with UnifiedPush
@p1gp1g
Copy link
Author

p1gp1g commented Nov 11, 2024

By the way, I've added the possibility to change the battery settings without asking the user to do it manually in settings

I can split the PR if you prefer

@p1gp1g
Copy link
Author

p1gp1g commented May 27, 2025

I see many users struggling with errors 507. This issue should fix it.

It happens because channels are created by the client, but because it isn't allowed to run in the background without restriction, it can't start a new foreground service, and so it can't register the new topic on the server. The new endpoint is still sent to the application. And we end with a 507 error.

Examples:

@binwiederhier
Copy link
Owner

I plan to release Android after the ntfy server. I'll look at all the PRs then!

@p1gp1g
Copy link
Author

p1gp1g commented May 27, 2025

Great news !

The last comment was to add some context, I tend to forget to include it in my PRs and I saw I forget to mention the 507

@NextWork123
Copy link

I plan to release Android after the ntfy server. I'll look at all the PRs then!

Some news about that?

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

Successfully merging this pull request may close these issues.

Unrestricted battery usage should be requested even without registrations
3 participants