Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Non-Branch Deep links [ Firebase email login link] #442

Closed
Bengejd opened this Issue Apr 10, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@Bengejd
Copy link

Bengejd commented Apr 10, 2018

I want to start off by thanking you guys for all of your hard work on this wonderful plugin. I have tested Branch.io links, and they work flawlessly.

I am sending the user a Firebase passwordless email link, which in theory they would click, it will authenticate and they will be logged in. But I am not sure if this is possible to do within Branch. I was wondering if I could set the Firebase URL link to the Branch.io link, and then pass the authentication data to the Branch.io link from Firebase.

@Bengejd

This comment has been minimized.

Copy link
Author

Bengejd commented Apr 10, 2018

I figured out the answer to this, and it works flawlessly!

Basically, you have to:

  • go into Firebase Dynamic Links, check the box that says "Skip the app preview page (not recommended)".

  • Create your Branch.io link, copy the link URL and whitelist it in your Firebase/Authentication/Sign in Methods/Authorized Domains section of your Firebase Console.

  • After you have done that, go into your environment.actionCodeSettings and set the URL to be the Branch.io link that you copied above. After that, you are set! It should all work as expected, the app will originally route to the Firebase link, after which it redirects to the Branch.io deep link, passing the parameter '+referrer'] which is your Firebase auth URL for that particular user, which can be accessed by using the Branch.io subscription method, and just grabbing the data['+referrer'] and passing it into your Firebase Authentication method, and boom! You are now fully authenticated.

@Bengejd Bengejd closed this Apr 10, 2018

@ethanneff

This comment has been minimized.

Copy link
Contributor

ethanneff commented Apr 10, 2018

Hello @Bengejd,

I apologize for not responding sooner. I am glad you were able to get it working. I'll coordinate with our documentation team to see if we can add your notes to it. I can see them being very useful for future developers.

Thanks,

@gibbsvjy007

This comment has been minimized.

Copy link

gibbsvjy007 commented Jul 3, 2018

Hello @Bengejd ,

Could you please share an example if possible?

Thanking you in advance

@Bengejd

This comment has been minimized.

Copy link
Author

Bengejd commented Jul 7, 2018

Hi @gibbsvjy007. Sorry for the delayed response, I meant to share this with you a couple days ago, but time just got away from me.

Here is a short article that I wrote regarding the solution. I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.