I am developing an app which makes use of actionable notifications.
On my code (the func userNotificationCenter function), I need to read my users from the local storage on the iPhone:
let query: [String: Any] = [
kSecAttrService as String: "uio-auth",
kSecAttrAccount as String: "users",
kSecClass as String: kSecClassGenericPassword,
kSecReturnData as String: true
]
var result: AnyObject?
SecItemCopyMatching(query as CFDictionary, &result)
let ref = result as? Data
But when the same code execute when I tap on the notification on the Apple Watch, it doesn't fetch anything. It now occurs to to me:
Does it mean that when an actionable notification programmed for the iOS is displayed on the Apple Watch, it tries to access its own storage, and not the iPhone? If so, is there a nice way to pass the values to the watchOS so that when the callback for the actionable notifications run, it has then the data it needs?
Post
Replies
Boosts
Views
Activity
Hi,
I was going to use the Accounts framework to attempt to add a custom internet account so that our users can authenticate to our IdP (OAuth2) for their mail accounts.
When using the Accounts framework, I got this warning:
'ACAccountStore' was deprecated in iOS 15.0: Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead
Is there any documentation on how to code/add custom Internet Accounts to macOS/iOS?
My e-mail server supports OAuth for login. It would be nice to replace username/password with a OAuth, the same way that other accounts such as Microsoft Exchange, Google, etc, work.
Is there a framework that allow me to implement such thing? Like a custom internet account in addition to vanilla imap and the others provided by Google, Microsoft, Yahoo, etc?
Hi,
A few days ago, I tested actionable notifications, and I get the buttons configured for the category displayed on my iPhone when I get an alert notification.
The buttons used to be displayed on the apple watch as well, but now I only get "Dismiss".
Any reason for that?
Hi,
If we implement actionable notifications on iOS, the buttons corresponding the actions are displayed on the Apple Watch as well.
I wonder if I could detect that the button was tapped on the Apple Watch or on the iPhone, so I could react to it differently.