top of page

How to create deep-links for push-notification campaign

Updated: Oct 20, 2023


Cover for the article on how to create deep links for push-notification campaign

Deep-links allow you to redirect customers from push-notification to a marketplace, an exact restaurant, a dish or a Content Screens (created as a CMS page in the admin panel) in your app.

Screenshots of the mobile food delivery customer app

Attention: these scheme works only for Playfood section in Onde Passenger App.



Deep-link in a marketplace

To create a deep-link in a marketplace, follow the instructions below:


Here is a draft of the link:

{api.domain}/customer/auth/onde/login?externalBrowser=false&method=POST&companyId={companyId}


What are the highlighted parts:

{api.domain} – your marketplace address with text addition

{companyId} – part of integrated settings, which you can find in the Admin panel


It may seem strange and overwhelming, but it is easy, if you follow the steps below. So, let’s try together:)


Step 1: copy these draft

{api.domain}/customer/auth/onde/login?externalBrowser=false&method=POST&companyId={companyId}


Step 2: insert your domain name in place of the green curly brackets and add "api" text in front of the domain name

https://api.foodbro.foodbro.app/customer/auth/onde/login?externalBrowser=false&method=POST&companyId={companyId}


Reminder: don’t forget to delete curly brackets.

Food delivery web-marketplace screenshot

Step 3: insert your "companyId" in place of the green curly brackets

  • Open MyHub, the “Dashboard” page will be opened automatically.

Onde MyHub screenshot
  • Copy code from the address link between /company/ and /dashboard

  • Insert the copied info in place of the yellow curly brackets

https://api.foodbro.foodbro.app/customer/auth/onde/login?externalBrowser=false&method=POST&companyId=a0b9100b-b1f9-47e1-9a77-26cac1dc66b7


Reminder:

  • Don’t forget to delete curly brackets;

  • Remember that the city of the company should match with the preferred city for the push-notification campaign.

Great! You’ve created the link, what’s next?

Insert the “DeliveryUrl” text into the “Key” part.

Insert your newly created link into the “Value” part.

Firebase panel screenshot
  • Push the “Review” button and check the settings.

  • Push the “Publish” button.

That’s it! Now let's create a deep-link for an exact restaurant, a dish, or a Content Screens (created as a CMS page in the admin panel).



Deep-link in a restaurant, dish, or Content Screens


So, here is a new draft of the link:

{domain}/customer/auth/onde/login/redirect/{redirectUrl}?method=POST&companyId={companyId}


What are the highlighted parts:

{domain} – your marketplace address

{redirectUrl} – original link on a vendor (restaurant), exact dish or a CMS-page

{companyId} – part of integrated settings, which you can find in the Admin panel


You've did it once, you can do it twice! Let' go.


Step 1: copy these draft

{domain}/customer/auth/onde/login/redirect/{redirectUrl}?method=POST&companyId={companyId}


Step 2: insert your domain name in place of the green curly brackets

https://foodbro.foodbro.app/en/london/customer/auth/onde/login/redirect/{redirectUrl}?method=POST&companyId={companyId}


Reminder: there is no additional text here, just the domain link itself. And don’t forget to delete curly brackets.

Food delivery web-marketplace screenshot

Step 3: insert the link on a vendor (restaurant), exact dish or a CMS-page

  • Open the restaurant (exact dish or a CMS page) on the web-view of your marketplace and copy the end part of the link in the address row, which differs from your domain address.

Food delivery web-marketplace screenshot of a particular restaurant card
  • Insert this code in place of the red curly brackets

https://foodbro.foodbro.app/en/london/customer/auth/onde/login/redirect/vendor/1?method=POST&companyId={companyId}


Reminder: don’t forget to delete curly brackets.


Step 4: insert your companyId in place of the green curly brackets

  • Open MyHub, the “Dashboard” page will be opened automatically.

Onde MyHub panel screenshot
  • Copy code from the address link between /company/ and /dashboard

  • Insert the copied info in place of the yellow curly brackets

https://foodbro.foodbro.app/en/london/customer/auth/onde/login/redirect/vendor/1?method=POST&companyId=a0b9100b-b1f9-47e1-9a77-26cac1dc66b7


Reminder:

  • Don’t forget to delete curly brackets;

  • Remember that the city of the company should match with the preferred city for the push-notification campaign.


Wonderful! You’ve created the link, now let's move to Firebase.

Insert the “DeliveryUrl” text into the “Key” part.

Insert your newly created link into the “Value” part.

Firebase notification builder panel screenshot
  • Push the “Review” button and check the settings.

  • Push the “Publish” button.


That’s it! Wishing you successful results.


Hungry for success in the food delivery business?
Subscribe to get helpful guides and product updates in your inbox!

Thanks for subscribe!

bottom of page