ios common hyperlinks not opening iOS app. react-native 0.73 firebase auth

0
14
ios common hyperlinks not opening iOS app. react-native 0.73 firebase auth


im utilizing firebase auth sendSignInLinkToEmail() with common hyperlinks, not dynamic hyperlinks.
When i get an e-mail, i click on the e-mail register hyperlink on my iPhone, nevertheless it opens my web site, as an alternative of opening my iOS App.

the hyperlinks seems like https://app.mydomain.com/__/auth/hyperlinks?hyperlink=https://mydomain.firebaseapp.com/__/auth/motion?apiKeypercent3DAIza...C8_X8percent26modepercent3DsignInpercent26oobCodepercent3DQC...FzuApercent26continueUrlpercent3Dhttps://app.mydomain.compercent26langpercent3Den

mydomain and myteamid are changed accordingly.

why?

  1. “react-native: “0.73.0”

  2. firebase,

    • Electronic mail hyperlink (passwordless sign-in Enabled.
    • added approved domains: mydomain.com
    • ios settings > staff id = myteamid
  3. react-native code

     const actionCodeSettings = {
        url: 'https://app.mydomain.com',
        handleCodeInApp: true,
        iOS: {
          bundleId: 'com.mydomain.predominant'
        },
        android: {
          packageName: 'com.mydomain.predominant',
          installApp: true,
          minimumVersion: '1'
        },
        linkDomain: 'app.mydomain.com'
      }
      await sendSignInLinkToEmail(auth, e-mail, actionCodeSettings)
    
  4. Appdelegate.mm, adopted:
    Common Deep Linking in react native 0.73

  5. myapp.entitlements

      com.apple.developer.associated-domains
       applinks:app.mydomain.com
    
  6. following: https://firebase.google.com/docs/auth/ios/email-link-migration

    5.1. apple-app-site-association verified app.mydomain.com utilizing https://department.io/sources/aasa-validator/

    {
    "applinks": {
        "apps": [],
        "particulars": [
            {
                "appID": "myteamid.com.mydomain.main",
                "paths": [
                    "NOT /__/auth/action/",
                    "NOT /__/auth/handler/",
                    "NOT /_/*",
                    "/*"
                ]
            }
        ]
      }
    }
    

    5.2. Configure your undertaking to make use of the brand new hyperlinks. ran the script, Response 200 and

      ProjectConfig {
        smsRegionConfig: {},
        multiFactorConfig_: MultiFactorAuthConfig {
          state: 'DISABLED',
          factorIds: [],
          providerConfigs: []
        },
        mobileLinksConfig: { area: 'HOSTING_DOMAIN' }
      }
    

LEAVE A REPLY

Please enter your comment!
Please enter your name here