Posts

Post not yet marked as solved
0 Replies
525 Views
I have taken NameAndPassword example , and added to system.login.console , it's working fine, I am handling all my logic , rest api calls inside this plugin. But UI will get distorted after logon into mac means still user name and password fields appear slightly. there is delay in authentication even for Simple user name and password I want to add this plugin and get my customised ui when user enters when lock screen, after entering from sleep mode, etc. Is there any detailed documentation on how i can customise the logon process and how logon works internally. Can i use Authentication services inside Authorisation plugin and customise the Mac logon process
Posted Last updated
.
Post not yet marked as solved
0 Replies
814 Views
I am working on iOS app which is supported watch as well below is my concerns.watch os - 5.3.2 and iOS 13.1I am facing problem with notification actions in watch app. when iPhone app is terminated and if I get a notification in watch , if I tap on action nothing happens.I am relaying on push notification and for user notification actions I am registering for user notification.as below// this I will call in iPhone app code in did finishlaunching with options. func registerForPushNotifications(withUserInfo userInfo: [AnyHashable: Any]?) { if #available(iOS 10.0, *) { self.requestAuthorization(withUserInfo: userInfo) } else { registerUserNotificationSettings(withUserInfo: userInfo) UIApplication.shared.registerForRemoteNotifications() } } func registerUserNotificationSettings() { let approveAction = UIMutableUserNotificationAction() approveAction.title = NSLocalizedString("Approve", comment: "Notification approve button title") approveAction.identifier = "approve" approveAction.isDestructive = false approveAction.activationMode = .background approveAction.isAuthenticationRequired = true let denyAction = UIMutableUserNotificationAction() denyAction.title = NSLocalizedString("Deny", comment: "Notification deny button title") denyAction.identifier = "deny" denyAction.isDestructive = true denyAction.activationMode = .background denyAction.isAuthenticationRequired = true let signInCategory = UIMutableUserNotificationCategory() signInCategory.setActions([approveAction, denyAction], for: .default) signInCategory.identifier = "pushotp" let categories = NSSet(object: signInCategory) as? Set<UIUserNotificationCategory> let settings = UIUserNotificationSettings(types: [.badge, .sound, .alert], categories: categories) DispatchQueue.main.async(execute: { UIApplication.shared.registerUserNotificationSettings(settings) }) }ScenariosWhen iPhone app is in background and iPhone is locked and watch is in background. If I push a push notification from server , watch displays notification banner with two actions, if I tap any one action , its working fine.when iPhone app is killed and iPhone locked immmediatly If I send pushnotification , watch displays notification banner with two actions, if I tap any one actions its working fine.When iPhone app is killed and iPhone locked, kept both watch and iPhone idle for a hour so. then I will activate the watch and push the notification from server, now watch displays banner with two actions, now if I tap on the actions it is not working.It would be great if you guys tell me what is the correct thing I have to do.
Posted Last updated
.