Please login to access all of the features of the Community Site.

StartBeaconMonitoring

Mobile7.0  Core17.1

Starts monitoring for your organization's beacons so the person is checked in and out automatically. Before it starts, the command checks the phone's location and Bluetooth access and shows a sheet that walks the person through whatever is missing. Use it on the page where people opt in to automatic check-in.

The CommandParameter is optional. Leave it empty to use the default screens, or pass a StartBeaconMonitoringCommandParameters object to change the text or image on each screen.

Warning

The app must be built with Proximity Attendance enabled (the EnableProximityAttendance build option). Without it, the command shows a "Proximity Attendance Unavailable" alert and does not start.

Note

Monitoring needs location access set to Always (iOS) or Allow all the time (Android), with precise location on, plus Bluetooth access. The command asks for location access, and on Android for Bluetooth access, then sends the person to the system settings for anything that has to be changed there. On iOS, Background App Refresh must also be on, or the command shows an alert and does not start.

Properties

PropertyTypeDescription
AllowLocationPermissionTitlestringTitle of the screen that asks for location access. Defaults to "Allow Location Access to Start Proximity Check In".
AllowLocationPermissionSubtitlestringSubtitle of the location screen. Defaults to "Your location lets the app check you in automatically when you arrive."
AllowLocationPermissionViewViewReplaces the built-in instruction image on the location screen.
AllowBluetoothPermissionTitlestringTitle of the screen that asks for Bluetooth access (Android only). Defaults to "Allow Bluetooth to Start Proximity Check In".
AllowBluetoothPermissionSubtitlestringSubtitle of the Bluetooth screen. Defaults to "Choose Allow so the app can find check-in beacons nearby."
AllowBluetoothPermissionViewViewReplaces the built-in instruction image on the Bluetooth screen.
OpenSettingsTitlestringTitle of the screen that sends the person to the system settings. Defaults to "Update Your Location Settings".
OpenSettingsSubtitlestringSubtitle of the settings screen. Defaults to "Choose Always and turn on Precise Location." on iOS and "Choose Allow all the time and turn on Use precise location." on Android.
OpenSettingsViewViewReplaces the built-in instruction image on the settings screen.
SuccessScreenTitlestringTitle of the screen shown once monitoring has started. Defaults to "Success".
SuccessScreenSubtitlestringSubtitle of the success screen. Defaults to "Location-based check-in has been successfully configured."
SuccessScreenViewViewReplaces the built-in check mark on the success screen.

Examples

<Button Text="Turn On Automatic Check-in"
    StyleClass="btn, btn-primary"
    Command="{Binding StartBeaconMonitoring}" />
<Button Text="Turn On Automatic Check-in"
    StyleClass="btn, btn-primary"
    Command="{Binding StartBeaconMonitoring}">
    <Button.CommandParameter>
        <Rock:StartBeaconMonitoringCommandParameters AllowLocationPermissionTitle="Check In Automatically"
            SuccessScreenSubtitle="You're all set. We'll check you in when you arrive." />
    </Button.CommandParameter>
</Button>

See Proximity Attendance for setup, device requirements and troubleshooting.