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

Android: Persistent notification while ingame #13125

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

Conversation

srifqi
Copy link
Contributor

@srifqi srifqi commented Jan 8, 2023

Goal of the PR
This PR adds a notification for Android player when playing inside a world/server.

How does the PR work?
Notify player before the main game loop and remove notification after the main game loop.

Does it resolve any reported issue?
Yes, this PR tries to fix #13115 (read the alternatives).

Does this relate to a goal in the roadmap?
Probably, this PR tries to fix a reported UX issue.

To do

This PR is Ready for Review.

Known issue: The notification still exists after removing Minetest from the recent application list while the player is still inside a world/server. Restarting Minetest (or via tapping the notification) will clear it up. This issue also exists in other application and seems to be OEM-dependent.

How to test

  1. Run Minetest and play a world/server.
  2. Check that a Minetest notification exists.
  3. Press Home or go to recent application list.
  4. Check that the Minetest notification still exists.
  5. Enter Minetest application.
  6. Go back to main menu.
  7. Check that the Minetest notification has been removed.
  8. Play a world/server again.
  9. Check that a Minetest notification exists.
  10. Exit to OS.
  11. Check that the Minetest notification has been removed.

@Zughy Zughy added Android UI/UX Feature ✨ PRs that add or enhance a feature Roadmap: Needs approval The change is not part of the current roadmap and needs to be approved by coredevs beforehand labels Jan 12, 2023
@sfan5 sfan5 changed the title Android: Notify the player when playing inside a world/server Android: Persistent notification while ingame Jan 13, 2023
@rubenwardy rubenwardy added Concept approved Approved by a core dev: PRs welcomed! and removed Roadmap: Needs approval The change is not part of the current roadmap and needs to be approved by coredevs beforehand labels May 27, 2023
@appgurueu appgurueu added the Rebase needed The PR needs to be rebased by its author label Aug 16, 2024
@Zughy
Copy link
Contributor

Zughy commented Aug 16, 2024

@srifqi rebase needed

@srifqi
Copy link
Contributor Author

srifqi commented Aug 20, 2024

I have rebased this PR to current master.

@Zughy Zughy removed the Rebase needed The PR needs to be rebased by its author label Aug 20, 2024
@sfan5 sfan5 added the Action / change needed Code still needs changes (PR) / more information requested (Issues) label Aug 20, 2024
@Zughy Zughy added Rebase needed The PR needs to be rebased by its author and removed Action / change needed Code still needs changes (PR) / more information requested (Issues) labels Sep 17, 2024
@Zughy
Copy link
Contributor

Zughy commented Sep 17, 2024

@srifqi another rebase

When tapped, the notification will open the currently running game.
The notification is ongoing, i.e. can not be cleared/swiped by the user.
Known issue: The notification still exists after removing Minetest from the recent application list while the player is still inside a world/server. Restarting Minetest (or via tapping the notification) will clear it up.
@srifqi srifqi force-pushed the android_notify branch 2 times, most recently from 1dd8b2d to fab225c Compare September 19, 2024 12:20
@srifqi
Copy link
Contributor Author

srifqi commented Sep 19, 2024

I have rebased this PR to current master. I also fixed some bugs after the previous rebase.

@sfan5 sfan5 removed the Rebase needed The PR needs to be rebased by its author label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Concept approved Approved by a core dev: PRs welcomed! Feature ✨ PRs that add or enhance a feature UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running in the background on Android
5 participants