假设我的应用程序具有NFC要求(在清单上设置),我的应用程序是否会在Google Play上显示给设备上没有NFC的用户?
答案 0 :(得分:2)
var cellStrings: String!
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! UITableViewCell
var dataForCell = mp3Files[indexPath.row]
var generalURL: NSURL!
var documentFolder = fileManager.URLsForDirectory(NSSearchPathDirectory.DocumentDirectory, inDomains: NSSearchPathDomainMask.UserDomainMask)
if var urlFromFolder: NSURL = documentFolder.first as? NSURL {
generalURL = urlFromFolder.URLByAppendingPathComponent(dataForCell)
println("general \(generalURL)")
}
var player = AVPlayerItem(URL: generalURL)
var metaData = player.asset.commonMetadata as! [AVMetadataItem]
for item in metaData {
if item.commonKey == "artist" {
nameArtist = item.stringValue
}
}
cell.textLabel?.text = nameArtist
//
cellStrings = cell.textLabel?.text
println("cell strings \(cellStrings)")
// Configure the cell...
return cell
}
如果您已将所需属性设置为<uses-feature android:name="android.hardware.nfc" android:required="true" />
,则Google Play会过滤该应用,并且只会显示具有NFC功能的设备。
如果您的应用不仅仅依赖于NFC并动态检查该功能,则将其设为true
false
答案 1 :(得分:1)
不,因为Google会过滤商店中的应用:
有关Google如何过滤的更多信息:Filters on Google Play