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);

Last updated