user4003752
user4003752

Reputation:

iOS : Detect SIRI Device

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

Answers (3)

Hari1251
Hari1251

Reputation: 452

Try this to get Device details

[[UIDevice currentDevice] platformType] // ex: UIDevice4GiPhone

[[UIDevice currentDevice] platformString] // ex: @"iPhone 4G"

Upvotes: 0

user529758
user529758

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

Gabriele Petronella
Gabriele Petronella

Reputation: 108151

You can detect the device, instead of the iOS version.

The currently supported devices so far are:

  • iPhone (4S and later)
  • iPod Touch (5th generation)
  • iPad (3rd generation and later)
  • iPad Mini (All generations)

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

Related Questions