Stay organized with collections
Save and categorize content based on your preferences.
The Nearby Messages API has the potential to be battery-intensive due to the way
it uses Bluetooth and other device resources to detect and communicate with
nearby devices. To ensure that users are in control of the experience, an opt-in
dialog is presented the first time the user accesses the Nearby Messages API.
The user must provide consent for Nearby to utilize the required device
resources.
BLE Only
You can avoid the opt in dialog if your app has been granted the
ACCESS_FINE_LOCATION permission and only uses BLE during publishes and
subscribes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-20 UTC."],[[["The Nearby Messages API requires user consent to utilize device resources due to potential battery consumption from Bluetooth and other resource usage."],["An opt-in dialog is presented upon first API access, requiring explicit user permission."],["The opt-in dialog can be bypassed if the app only uses Bluetooth Low Energy (BLE), has been granted ACCESS_FINE_LOCATION permission, and is configured with the NearbyPermissions.BLE option."]]],[]]