Open and close the notification panel
Open or close the device notification panel during a test in App Low Code Automation to interact with push notifications or view SMS messages.
Push notifications and SMS messages appear in the device notification panel. Use the Notification panel command to open the panel in a single step, interact with a push notification or view an SMS message, and then close the panel to return to your app.
The same command works on both platforms:
- Android: Opens or closes the notification shade.
- iOS: Opens or closes the Notification Center.
You can use the Notification panel command to:
- Tap a push notification to check that it opens the right screen in your app.
- View an SMS message. For example, to read or validate its text.
- Close the panel so that your app is visible again.
Add a Notification panel step
Follow these steps to open or close the notification panel in your test:
- In the test editor, start typing
Notification, and then select Notification panel state from the command suggestions. The command appears in the Device & System Interactions group.
- Click the state field next to Notification panel, and then select one of the following options from the dropdown:
- Open: Opens the notification panel on the device.
-
Close: Closes the notification panel on the device.
- Press
Enterto run the step. The panel opens or closes on the device.
If the panel is already in the state that you select, the step passes without any action on the device. For example, Notification panel Open passes when the panel is already open. Because each step sets its own end state, the result doesn’t depend on the state of the panel before the step runs.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!