Building a Purple Experience
...
Components
Action URLs and Deep linking

List of Action URLs

59min

App menu

Open native app menu

Action URL
Parameter

purple://app/menu/close

This action URL opens the native app menu. If the app menu is already open, it stays open.



Close native app menu

Action URL
Parameter

purple://app/menu/open

This action URL closes the native app menu. If the app menu is already closed, it stays closed.



Toggle native app menu

Action URL
Parameter

purple://app/menu/toggle

This Action URL opens the native app menu when it is closed. And when it's open, it is closed.



App interaction with operating system

Open feedback mail

Action URL
Parameter

purple://app/feedback/mail/open

This action URL opens a pre-filled email for feedback as configured within the dynamic resources.



Open external URL

Action URL
Parameter
Example

purple://app/open/external/url/<URL_ENCODED_URL>

This action URL opens the given URL by handing it over to the underlying OS.



Register app for push

This action URL does not work below Android 13.

Action URL
Parameter

purple://app/push/register

This action URL triggers the push registration for the application. This will display a system dialog asking for permission to receive push notifications.



Content

Note that all content related action URLs starting with purple://content/ only work within the opened issue.

Open issue

Action URL
Parameter

purple://kiosk/issue/<ISSUE_ID>/open

This action URL opens an issue using the given issue ID.



Open issue by external issue ID

Action URL
Parameter

purple://kiosk/issue/by_external_id/<EXTERNAL_ISSUE_ID>/open?fallback_url= <URL_ENCODED_URL>&target=<TARGET>

This action URL opens an issue using the given external issue ID. The external issue ID may be part of your CMS.



Add bookmark for content

Related information: You can configure your own view for created bookmarks under the following setting in Purple Manager:

"Your app" => "App Design" => "General" => "Advanced Settings" => "Bookmarks" => "Custom Bookmarks UI URL"

That configured view can be opened by using this action URL.

Action URL
Parameter

purple://content/bookmark/add

This action URL adds a new bookmark.



Open page in content by page id

Action URL
Parameter

purple://content/page/<PAGE_ID>/open

This action URL opens a page by the given page id.



Open page in content by page alias

Action URL
Parameter

purple://content/page/alias/<PAGE_ALIAS>/open

This action URL opens a page by the given page alias.



Open page in content by page index

Action URL
Parameter

purple://content/page/index/<PAGE_INDEX>/open

This action URL opens a page by the given page index.



Share page in content by page alias

In order for this action URL to work, "Content Share" must be activated in Purple Manager.

"Your app" => "Sharing" => "General" => "Basic Settings" => "Sharing" => "Content Share enabled"

Action URL
Parameter

purple://content/page/alias/<PAGE_ALIAS>/share

This action URL shares a page by the given page alias.



Open the TOC from the content

Action URL
Parameter

purple://content/toc/open

This action URL opens the TOC of the issue.



Entitlement

Start oauth entitlement flow

Action URL
Parameter

purple://kiosk/entitlement/login/oauth/start?success_url=<URL_ENCODED_URL>

This action URL starts the oauth login flow. If the oauth login flow was successful completed, the success_url will be opened.



Show entitlement login view

In order for this action URL to work, "Custom UI Login URL" must be activated in Purple Manager.

"Your app" => "Entitlement" => "App Configuration" => "Basic Settings" => "Entitlement" => "Custom UI Login URL"

Action URL
Parameter

purple://kiosk/entitlement/login/open

This action URL opens the entitlement login view.



Perform logout for user

Action URL
Parameter

purple://kiosk/entitlement/logout/perform?success_url=<URL_ENCODED_URL>

This action URL performs the entitlement logout. If the logout was successful completed, the success_url will be opened.



In-app purchases

Purchase product by product ID

Action URL
Parameter

purple://kiosk/products/<PRODUCT_ID>/purchase

This action URL starts an in-app purchase for the given product id. The product ID must be either from the Apple App Store or from the Google Play Store.



Restore purchases on device

Action URL
Parameter

purple://kiosk/products/restore

This action URL restores purchases on the device.



Show code redemption view

This action URL is for iOS only.

Action URL
Parameter

purple://store/coderedemption/open

This action URL opens the code redemption view.



Privacy

Show ATT flow with optional custom html view

This action URL is for iOS only. The flow is only shown if the app user has not seen the ATT system dialog before and has selected one of the provided options.

Action URL
Parameter

purple://app/consent/privacy_info/open

This action URL starts the ATT flow. This flow consists of two steps depending of the app configuration within the purple manager.

Step 1: Show a custom html info view before the ATT dialog is shown. This step is optional and must be configured within the Purple Manager.

"Your app" => "Consent/Push/Analytics" => "Privacy" => "iOS" => "Basic Settings" => "App Tracking Transparency (ATT)"

Step 2: Show the ATT dialog (This is a system dialog from iOS).



Show privacy settings view from CMP

The CMP itself must be configured in Purple Manager. If no CMP is configured, this action URL will not work.

"Your app" => "Consent/Push/Analytics" => "Consent Management" => "General" => "Basic Settings"

Action URL
Parameter

purple://app/consent/privacy_manager/open

This action URL opens the settings view from your configured CMP.



Sharing

Share app or issue

In order for this action URL to work, "App Share" must be activated in Purple Manager.

"Your app" => "Sharing" => "General" => "Basic Settings" => "Sharing" => "App Share enabled"

Action URL
Parameter

purple://app/share_app_or_issue

This action URL shares the current issue if one is open. Otherwise the app is shared.



Share app or issue or page

In order for this action URL to work, "App Share" or "Content Share" must be activated in Purple Manager.

"Your app" => "Sharing" => "General" => "Basic Settings" => "Sharing" => "App share enabled"

"Your app" => "Sharing" => "General" => "Basic Settings" => "Sharing" => "Content Share enabled"

Action URL
Parameter

purple://app/share_app_or_issue_or_page

This action URL shares the current page if an issue is open and "Content sharing" is activated in Purple Manager.

If the above case does not apply the current issue will be shared if it is open, otherwise the app will be shared.



Views

Open home view

This action URL can be customized by "Custom HTML start point" in Purple Manager. Once configured and released to your app ensure that the website keeps valid at the configured location.

"Your app" => "Basic Settings" => "General" => "Basic Settings" => "Custom HTML start point"

Action URL
Parameter

purple://app/home/open

This action URL opens the home view of the app. The home view itself is any html file within the dynamic resources.



Open onboarding view

In order for this action URL to work, "HTML Onboarding" must be activated in Purple Manager.

"Your app" => "Basic Settings" => "General" => "Basic Settings" => "HTML Onboarding"

Action URL
Parameter

purple://app/onboarding/app_start/open

This action URL opens the onboarding view which is shown on first app start.



Open app info view

Action URL
Parameter

purple://app/info/open

This action URL opens the app information view.



Open app settings view

Action URL
Parameter

purple://app/settings/open

This action URL opens the app settings view.



Show custom html view from dynamic resources

The following two variants each open an existing html file from the dynamic resources. The two variants differ only in one point that comes into play in an Android app. For Android's app behavior please read the red warning below.

As a suggestion for good structuring, always use the storefront variant if you want to reference a view from the storefront and the app variant for all storefront independent views. Such as a FAQ page or a privacy policy page.

Androids app behavior for both variants:

The app variant opens the html file on top of the current view context while the storefront variant navigates to a kiosk view context before opening the html.

Open app related html files

Action URL
Parameter

purple://app/resource/dynamic/<PATH>?display_mode=<DISPLAY_MODE>&title_bar=<TITLE_BAR>&controls=<CONTROLS>&force_status_bar=<FORCE_STATUS_BAR>&app_logo=<APP_LOGO>&bounces=<BOUNCES>

This action URL opens a hml file within an in-app-browser. The appearance of the in-app-browser can be configured by params.

Note: The bounces url parameter is for iOS only.



Open storefront related html files

Action URL
Parameter

purple://storefront/resource/dynamic/<PATH>?display_mode=<DISPLAY_MODE>&title_bar=<TITLE_BAR>&controls=<CONTROLS>&force_status_bar=<FORCE_STATUS_BAR>&app_logo=<APP_LOGO>&bounces=<BOUNCES>

This action URL opens a hml file within an in-app-browser. The appearance of the in-app-browser can be configured by params.

Note: The bounces url parameter is for iOS only.



Standard system protocols

Open mail app

Action URL
Parameter

mailto:

This action URL opens the default mail app from your device to write and send an email.



Open phone app to start a call

Action URL
Parameter

tel:

This action URL opens the default phone app from your device for a call.