Basics

The elastOS native application

The Elastos browser, also know as elastOS, is for now a native Android or iOS application that has to be launched to enter the whole Elastos ecosystem of capsules and services.

This browser can run capsules independently and securely, and provides access to all of the Elastos modules such as:

  • Hive
  • Carrier
  • Ethereum Sidechain
  • DID sidechain (Identity)
  • DMA
Usually through cordova/ionic plugins

The development codename for elastOS is Trinity.

You will notice a lot of the tools and repos are named “trinity”, this is analagous to elastOS .

Capsules inside elastOS

elastOS capsules are dApps, we call them “capsules”.

Similarly to android and iOS home screens, elastOS provides a way to browse installed capsules, find and install new capsules, uninstall them.

Capsules also have several ways to interact with each other while keeping their content secure.

All together, this creates a great user experience from inside the elastOS browser.

  • use our included trinity-cli tool to easily package and deploy your capsules

  • elastOS capsules must be written in Ionic 4.0 using React or Angular

    There is a bug in the React template right now , temporarily you must import appManager: declare const appManager: AppManagerPlugin.AppManager

    Then ensure we set visibility to show on App mount (within React.Component Parent App): useEffect(() => { appManager.setVisible("show") }, [])

  • by default external requests are blocked, you must whitelist URLs in the manifest.json and even then users will be prompted to approve the connection through a native pop-up

  • your capsule can access a suite of plugins to use native features such as the:

    • camera
    • fingerprint reader
    • QR scanner
    • storage and other common Cordova plugins
  • elastOS provides a set of custom plugins to access the Elastos ecosystem

    • Hive Storage
    • DID Sidechain
    • ETH Sidechain - Coming Soon

Preview the Plugins API Here

Let's Setup Your Environment First