How notification via cloud function can open the app to a specific page?

Hello,

I am trying to send notifications via cloud function and to open the flutterflow app on a specific page (that page requires document ref as parameter). At this time, the app is opening on my mobile with the initial page defined in the App details settings.

May I ask you how to set the "Initial page" and the "Parameter data" to open a specific page?

Using cloud function, the notification data looks like:

const payload = {
  notification: {
    title: `Reminder`,
    body: `${asset.name}`,
  },
  data: {
    assetRef: `${assetSnapshot.id}`
  },
  token: "", // let this empty - will be set further
};

Thank you very much.

Best regards,

Benoit

2
1 reply