gongzhang / HiCoffeeApp

MIT License
12 stars 0 forks source link

Broken Shortcuts integration #9

Closed boozook closed 1 year ago

boozook commented 2 years ago

image

reproduction screencast

boozook commented 2 years ago

Also Watches requests permission to null every time I run it. image

gongzhang commented 2 years ago

@fzzr- 🤔 Yes, something is broken. I'm trying to fix it.

gongzhang commented 2 years ago
gongzhang commented 2 years ago

@fzzr- I'm still trying to fix the problem. If you recreate the same shortcut, will it still have the problem?

boozook commented 2 years ago

Still same error. Maybe I can get some logs from device for you. 🧐 Do you know how to do it?

gongzhang commented 2 years ago

@fzzr- 🤔 I was able to reproduce the problem in a simulator here, but didn't use it to get useful information. It seems to be an iOS issue. You can try the following operation.

In the Shortcuts app, edit an shortcut, then you can go to settings in the upper right corner and see a "privacy" tab. You can try Reset Privacy and then turn it back on.

https://discussions.apple.com/thread/253161866?answerId=256217910022

This is because of a new added feature in iOS 15 to protect access to data by shortcuts. If you go to Shortcuts, go into editing mode, then open the settings in the upper right, you will see the new Privacy tab. Once you grant access the first time, you should see the app or other data location listed with the slide switch On. You ‘could’ toggle it to Off but then your shortcut most likely would not function correctly. If you select Reset Privacy, it will clear the saved info. The next time you run the shortcut, the privacy prompt will reoccur. On the positive side, it looks like privacy items are automatically added as On when creating new shortcuts within the Shortcut app.

boozook commented 1 year ago

I haven't been used it for a while because of this issue. Well, now I see this is fixed completely. ❤️‍🔥 Thank you so much! It works almost perfectly!

Almost because now I have new issue for you #21. Every time when I run my simple shortcut it always asks for permissions. Every time.

incoming-892CB69F-4267-4854-A805-25A173358D60

boozook commented 1 year ago

All is fixed. Thanks! ❤️‍🔥