# Notification popup

### Ordinary prompt window

Ordinary prompt window provides information about the status of the devices, such as slam tracking state, glasses temprature level, device battery state.

![image0](https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-0.png)

**Enable Notification**

* Find the NRSessionConfig in your project

  <img src="https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-1.png" alt="image1" data-size="original">
* Check the “Enable Notifiction” box

  <img src="https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-2.png" alt="image2" data-size="original">

**Notification types**

* Currently provided notifiction windows:
  * Slam tracking lost
  * Glasses Temperature Warm
  * Glasses Temperature Hot
  * Phone Battery 30% Notification
  * Phone Battery 15% Notification
* Please refer to *NRNotificationListener* prefab under *NRSDK>Resources* and its *NRNotificationListener.cs* script to customize your notification message.

  <img src="https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-3.png" alt="image3" data-size="original">

### Error prompt window

Error prompt window provides information for sever error. It usually pops up when the devices has been unable to run properly.

![image4](https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-4.jpg)

**Customize error tips**

* Find the *NRErrorTips* prefab under *NRSDK>Resources*, copy it to your project.
* Modify and save it as a new prefab, and drag it to your SessionConfig.

  <img src="https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-5.jpg" alt="image5" data-size="original">

  <img src="https://nrealsdkdoc.readthedocs.io/en/latest/_images/n1-6.jpg" alt="image6" data-size="original">
* Modify prompt text

```csharp
// Static constants need to be replaced in awake
void Awake()
{
    NativeConstants.GlassesDisconnectErrorTip = "Please connect your Nreal Light Glasses.";
    NativeConstants.UnknowErrorTip = "Unkown error! \nPlease contact Nreal's customer service.";
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xreal.gitbook.io/nrsdk/v1.10.2/development/tools/notification-popup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
