Post

Replies

Boosts

Views

Activity

Help with creating Siri Intents
Hello, everyone, Sorry if the answer to this post is obvious, I'm quite a newbie with XCode (fine with Swift), but I'm making an app which would let you put text input into an action in Shortcuts and return a result using predefined Swift code. I already have my Swift code, but I don't know how to use the Siri Intents to make it work with shortcuts, or even if that's along the lines of what I want to do (make it only work with Shortcuts, not Siri). Any advice would be greatly appreciated. Thanks, cph101
0
0
503
Apr ’23
NFC Door Cards with PassKit
Hello, Currently I use typical ID cards to unlock doors in my institution using NFC. I am trying to manipulate the Pass.json file to allow for NFC Door Unlocking. Here is what I think I will be using: {"nfc":{"message":"EXAMPLE","encryptionPublicKey":"EXAMPLE"}} What I am trying to do is extract the NFC data from my ID card and use it for the NFC message in my Pass.json. If there is any help on how to extract this it would be greatly appreciated. Thanks
1
0
1.8k
Feb ’22
Converting Chrome - Safari extension
Hello, I am a new developer so sorry if the answer is obvious and I’m somehow missing it. The current script I have in index.html is this: document.getElementById('someID').addEventListener('click', async () => { chrome.tabs.query({ currentWindow: true, active: true }, (tabs) => { chrome.tabs.sendMessage(tabs[0].id, { key: 'value' }) }) And the code I have in script.js looks like: chrome.runtime.onMessage.addListener((message) => { message.key && script[message.key].run(message.args);}); This works perfectly fine in Chrome, but what commands would I use to do the same thing in Safari? Any assistance would be greatly appreciated, Thank you
1
0
950
Jan ’22