简体   繁体   中英

Firebase dynamic links in UWP

So Firebase has these Dynamic links , which if you click in your Android / iPhone you get redirected to your app instead of the website. So when you want to invite your friends to join you in the app (game, group chat or whatever) you just share this link with them.

I was wondering if this was achievable with UWP. I watched a video about project Rome where they talk about AppUriHandlers which seem to do the job. HOWEVER they require you to have a json file at your web server root which would identify your app, saying "yea, this app is allowed and me are associated, open this app when someone launches this link".

The problem with that is that the Firebase dynamic link points to a google endpoint, eg https://aaxy2.app.goo.gl/?link=redirect_here and naturely there is going to be no json file just sitting there.

Is there some other way how to have users redirected to my app just via a link (it needs to be an http link because that's what the Android and iOS versions of the app will be using).

It's not going to be possible; for this exact reason. To ensure that web links aren't hijacked by third parties (for potentially malicious reasons), only the owner of a domain (or more accurately: the person/people with access to the storage where the domains points) can "approve" an app.

Update: After actually doing my job and properly reading your question, I can give you a correct answer; sorry :/

Linking to UWP apps will work similarly to how it's described for iOS apps in the first section here :

You can do the iOS 8 way and support a uri scheme as described in the Windows docs here .

With the Anniversary Update you can also support AppUriHandlers by directing your users to a web link that will launch your app instead (as described in the Dynamic Links docs for iOS 9).

It looks like, however, that you need to register an iOS or Android app to get going, so that might give you some trouble.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM