Purple DS web pages can be accessed in Purple DS JavaScript API, and can be accessed on the app, publication, pages, etc.

You can find more information and keys  in the technical documentation.


Example:

function onPurpleLoad () {

    purple.metadata.getMetadata (" app_id ", function (value) {

        ...

    });

}


The following keys are available:

Metadata Keys

  • app_id
  • APP_VERSION
  • preview_app
  • device_id
  • DEVICE_MODEL
  • device_os
  • platform
  • locale
  • manager_base_url
  • push_registration_token
  • entitlement_login
  • entitlement_token
  • entitlement_forced_login_enabled
  • entitlement_login_mode
  • ISSUE_ID
  • issue_name
  • publication_id
  • publication_name
  • page_id
  • page_alias
  • page_title
  • page_index
  • page_filename


Kiosk Keys (not available in web kiosk )

  • getSubscriptions

  • purchase

  • subscribe