Skip to content

Add ActionCodeSettings.linkDomain to firebase-auth for all platforms #731

Open
@treitter

Description

@treitter
Library Class Member Platforms
auth ActionCodeSettings linkDomain Android, iOS

I have a custom domain set up with Firebase and need to send links from that domain (instead of the default PROJECT_ID.firebaseapp.com).

Using the first-party Firebase SDK on Android, I can set ActionCodeSettings.linkDomain and pass that to Firebase.auth.sendSignInLinkToEmail() so the link email contains a link with my custom domain.

From the docs:

linkDomain: When custom Hosting link domains are defined for a project, specify which one to use when the link is to be opened by a specified mobile app. Otherwise the default domain is automatically selected (for example, PROJECT_ID.firebaseapp.com).

It looks like this will require increasing your Firebase Cocoapods dependency to 11.8.0 but I don't see any API breaks between your current version of 11.4.0 and this new version of 11.8.0 so that hopefully won't cause too much trouble

And this code change in firebase-kotlin-sdk should be relatively simple as it's just one more String field so I hope that isn't much of a challenge either.

Thanks! Please see my associated PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API coverageRequest for missing APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions