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

Please try to add foreground service support #480

Open
JanuszChmiel opened this issue Oct 25, 2022 · 0 comments
Open

Please try to add foreground service support #480

JanuszChmiel opened this issue Oct 25, 2022 · 0 comments

Comments

@JanuszChmiel
Copy link

Dear elite programmers, who are concentrated around this excellent package. Does somebody of us think, that there is any chance to allow Android foreground services creation? Unfortunately, Android newer than 6.0 have more and more power management features, which in fact do not allow background tasks running if screen is turned off. It is not so simple to overcome those modern power management features of Android. The most reliable procedure is to use Foreground service with notification text and with some button on notification area. In such case, if notification is interactive Android will not very probably kill such app. Unfortunately, simply creating Android foreground service with only non interactive notification message on notification tray is not enough. Notification must contain some button, such as Stop The app or to switch some apps function. So core of Android will do not allow such app to autoterminate. Very deep Java programming knowledge is required to extend special Java templates, which are communicating with .so compiled native .so library compiled by Free Pascal compiler. The question is, if is it even possible to combine JNI with foreground service? Thank you very very much for your programmers thinkink. It is not easy task, but very important for new Android releases.

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

1 participant