1
我需要重命名我的應用程序的名稱。iOS應用程序:保留舊的應用程序名稱作爲關鍵字?
是否可以在某處存儲其舊名稱的某些元數據? 用戶可能會嘗試在iPhone的搜索選項中搜索其舊名稱。
在plist文件或其他地方是否有任何指定值,以便它的包顯示名稱是新名稱,而舊名稱仍可搜索?
我需要重命名我的應用程序的名稱。iOS應用程序:保留舊的應用程序名稱作爲關鍵字?
是否可以在某處存儲其舊名稱的某些元數據? 用戶可能會嘗試在iPhone的搜索選項中搜索其舊名稱。
在plist文件或其他地方是否有任何指定值,以便它的包顯示名稱是新名稱,而舊名稱仍可搜索?
要做到這一點你的應用程序必須要ATLEAST一經推出,並在你的AppDelegate
你可以索引你的Core Spotlight
搜索項像下面didFinishLaunchingWithOptions:
:要顯示
CSSearchableItemAttributeSet* attributeSet = [[CSSearchableItemAttributeSet alloc] initWithItemContentType:@"myApp.image"];
attributeSet.title = @"My Old App";
attributeSet.contentDescription = @"This application help you in acheiving so & so";
CSSearchableItem *item = [[CSSearchableItem alloc] initWithUniqueIdentifier:@"myApp" domainIdentifier:@"com.myapp" attributeSet:attributeSet];
// Index the item.
[[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:@[item] completionHandler: ^(NSError * __nullable error) {
NSLog(@"Search item indexed");
}];
您甚至可以添加縮略圖時,搜索舊名稱的應用程序;您需要創建searchableItem
UIImage *image = [UIImage imageNamed:@"MercC"];
NSData *thumbNailData = UIImagePNGRepresentation(image);
attributeSet.thumbnailData = thumbNailData;
,只要你想在iTunes Connect中可以添加asmany關鍵字前添加以下代碼。 –
通過添加舊名稱和新名稱作爲關鍵字,用戶將能夠以舊名稱搜索應用程序。沒有其他快捷方式或plist輸入方法。 –
iPhone的搜索無法訪問關鍵字(「聚光燈搜索」)。 – Nili