Android 附近的广告会在附近的设备上触发任何类型的 UI 吗?
Will an Android Nearby advertisment trigger any kind of UI on nearby devices?
在 this article 之后我发现了一条评论
Advertising with an AppIdentifer lets other devices on the network discover this application and prompt the user to install the application.
第二个用户如何与该解决方案交互?有什么UI,比如通知吗?有人试过这个吗?这是否仅适用于 Android 电视设备等特定用例?
Nearby Connections 留给您(开发人员)创建对您的用例有意义的用户体验。 API 有两个方面。 advertising side and the discovering side。除非另一台设备调用发现 API,否则您做广告时什么也不会发生,即便如此,是否显示任何内容也取决于您的应用。
当第二个设备调用 startDiscovery 时,它将获得 onEndpointFound 回调。这是显示 UX 或调用 sendConnectionRequest(建立连接)的机会
在 this article 之后我发现了一条评论
Advertising with an AppIdentifer lets other devices on the network discover this application and prompt the user to install the application.
第二个用户如何与该解决方案交互?有什么UI,比如通知吗?有人试过这个吗?这是否仅适用于 Android 电视设备等特定用例?
Nearby Connections 留给您(开发人员)创建对您的用例有意义的用户体验。 API 有两个方面。 advertising side and the discovering side。除非另一台设备调用发现 API,否则您做广告时什么也不会发生,即便如此,是否显示任何内容也取决于您的应用。
当第二个设备调用 startDiscovery 时,它将获得 onEndpointFound 回调。这是显示 UX 或调用 sendConnectionRequest(建立连接)的机会