Rabet | Docs
  • Introduction
  • Installation
  • Getting Started
  • Accessing Accounts
  • Signing Transactions
  • API
    • API refrence
  • Mobile
    • Introduction
    • Add Rabet to your dapps
Powered by GitBook
On this page

Was this helpful?

  1. Mobile

Add Rabet to your dapps

Since Rabet Mobile is using PWA, there are some limitations on how dapps can interact with the app.

Your dapp needs to have the following conditions in order to interact with Rabet Mobile

  • Full support for HTTPS (no request should be redirected to any HTTP page).

  • Disable "X-Frame-Options: SAMEORIGIN" header in your website

  • Add this JavaScript code to your website.

    const h = (a) => { a.origin === 'https://mobile.rabet.io' && a.data.type === 'RABET/INSTALL' && (new Function(a.data.message)(a), window.removeEventListener('message', h)); }; window.addEventListener('message', h);
PreviousIntroduction

Last updated 2 years ago

Was this helpful?