Is this possible to know inside my Siri intent handler if the user was in my app before launching Siri?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
You can use App Groups to share data between your app's main target and your Siri intent handler. You could simply store a
Bool
inUserDefaults
indicating whether your app was already launched or not, then access the same value using App Groups from your Siri intent handler.For more information on App Groups, see the App Extension Programming Guide.