ihatecoding
ihatecoding

Reputation: 106

How to know the source of a link and load web app accordingly

I'm making an online ordering web app in Flutter, there's a link to the app on the restaurant website. The app needs to know which restaurant website the customer came from so that it can load the correct menu.

How would you do this? Webhook?

Upvotes: 0

Views: 140

Answers (1)

akop
akop

Reputation: 7845

I see two methods:

  1. Referrer, Webbrowsers send a referrer-header. Maybe unstable for privacy browsers. More information
  2. Link-Parameter, give each resturant a unique link (with your-app.com?source=mcdonalds). More information

Upvotes: 1

Related Questions