react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

handle dynamincLink in app using actionCodeSettings

Open thepatrykk opened this issue 8 years ago • 2 comments

Issue

I have a problem with send correct link to sendPasswordResetEmail.

documentation: https://rnfirebase.io/docs/v4.2.x/auth/reference/auth#sendPasswordResetEmail

I want to handle the link in the application using the dynamic link. I created the actionCodeSettings based on the documentation above:

  const actionCodeSettings = {
      url: 'http://appName.page.link/forgot',
      iOS: {
        bundleId: 'com.example.ios',
      },
      android: {
        packageName: 'appName',
        installApp: true,
        minimumVersion: '12',
      },
      handleCodeInApp: true,
    };

And the link looks like this:

https://?link=http://appName.page.link/forgot?apiKey%3DAIzaSyBr0VG5tnHBfTI7OV2DLfUth8un4gwWutQ%26mode%3DresetPassword%26oobCode%3D0qtO32F1VLweQZsFbvZyzm9DVzaWUOO1uzZD2WDfCpYAAAFkAnLbSw%26continueUrl%3Dhttp://appName.page.link/forgot%26lang%3Dpl&apn=appName&amv=12&ibi=com.example.ios&ifl=http://appName.page.link/forgot?apiKey%3DAIzaSyBr0VG5tnHBfTI7OV2DLfUth8un4gwWutQ%26mode%3DresetPassword%26oobCode%3D0qtO32F1VLweQZsFbvZyzm9DVzaWUOO1uzZD2WDfCpYAAAFkAnLbSw%26continueUrl%3Dhttp://appName.page.link/forgot%26lang%3Dpl

it's too long and few times repeat. How it's the correct way to handle such a problem in the app?

I want to open the link from app browser, open app and redirect the user to my component in APP which provided UI for setting a new password. I added the dynamic link to the dynamic Links in firebase console, but the main problem is how this link looks like, and how to properly settle deep link and handle it in the app?

Environment

Android

  1. Application Target Platform:

macOS Sierra Emulator, Device with android

  1. Development Operating System:

Android Studio 3.1 + Android 8.1 (27) + Samsung S8

  1. Build Tools:
  1. React Native version:

0.55.4

  1. RNFirebase Version:

4.0.0 com.google.firebase:firebase-auth:12.0.1 com.google.firebase:firebase-invites:12.0.1 6. Firebase Module: Auth.sendPasswordResetEmail

thepatrykk avatar Jun 15 '18 08:06 thepatrykk

This issue has been automatically marked as stale because it has not had recent user activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 02 '18 00:09 stale[bot]

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Sep 16 '18 00:09 stale[bot]