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

Create an Introduction Activity #88

Open
volllly opened this issue Nov 15, 2024 · 0 comments · May be fixed by #90
Open

Create an Introduction Activity #88

volllly opened this issue Nov 15, 2024 · 0 comments · May be fixed by #90
Labels
enhancement New feature or request

Comments

@volllly
Copy link
Contributor

volllly commented Nov 15, 2024

Background

In android versions >= 13 requesting a permission requires an activity.
We need to request to disable the battery optimization and the permissions for notification.

Problem

We don't have an activity for the launcher when the start intent is sent and the service is started so we can't ask for battery optimization and notification permissions.

Feature

When sending a start intent and the notifications or battery optimization are not yet granted we should open an Introduction Activity where the user is guided through the process of giving the permissions.

This Activity should shortly explain what the fiskaltrust middleware is and why it needs these permissions.

When receiving a start intent and we're missing one of the permissions this activity should always be shown. But when we have the permissions this activity should never be shown.

Example flow

Hi, this is the fiskalturst.Middleware and we're used by your POS System to fulfill compliance regulations. etc. etc.

We need AAA that we can XXX.
Click to accept AAA permission

We need BBB that we can YYY.
Click to accept BBB permission

The buttons become greyed out once the permission is granted.

(Don't take this as gospel though. I'm sure we can think of a nice flow.)

Things to request in this activity

@volllly volllly added the enhancement New feature or request label Nov 15, 2024
@volllly volllly linked a pull request Nov 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant