Digia Academy
Digia StudioDiscordLinkedIn
  • Introduction
    • FAQs
  • What's New
    • 2024
      • March
  • DIGIA STUDIO INTRODUCTION
    • Dashboard
    • Builder Tool
      • Navigation Menu
      • Tool Bar
      • Pages and Widgets Panel
      • Canvas Area
      • Properties Panel
    • Creating a New Project
    • Creating new Pages
    • Working with Widget Tree
    • Build Your First App
      • Hello World
      • Bytes App
        • Onboarding
        • Defining API Calls
        • Courses
        • Articles
        • Viewing your App
    • SDK Integration
      • Insert Single Pages from Digia Studio
  • Actions
    • Call API Rest Action
    • Call Rest API
    • Pop Current
    • Pop to Route
    • openUrl
    • Go To Page
    • Post Message
    • Set Page State
    • Wait (delay)
    • Drawer
    • Toast
    • Open Dialog
    • Share
    • Copy to Clipboard
  • Operations
    • API Call
    • Operators
      • Json Operators
      • Logical Operators
      • Date Time Operators
      • Math Operators
      • String Operations
  • BUILDING UI
    • Widgets
      • Form Widgets
        • PinField
        • Calendar
        • Text Form Field
      • Base Widgets
        • Animated Button
        • Check Box
        • Video Player
        • Spacer
        • Stack
        • Wrap
        • Text
        • Avatar
        • Rich Text
        • Image
        • Button
        • Icon
        • Switch
        • Sized Box
        • HtmlView
        • Lottie Animation
        • Linear Progress Bar
        • YouTube Player
        • Circular Progress Bar
      • Layout Widgets
        • ListView
        • Web View
        • Future Builder
        • Conditional Builder
        • Stream Builder
        • GridView
        • Column
        • Row
        • Container
        • Expandable
        • Divider (Horizontal)
        • Divider (Vertical)
        • Carousel
      • Persistent Footers Widgets
        • NavigationBar Widget
      • Page Widgets
        • Stepper Widget
        • Scaffold Widget
        • Paginated Listview Widget
        • TabView
        • AppBar
      • Widget Commonalities
    • Event Handlers
  • Theme
    • Colors
    • Typography
  • DATA AND BACKEND
    • API Calls
      • Setting up API Calls
      • Create API Calls
      • Import API From Curl
  • DEPLOYING YOUR APP
    • Deployment
    • Release History
  • Settings
    • App Settings
    • App Assets
    • Media Assets
  • JARGON
    • Data integration
Powered by GitBook
On this page
  1. Actions

Post Message

PreviousGo To PageNextSet Page State

Last updated 10 months ago

Using the "Post Message" action allows you to connect your Digia page with another app. This functionality acts as a bridge, enabling communication and triggering actions within the integrated app.

Adding the Post Message Action:

  1. Specifying the Message Type This parameter defines the type of message being sent. It's essentially a code for the integrated app, indicating what kind of action or data it should expect. The specific options available for message types will depend on the capabilities of the integrated app and the desired communication between Digia and the app.

  2. Including JSON Data In addition to the message type, you can optionally include data in JSON format. JSON (JavaScript Object Notation) offers a structured way to represent data using key-value pairs. By including relevant data points in the JSON format, you can provide the integrated app with the necessary information to perform specific actions based on the message type.

Here's an example:

JSON

{
  "action": "updateProduct", // Message type indicating an update action
  "productId": 123,
  "quantity": 5 // Example data relevant to the update action
}

In this example, the message type "updateProduct" tells the app to perform an update action. The JSON data then provides additional information about the specific product (productId: 123) and the desired quantity (quantity: 5).

5. App Response:

Based on the received message type and any included JSON data, the integrated app can then perform various actions within its own code. This could involve updating data, triggering UI changes, or initiating further communication with Digia.

Add The Action