owntracks / ios

OwnTracks' iPhone App
http://owntracks.org
Other
331 stars 91 forks source link

"Send now" shortcut doesn't work unless I launch the app first #766

Open hepcat72 opened 8 months ago

hepcat72 commented 8 months ago

I'm still learning about OwnTracks and getting it configured and set up with my Node Red instance, so I wanted to send some test messages.

I was pleased to see OwnTracks has a shortcuts dictionary, but when I made a shortcut with only a single action: OwnTracks' "Send Now" action, my webhookrelay node didn't receive anything. I tried running it a half dozen times - nothing.

So I tried adding an "open app" action to launch the OwnTracks app before running "Send Now" and that worked.

Is there a way to get it to work without bringing the app to the foreground?

ckrey commented 8 months ago

I thought I fixed the problem in #740 / #436. But I have to admit it is tricky...

ckrey commented 8 months ago

At the moment automation requires starting the app

jbrepogmailcom commented 1 month ago

So if I understand well, I cannot send location from automation on locked phone, because starting the app requires to manually unlock the phone and only then the app can be started and location sent. This is aligned with my observations,