Skip to content

Commit 75c29ce

Browse files
IPS sample readme and Android permission (#1455)
1 parent c70551c commit 75c29ce

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/MAUI/Maui.Samples/Platforms/Android/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<uses-permission android:name="android.permission.INTERNET" />
77
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
88
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
9-
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
10-
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
9+
<uses-permission android:name="android.permission.BLUETOOTH" />
10+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
1111
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
1212
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
1313
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/IndoorPositioning.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ArcGIS.Samples.IndoorPositioning
2222
name: "Show device location using indoor positioning",
2323
category: "Location",
2424
description: "Show your device's real-time location while inside a building by using signals from indoor positioning beacons.",
25-
instructions: "Bring the device within range of an IPS beacon. The system will ask for permission to use the device's location if the user has not yet used location services in this app. It will then start the location display with auto-pan mode set to `Navigation`.",
25+
instructions: "When the device is within range of an IPS beacon, toggle \"Show Location\" to change the visibility of the location indicator in the map view. The system will ask for permission to use the device's location if the user has not yet used location services in this app. It will then start the location display with auto-pan mode set to `Navigation`.",
2626
tags: new[] { "BLE", "Bluetooth", "GPS", "IPS", "beacon", "blue dot", "building", "facility", "indoor", "location", "map", "mobile", "navigation", "site", "transmitter" })]
2727
public partial class IndoorPositioning : ContentPage, IDisposable
2828
{

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ An indoor positioning system (IPS) allows you to locate yourself and others insi
1010

1111
## How to use the sample
1212

13-
Bring the device within range of an IPS beacon. The system will ask for permission to use the device's location if the user has not yet used location services in this app. It will then start the location display with auto-pan mode set to `Navigation`.
13+
When the device is within range of an IPS beacon, toggle "Show Location" to change the visibility of the location indicator in the map view. The system will ask for permission to use the device's location if the user has not yet used location services in this app. It will then start the location display with auto-pan mode set to `Navigation`.
1414

1515
When there is no IPS beacons nearby, or other errors occur while initializing the indoors location data source, it will seamlessly fall back to the current device location as determined by GPS.
1616

1717
## How it works
1818

19-
1. Load an IPS-enabled map. This can be a web map hosted as a portal item in ArcGIS Online, an Enterprise Portal, or a mobile map package (.mmpk) created with ArcGIS Pro.
20-
2. Create an `IndoorsLocationDataSource` with the positioning feature table (stored with the map) and the pathways feature table after both tables are loaded.
19+
1. Load an IPS-aware map. This can be a web map hosted as a portal item in ArcGIS Online, an Enterprise Portal, or a mobile map package (.mmpk) created with ArcGIS Pro.
20+
2. Create and load an `IndoorsLocationDataSource` with the positioning feature table (stored with the map), then create an `IndoorsLocationDataSource` from it.
2121
3. Handle location change events to respond to floor changes or read other metadata for locations.
2222
4. Assign the `IndoorsLocationDataSource` to the map view's location display.
2323
5. Enable and disable the map view's location display using `StartAsync()` and `StopAsync()`. Device location will appear on the display as a blue dot and update as the user moves throughout the space.
@@ -27,6 +27,7 @@ When there is no IPS beacons nearby, or other errors occur while initializing th
2727

2828
* ArcGISFeatureTable
2929
* FeatureTable
30+
* IndoorPositioningDefinition
3031
* IndoorsLocationDataSource
3132
* Location
3233
* LocationDisplay

src/MAUI/Maui.Samples/Samples/Location/IndoorPositioning/readme.metadata.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"relevant_apis": [
3131
"ArcGISFeatureTable",
3232
"FeatureTable",
33+
"IndoorPositioningDefinition",
3334
"IndoorsLocationDataSource",
3435
"Location",
3536
"LocationDisplay",

0 commit comments

Comments
 (0)