Posts

Post not yet marked as solved
0 Replies
437 Views
I just noticed that siri custom intents are not resolving correctly for DURATION type parameters. Siri keeps providing the default value even after the user speaks. This happens on the new IOS 15 devices. See my code snippet     guard let duration = intent.parkingTime else{       completion(INTimeIntervalResolutionResult.needsValue())       return     }      /* Siri keeps returning 0 even if the user says 100 */     if(intent.parkingTime?.doubleValue == 0){       completion(INTimeIntervalResolutionResult.needsValue())       return     }     print("PARKING TIME \(duration.doubleValue)")           completion(INTimeIntervalResolutionResult.success(with: TimeInterval(duration.doubleValue)))   }
Posted
by babafresh.
Last updated
.