Location Not Detected
Use Location Not Detected when the app cannot determine the patient’s location.
The patient can contact customer service or return to the homepage.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Error message | States that the location cannot be detected |
| 2 | Contact us action | Opens customer service |
| 3 | Homepage action | Returns to the homepage |
| 4 | Close action | Dismisses the popup |
Workflow
- Attempt to detect the patient’s location.
- Detect that location data is unavailable.
- Call
PUT /api/v3/appointments/book/error/location-not-detected. - Display the Location Not Detected popup.
- Select Contact us or Go to homepage.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Patient location is unavailable | Display the popup | Page object |
Request returns 200 | Render the returned page | Page object |
Request returns 405 | Display an application error | Error response |
| Session is invalid | Reject the request | Authentication error |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| Contact us selected | Open customer service | Navigation event |
| Go to homepage selected | Open the homepage | Navigation event |
| Close selected | Dismiss the popup | Close event |
Endpoint Resources
Location Not Detected
PUT
v3/appointments/book/error/location-not-detected
Returns a popup when the patient’s location cannot be detected. The popup provides options to contact customer service or return to the homepage.