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

on('authorization') event always return 1 #154

Open
karimBenBechir opened this issue Jun 19, 2023 · 1 comment
Open

on('authorization') event always return 1 #154

karimBenBechir opened this issue Jun 19, 2023 · 1 comment

Comments

@karimBenBechir
Copy link

Describe the bug
Hello mates, when trying to handle the toggle location service via the on('authorization') event, i figured out that it's always returning 1 when the toggle is occurring and when the permission changes.

To Reproduce
Steps to reproduce the behavior:

  1. BackgroundGeolocation.start()
  2. Toggle location service or remove permission for the app.
  3. See the on('authorization') return

Expected behavior
Expecting different status for location status.

Smartphone (please complete the following information):

  • Device: Sumsung,lenovo
  • OS: Android 10

Thanks a lot

@HarelM
Copy link
Collaborator

HarelM commented Jun 19, 2023

Can you better explain the scenario and what is the expected behavior?
In any case, I would recommend opening a PR of you know how to solve this.
I personally don't use the authorize event so I don't have any knowledge about its behavior...

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