Reputation:
How do I identify the device has SIRI or not?
I was trying to use, [[UIDevice currentDevice] systemVersion] which returns me iOS version 6.0.
Some devices can have same the iOS version but have the different capability of SIRI.
Which is the best solution to identify SIRI devices?
Upvotes: 0
Views: 303
Reputation: 452
Try this to get Device details
[[UIDevice currentDevice] platformType] // ex: UIDevice4GiPhone
[[UIDevice currentDevice] platformString] // ex: @"iPhone 4G"
Upvotes: 0
Reputation:
In this case, I couldn't find any official API using a quick Google search, but as always, feature detection is superior to version detection. So here's what I did, not sure if this is allowed in the App Store:
BOOL hasSiri = [[NSFileManager defaultManager] fileExistsAtPath:@"/System/Library/Assistant"];
Upvotes: 0
Reputation: 108151
You can detect the device, instead of the iOS version.
The currently supported devices so far are:
so I would just write down a blacklist of unsupported devices and detect them.
In order to do so, you can use the approaches described here
Upvotes: 1