作为开发者,您可以将自己的应用或网站与支持 BLE 信标或支持 BLE 的智能设备相关联。该设备或信标附近的 Android 用户会在 Google 设置的“附近”部分看到相应消息,“附近快捷设置”图块会在受支持的设备上亮起,并且运行良好的消息将作为通知提出。您的消息可以指向 Play 商店或移动网站,也可以直接定向到您的应用(如果已安装)。此功能内置于 Google Play 服务中,因此您无需更改应用即可开始使用。
“附近通知”功能适用于所有类型的 Eddystone 信标,以及 iBeacon。
您可以使用“附近通知”功能提供两种基本类型的体验:
链接到 HTTPS 网址以向用户提供通知,并在用户点按通知时在浏览器中打开网址。
触发应用 intent 以启动已安装的应用并执行特定操作。如果用户未安装应用,则会转到可安装应用的 Play 商店;然后,用户可以继续使用开发者指定的功能。
[null,null,["最后更新时间 (UTC):2025-08-13。"],[[["\u003cp\u003eNearby Notifications enables users to discover nearby content and services through location-specific notifications, without needing to have the related app installed.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use Nearby Notifications to drive app installs, open social profiles, initiate conversations, and direct users to relevant content or actions based on their proximity to a beacon or smart device.\u003c/p\u003e\n"],["\u003cp\u003eNotifications can be linked to an HTTPS URL to open a webpage, or they can trigger an app intent to launch an installed app or prompt installation if the app isn't present.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is built into Google Play Services, is compatible with various beacon types (Eddystone, iBeacon), and works on Android 4.4 and above.\u003c/p\u003e\n"]]],[],null,["# Nearby Notifications Overview\n\n| **Note:** Nearby Notifications is supported on Android 4.4 (KitKat) and newer.\n\nNearby Notifications helps users to discover what's around them, by surfacing\nlocation-specific notifications for apps and websites, with no prior app\ninstall required. Using Nearby Notifications, you can:\n\n- Drive your own app installs.\n- Open personal or business profiles in social apps.\n- Launch conversations or chatbots inside messaging apps.\n- Drive consumers to content about nearby products.\n- Help users explore store inventory.\n- Drive checkins, reviews within local/travel apps.\n\nAs a developer, you can associate your app or website with a BLE beacon or BLE-\ncapable smart device. Android users near that device or beacon will see the\nmessage in the Nearby section of Google Settings, the Nearby Quick Settings tile\nwill light up on supported devices, and messages that perform well will be\nraised as notifications. Your message can either lead to the Play Store, a\nmobile website, or directly to your app if it's already installed. This\nfunctionality is built in to Google Play Services, so you don't need to change\nyour app to start using it.\n\nNearby Notifications works with all types of Eddystone beacon, and also iBeacon.\n\nThere are two basic types of experiences that you can provide using\nNearby Notifications:\n\n- **Link to an HTTPS URL** to provide a notification to the user, and open the URL in the browser when the user taps the notification.\n- **Trigger an app intent** to launch an app that is already installed and perform a specific action. If the app isn't installed, the user is taken to the Play Store where the app can be installed; the user can then continue to the feature specified by the developer.\n\nNeither experience requires that an app is installed on the user's device."]]