Action Screens

Action Screens

Action Screens lets you show an interactive Accept / Reject screen to your users the moment something needs an answer — a new order, a trip request, a login approval. You trigger it from your server through Webtonative Push, and you decide what happens when the user accepts, rejects or does not respond in time.

On Android, the screen opens full screen, even on a locked phone. On iOS, it arrives as a high-priority notification with Accept and Reject buttons, and opens full screen inside the app.

💡

This feature is available for both Android and iOS as an add-on. It works only with Webtonative Push. OneSignal and Firebase are not supported for Action Screens.

Action Screens is bundled into your app. After you create or edit a screen, click Save & Rebuild so the screen is included in your next build.

When do you need Action Screens?

New orders and deliveries

A delivery partner or store gets a new order and has a few seconds to accept it before it goes to someone else.

Trip and booking requests

A driver or service partner sees the pickup, drop and fare, and accepts or declines in one tap.

Login approvals

A user confirms or blocks a sign-in from a new device or location.

Alerts that need a response

An SOS alert, a visitor at the gate or an incoming call that the user must act on right away.

How does Action Screens benefit your users?

Hard to miss

Hard to miss

The screen takes over the phone on Android, even when it is locked. On iOS, it arrives as a Time Sensitive notification that breaks through Focus.

One tap does the work

One tap does the work

Accept or Reject calls your API, opens a page and closes the screen. Users do not need to open the app and look for the request.

Built-in countdown

Built-in countdown

Set how long users have to respond. If time runs out, your Reject actions run by themselves, so no request stays open.

Set up once, works on both platforms

Set up once, works on both platforms

Screens you create are shared across your Android and iOS apps from one dashboard.

Where to find it in your dashboard

My Apps ➡️ Edit your app ➡️ Add-ons ➡️ Notifications ➡️ Action Screens

How it works on Android and iOS

Apple only lets calling apps take over the screen from a notification, so the experience is slightly different on each platform.

Android

The action screen opens full screen, even over the lock screen. Users accept or reject from the buttons on the screen, and the countdown is visible.

iOS

When the phone is locked or the app is in the background, users get a Time Sensitive notification with Accept and Reject buttons. Tapping it, or having the app open, shows the full screen.

Fallback on Android

A plain notification with Accept and Reject buttons is shown when the full-screen permission is denied, during Focus or Do Not Disturb, or if the HTML fails to load.

Countdown on iOS

The countdown is applied but not shown on the lock screen. When it ends, the notification is not removed. It changes into an expired notification that shows an expiry message.

Steps to open Action Screens

Add the Action Screens Add-on

Click + ADD next to Add-ons in the left menu and select Action Screens. It then appears in the left menu under Notifications.

Configure Webtonative Push

Action Screens are delivered through Webtonative Push. If it is not set up yet, the page shows Action Screens requires Webtonative Push with an Integrate Webtonative Push button. Set it up, then come back to Action Screens.

Webtonative Push is checked for each platform. If push is configured for Android but not for iOS, you can create screens in the Android view, while the iOS view asks you to configure Webtonative Push for iOS first.

Click on Add Action Screens

Click Add Action Screen on the empty page, or + Add Action Screens below your saved screens.



Enable Time Sensitive Notifications (iOS Only)

On iOS, action screens are delivered as Time Sensitive notifications so they can break through Focus modes. The first time you click Add Action Screen in the iOS view, a pop-up asks you to enable the Time Sensitive Notifications capability on your app's Bundle ID in your Apple Developer account. This is a one-time step for each app.



Follow these steps in your Apple Developer account:

  • Go to https://developer.apple.com/account (opens in a new tab) and sign in. You need the Account Holder or Admin role.

  • From the left sidebar, click Certificates, Identifiers & Profiles.

  • Click Identifiers, then select your app's Bundle ID.

  • In the capabilities list, tick Time Sensitive Notifications. Click Save and confirm the change.

  • Return to the dashboard and click Yes, I've enabled it. Webtonative checks the capability again before you create the action screen.

Click Cancel to close the pop-up without continuing. You cannot create action screens for iOS until the capability is enabled.

Choose a Template

Pick a ready-made template to start with its design, actions, countdown and fallback already filled in. The badge on each card shows its default countdown. Choose Create your own to start from a blank screen and upload your own HTML.



💡

Picking a template gives you your own copy. Later updates to the template do not change screens you have already created.

Steps to set up Basic Details

Enter the Screen Name

The name that identifies the screen in your dashboard, for example New Order. Limit: 50 characters.



Check the Screen ID

The Screen ID is created from the screen name, for example new_order. Your server uses it to trigger the screen. Use lowercase letters, numbers and underscores. It must be unique in your app. Click the copy icon to copy it.

The Screen ID cannot be changed after you save the screen.

Enter the Description

Add a short note about what the screen is for. This field is optional. Limit: 200 characters.

Upload the HTML Template

Drag and drop your file or click Browse files.



One file only

Upload a single .html file, up to 2 MB. Zip files and separate asset files are not supported.

Everything inside the file

Keep CSS and JavaScript inline, and add images as base64 or SVG. Do not load external scripts, fonts or images.

Check the Available Variables

After uploading, or when you start from a template, click Available Variables. It lists the variables found in your HTML, plus system variables. Tap a variable to copy it.



Preview the HTML

Click Preview HTML to see your screen in a phone frame with sample values filled in. Click Download HTML to download the file, edit it and upload it again with Change.



Choose the Notification Sound

Pick a sound for this screen, or leave it on Default to use the phone's sound. This field is optional. One sound is used per screen, on both Android and iOS. Custom sounds must be .mp3 or .wav files, the only formats supported on both platforms.



Custom Sound add-on not added

The sound stays on Default. Click Add Custom Sound add-on to add it.

Custom sounds available

Choose a sound from the dropdown and click play to listen to it.

Click Next to continue.

Steps to set up Accept & Reject

Add Actions to On Accept and On Reject

On Accept runs when the user taps Accept. On Reject runs when the user taps Reject or the countdown runs out. Click + Add Action in either section to add a step.



Actions run from top to bottom. Drag the handle to reorder them, or click × to remove one. Every chain ends with Finish (Final Step): Dismiss Action Screen.

Choose an Action



Call your API

Sends a request to your server, for example to mark an order as accepted.

Open a URL

Opens a page inside your app, for example https://www.example.com/orders/A1001.

Dismiss for others

If this screen was sent to more than one device, it closes on all the other devices as soon as one of them accepts.

Set Up Call your API

Choose the method and enter your API URL, for example https://api.example.com/orders/A1001/accept (opens in a new tab). The URL must start with https://.



Method

Choose POST, PUT or PATCH.

Headers

Add key and value rows with + Add row, for example Authorization : Bearer followed by your auth_token variable.

Query Params

Add key and value rows that are added to the URL, for example source : action_screen.

Blocking

When checked, the next step waits until the API responds, including any retries. When unchecked, the request runs in the background and the next step runs at once.

On API Failure

Retry 3x then continue: the request is retried 3 times before the chain moves on. Stop the chain: the remaining steps are skipped and the screen is dismissed.

Request Body

JSON sent with the request, for example the order_id and the accepted_at time. It must be valid JSON.

💡

Every Call your API request automatically includes your app's WebView cookies for that domain and the values of all variables used in the screen. For token-based auth, add an Authorization header and send the token in your trigger API data.

Set Up Open a URL and Dismiss for others

Enter the page to open, for example https://www.example.com/orders/A1001 (opens in a new tab). Add Dismiss for others when the same user may be logged in on more than one device.



Set the Countdown

At the bottom of the step, choose how long users have to respond. If they do not act before the countdown ends, the On Reject chain runs by itself and the screen is dismissed.



Options: No Countdown, 20s, 30s, 40s, 45s, 60s, 2 min and 3 min. Choose No Countdown to keep the screen open until the user responds.

On iOS, the Time Sensitive notification is not removed when the countdown ends. It changes into an expired notification. You can set your own expiry message in the send or withdraw API call. If you do not set one, the default expiry message is shown.

Click Next to continue.

Steps to set up the Fallback

The fallback is what your screen looks like as a plain notification. It appears instead of the full-screen action screen when the full screen can't be shown, for example when the full-screen permission isn't allowed, the HTML fails to load, or the user is on a phone call. The Preview on the right updates as you type.

Enter the Title

The notification headline, for example New order received. You can add variables here, such as customer_name.



Enter the Message

The notification text, for example You have a new delivery request. Accept within 30 seconds. You can use variables here. Limit: 500 characters.

Enter the Button Labels

Enter the Accept Button Label and Reject Button Label, for example Accept and Decline. Button labels are plain text only. Variables cannot be used here.

💡

The fallback buttons run the same Accept / Reject chains you set up in Step 2. Only the look changes.

Choose When to Use Fallback (Android)

The fallback is always used when the full-screen permission is not granted or the HTML template fails to load. Tick User is on a phone call to also use it during calls.



On iOS, the fallback content is the main lock-screen notification. Its title, message and button labels are what users see before they open the screen.

Click on Save, then Save & Rebuild

Click Save to create the screen. Then click Save & Rebuild so the screen is included in your app. New or edited screens work only in builds created after you rebuild.

Manage Your Action Screens

Click the ⋯ menu on any screen card.



Edit

Opens the screen with all saved values. You can move between steps and save from any step. The Screen ID cannot be changed.

Duplicate

Creates a copy of the screen that you can change and save with a new Screen ID.

Copy ID

Copies the Screen ID to use in your API call.

Delete

Deletes the screen after you confirm. API calls using this Screen ID stop working after the next rebuild.

💡

If the add-on is active for both Android and iOS, every create, edit and delete applies to both. If you add it for the second platform later, your saved screens are copied there automatically.

Using Variables

Variables let one screen show different data every time. Write the variable name inside double braces in your HTML, actions and fallback, for example customer_name, and send their values in your trigger API call.

Can be used in

HTML, Open a URL, API URL, headers, query params, request body, and the fallback title and message.

Cannot be used in

Screen Name, Screen ID, Description and the fallback button labels.

System variables are filled in automatically: countdown, request_id, screen_id, user_id, device_platform and timestamp. Any variable you do not send a value for is replaced with empty text.

Functions for Your HTML

Your HTML connects its buttons to the app with four functions. They work only inside an action screen in your app, not on your website or in a browser. Call them directly, without arguments.

onAccept()

Runs the On Accept chain, then dismisses the screen.

onReject()

Runs the On Reject chain, then dismisses the screen.

openApp()

Dismisses the screen and opens your app, without running a chain.

dismiss()

Closes the screen without running any chain.

<button onclick="onAccept()">Accept</button>
<button onclick="onReject()">Reject</button>
<button onclick="openApp()">View in app</button>
<button onclick="dismiss()">Close</button>

Only the first response counts. After any of these functions is called, later taps are ignored, so a double tap cannot run two chains.

Trigger an Action Screen via API

Your server shows an action screen with one call to the Webtonative Push API. The call includes your App ID, the Screen ID and the users to send it to, plus the values for your variables.

  • Generate your API key and secret in Organization Settings ➡️ API Keys.

  • Send a value for every variable used in the screen. Any variable you do not send is replaced with empty text.

  • On iOS, you can set the expiry message in the send or withdraw call. If you do not set one, the default expiry message is shown.

  • Every action screen sent through the API appears in Push Notification ➡️ Dashboard with the type API (Action Screen).

💡

For the request format, examples and error codes, see the Action Screens API documentation (opens in a new tab).

Things to Know Before Publishing

Android

On Android 14 and above, users must allow the full-screen notification permission, otherwise the fallback is shown. Google Play asks for a full-screen intent declaration when you publish.

iOS

Enable the Time Sensitive Notifications capability on your Bundle ID in your Apple Developer account. Custom sounds must be 30 seconds or shorter. Upload them as .mp3 or .wav, the only formats supported. When the countdown ends, the notification changes into an expired notification with your expiry message, or the default one. Accept and Reject actions still run as usual.

Some Android phone brands can delay notifications because of battery restrictions. Test on the devices your users have.

Frequently Asked Questions

Q1. Why does the page ask me to configure Webtonative Push?

A. Action Screens are delivered only through Webtonative Push. Set it up for each platform you want to use. OneSignal or Firebase being configured does not unlock Action Screens.

Q2. How do I test Action Screens?

A. Test on a real device with a new build. Click Save & Rebuild, install the build, then call the trigger API from your server with your Screen ID. Action Screens is a native feature, so it does not work in a desktop browser.

Q3. I triggered the API, but only a plain notification appeared. Why?

A. The fallback is shown when the full-screen permission is not granted on Android 14+, the HTML fails to load, the user is on a call (if enabled), or the installed build does not include this screen yet. Rebuild and install the latest build.

Q4. Why does the full screen not open on iOS when the phone is locked?

A. Apple only lets calling apps take over the screen. On iOS, users get a Time Sensitive notification with Accept and Reject buttons. The full screen opens when they tap the notification or when the app is already open.

Q5. What happens when the countdown runs out?

A. The On Reject chain runs by itself and the screen is dismissed. On iOS, the notification is not removed. It changes into an expired notification that shows your expiry message, set in the send or withdraw API call, or the default expiry message if you did not set one.

Q6. My variables show up empty. What should I check?

A. Check that the data object in your API call has a value for every variable, with exactly the same name. Any variable not sent is replaced with empty text.

Q7. How does my API know which user accepted?

A. Every Call your API request includes the app's WebView cookies for that domain and the values of all variables used in the screen. You can also add an Authorization header with a token you send in data.

Q8. What happens if a user is logged in on two devices?

A. The screen is sent to all of the user's devices, but only the first response runs a chain. Add Dismiss for others to close it on the other devices as soon as one accepts.

Q9. Why was my HTML file rejected?

A. Only a single .html file up to 2 MB is supported. Keep CSS, JavaScript and images inside the file, and fix any errors shown with line numbers.

Q10. Can I change the Screen ID after saving?

A. No. The Screen ID is locked after the first save because your server uses it. To use a new ID, duplicate the screen and save it with a new ID.

Q11. I edited my screen, but the app still shows the old one. Why?

A. The HTML is bundled into the app. Click Save & Rebuild and install the new build to see your changes.

Q12. Why does a Time Sensitive Notifications pop-up appear on iOS?

A. Action screens on iOS are sent as Time Sensitive notifications, which need the Time Sensitive Notifications capability on your app's Bundle ID. Enable it once in your Apple Developer account under Identifiers, then click Yes, I've enabled it.

Q13. Do I need to update my app on the stores?

A. Yes. Action Screens is part of the native build, so publish the rebuilt app for your store users to get it.