Critical Moments Docs
Quick StartHomepageAccount
  • Documentation Home
  • What is Critical Moments?
  • Quick Start
  • Concepts Overview
  • Remote Control / Service
    • Host Config on Github Pages
  • Config File Structure
  • Demo App
  • Homepage & Account
  • 📚Guides
    • Mobile App Toolbox: 13 Features Most Apps Need
    • Reduce App Churn with Notifications
    • Improve your App Store Rating
    • Feature Flags Guide
  • ⏰Notifications
    • Intro to Notifications
    • Notifications Spec
    • Smart Delivery
    • Badges
  • 🎯Conditional Targeting
    • Intro to Conditions
    • Built-in Properties
    • Custom Properties
    • Syntax and Operators
    • Conditional Guides
      • Working with Dates
      • Locations and Weather
      • Event and Property History
  • 🎪Events
    • Event Overview
    • Recommended Events
    • Built-In Events
  • 💬Actions / In App Messaging
    • Actions Overview
    • Modals
      • Modal Content Sections
      • Modal Buttons
      • Modal Images
    • Banners
    • Alerts
    • App Reviews
    • Open Link
    • Custom Actions
    • Conditional Actions
    • Triggers
  • 🎨Themes
    • Theme Overview
    • Built In Themes
  • ⛳Feature Flags
    • Feature Flag Guide
    • Conditional Feature Flags
    • Named Conditions Config
  • 🔑Trustless SaaS
  • 👋Support
  • 👩‍💻SDK API Reference
Powered by GitBook
On this page

Was this helpful?

  1. Actions / In App Messaging

Custom Actions

Trigger native code from Critical Moments

Last updated 1 year ago

Was this helpful?

To create an action which calls into native code, use a link action type with a deeplink into your app.

An example link to your "edit profile experience could be: you-app-scheme:profile/photo?mode=edit. It has the the following components:

  • App scheme you-app-scheme:: the app scheme you

  • The path profile/photo: a specific screen or action in your app you are linking to

  • A query string ?mode=edit: Any serialized data you want to pass through and handle in your code.

To implement you can use , or .

To not set useEmbeddedBrowser for deeplinks. This option is only supported for http/https links.

Example Custom Action Config

"edit_profile_photo_deeplink_action": {
    "actionType": "link",
    "actionData": {
        "url": "you-app-scheme:profile/photo?mode=edit"
    }
},

💬
setup and define for your app
iOS deeplinks
universal links