适用于iOS和通用链接的Google应用索引 [英] Google app indexing for iOS and universal links
问题描述
有人知道谷歌应用程序索引如何适用于通过通用链接进行新实施的iOS?
据我所知,来自 https://developers.google.com/app-indexing / ios / app
Does anybody know how google app indexing works for iOS with new implementation via universal links? As I understand from https://developers.google.com/app-indexing/ios/app
适用于iOS 9的Google App索引文档提供来自Google搜索的iOS通用链接
。适用于iOS版本7和8的应用程序索引现已弃用
,不再适用于新集成
Google App Indexing documentation for iOS 9 serves iOS universal links from Google Search in Safari. App Indexing for iOS versions 7 and 8 is now deprecated and no longer available for new integrations
但索引机制不是明确。我们如何添加可以在应用中打开的链接到谷歌搜索?
应用程序端唯一的操作就是注册应用程序:
But indexing mechanism is not clear. How we can add links that can be opened in app to google search? The only action from app-side is registering of app with:
[[GSDAppIndexing sharedInstance] registerApp:your iTunes ID];
Android上没有应用索引对象的公告: https://developers.google.com/app-indexing/android/publish
There are no announcement of app index objects as for Android: https://developers.google.com/app-indexing/android/publish
那么我们可以在哪里添加索引链接?
iOS 9自定义URL方案用于帮助Google引擎查找iOS应用的网站内容:
So where we can add links for indexing? Before iOS 9 custom URL scheme was used to help google engine find site content for iOS apps:
<html>
<head>
...
<link rel="alternate" href="ios-app://{itunes_id}/{scheme}/{host_path}" />
...
</head>
我们是否还应该在iOS 9上使用它?
我们应该使用自定义方案
gsd- {ourscheme}用于索引?
Should we still use it for iOS 9?
Should we use custom scheme
gsd-{ourscheme} for indexing?
推荐答案
新的集成(来自iOS 9)基于通用链接并使用'http'方案,因此无需使用自定义gsd-scheme。
The new integration (from iOS 9) is based on universal links and is using 'http' scheme, so there is no need to use custom gsd-scheme.
无需使用< link rel>
标记发布深层链接。深层链接通过 apple-app-site-association
文件发布。
There is no need to publish the deep-links using <link rel>
tags. The deep-links are published via apple-app-site-association
file.
按照官方文档中列出的步骤进行操作,您应该没问题:
Follow the steps listed in the official documentation and you should be fine:
https://developers.google.com/app-indexing/ios/app
这篇关于适用于iOS和通用链接的Google应用索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!