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

Error creating a shortcut for start or stop service #442

Open
DST73 opened this issue Jan 9, 2023 · 12 comments
Open

Error creating a shortcut for start or stop service #442

DST73 opened this issue Jan 9, 2023 · 12 comments

Comments

@DST73
Copy link

DST73 commented Jan 9, 2023

Describe the bug
I was using MacroDroid to start and stop the service under certain conditions. Everything worked well on my S9+ running Android 9.
Even under Android 12 everything works well (The dev of MacroDroid checked that).
But under Android 13 I get an error.

To Reproduce
Steps to reproduce the behavior: See screenshot in macrodroidforum: <"Launch Shortcut" not working>

Expected behavior
that the macro can start and stop the service

Screenshots
See link above.

Smartphone (please complete the following information):

  • Device: Samsung S20 Ultra
  • OS: Android 13

Additional context
That it is related to MacroDroid was ruled out. He although check it with the app Automate what had the same behavior.

@tananaev
Copy link
Member

tananaev commented Jan 9, 2023

Does the shortcut work manually?

@DST73
Copy link
Author

DST73 commented Jan 9, 2023

It works manually if I long press on the icon

@tananaev
Copy link
Member

tananaev commented Jan 9, 2023

@DST73
Copy link
Author

DST73 commented Jan 9, 2023

Is that something you can fix or does this the dev of macro droid have to fix? Thank you!

@tananaev
Copy link
Member

tananaev commented Jan 9, 2023

I think this might fix the problem: ddf1f0f.

Can you please try this APK to confirm that it works:

https://we.tl/t-70d37WBHGc

@DST73
Copy link
Author

DST73 commented Jan 9, 2023

Hi, thanks, I have tried the app.

There error message in MacroDroid is gone but what it does when I execute the macro is that it opens the Traccar Client up, shows an toast that the Service is started but you can see by the slider Servicestatus that it isn't started.

So the error in MacroDroid is gone but it opens the app instead of starting the service

@tananaev
Copy link
Member

tananaev commented Jan 9, 2023

If it shows the toast, it should start the service.

@DST73
Copy link
Author

DST73 commented Jan 9, 2023

Tested it again. It's working. Looks like the slider only doesn't get updated. If the service starts the slider stays off.
Screenshot_20230109_201356_Traccar Client

Thank you 🙂👍

@drkmtr
Copy link

drkmtr commented Jan 25, 2023

Hi, I am also affected by this issue on Samsung Galaxy S21 Ultra (Android 13).

Is it possible to get access to the updated APK? (The link expired)

@tananaev
Copy link
Member

Just published a new version 6.19 with the fix.

@drkmtr
Copy link

drkmtr commented Jan 25, 2023

Just published a new version 6.19 with the fix.

Brilliant! Thank you!

@AlphaDE
Copy link

AlphaDE commented Jul 12, 2023

The slider still does not get updated when turning the service off by shortcut. Log says service stopped.

Version 7.0

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

4 participants