14

I made a simple python script to generate firebase dynamic links for my app using POST API https://firebase.google.com/docs/dynamic-links/rest

However, in web UI I can set custom link address (i.e. example.app.goo.gl/customlinkname), while using API address seems to be always auto-generated.

Is there such a feature using POST API?

I tried to set "option": CUSTOM with customSuffix parameter, however response was that option CUSTOM is not supported.

KENdi
  • 7,576
  • 2
  • 16
  • 31
Richard Roe
  • 143
  • 1
  • 4

2 Answers2

11

Nope -- this feature is not available using the REST or Client SDKs. Only for Dynamic Links that you create using the Firebase Console.

Todd Kerpelman
  • 16,875
  • 4
  • 42
  • 40
  • 4
    Is this coming from Google officially? Because this is exposed on a few other libraries according to documentation on the internet https://godoc.org/google.golang.org/api/firebasedynamiclinks/v1#Suffix – Ryan Romanchuk Sep 03 '19 at 03:51
  • Same here. @Todd Kerpelman I think the definitiveness in your answer minus pointing to a link probably means you're a Google representative. Where can I request this feature? – Gaurav Ramanan May 05 '20 at 09:31
  • 2
    Is there any method this can be acheived for current versions? – Aadiyaara Aug 21 '20 at 13:32
  • 1
    Be great to have this. "Unsupported Suffix option CUSTOM" [https://firebase.google.com/docs/dynamic-links/rest#create_a_short_link_from_parameters] – MadMac May 01 '22 at 05:32
  • I do not understand why this is not possible !!!! – Damien Romito May 17 '22 at 15:48
  • You can request this feature here: https://firebase.google.com/support/troubleshooter/contact?visit_id=637066788649418383-3154538132&rd=1 – MadMac May 31 '22 at 05:28
2

Don't trust naysayers. I know it's too late, but because I've struggled so much searching for solution I'm uploading working solution I've found recently.

Use library firebase-dynamic-links-generator by Sufiyan Shaikh (see https://pypi.org/project/firebase-dynamic-links-generator/#description). It allows you to create custom suffix that you'll be able to see in your Firebase console.

Note: To import this file use from firebase_dynamic_link import GenerateFirebaseDynamicLink instead of from firebase_dynamic_link_generator ...