HomePhabricator
Diffusion Comm 284b292f2b52

[native] Support rainbow url scheme for Android

Description

[native] Support rainbow url scheme for Android

Summary:
SIWE tries to redirect user to Rainbow which fails with a warning. To handle this we need to specify which apps we will interact with in the Android manifest.
More context:
ENG-2571
StackOverflow Post
Documentation

Test Plan:
In the logged-out-modal.react.js I replaced onPressSIWE with:

onPressSIWE = () => {
    const url =
      'rainbow://open?_branch_referrer=H4sIAAAAAAAAA8soKSkottLXL8pLKk8sKNBLzs%2FVL08GAO6SbDcWAAAA&link_click_id=1136675358861894366';
    Linking.canOpenURL(url).then(function (supported) {
      if (supported) {
        return Linking.openURL(url);
      }
      console.warn("Can't open url: ".concat(url));
      return undefined;
    });
  };

and checked if the Rainbow app opens correctly.

Reviewers: atul, tomek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D6090

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Dec 29 2022, 3:48 AM
Reviewer
tomek
Differential Revision
D6090: [native] Support rainbow url scheme for Android
Parents
rCOMM028e26a8ba08: [keyserver] Fix `siweAuthResponder` login issue
Branches
Unknown
Tags
Unknown

Event Timeline