Deeplinking Routes

Min SDK version required: v1.1.4

The Tyrads SDK supports deeplinking to specific sections of the offerwall. When initializing or interacting with the SDK, you can specify a route to open a particular page. For campaign-specific routes, you'll need to provide the campaignID as well.

Route Name
Constant
Description

offers

TyradsDeepRoutes.OFFERS

Main campaigns list (Default)

active-offers

TyradsDeepRoutes.ACTIVE_OFFERS

User's activated campaigns

offers/[campaign-id]

TyradsDeepRoutes.OFFERS

Specific campaign details (Requires campaignID)

support/[campaign-id]

TyradsDeepRoutes.SUPPORT

Support tickets for a campaign (Requires campaignID)

Available routes and their usage:

  • offers - opens the Campaigns Page

  • active-offers - opens the Activated Campaigns Page

  • offers/[campaign-id] - opens the Campaign Details Page (requires campaignID)

  • support/[campaign-id] - opens the Campaign Tickets Page (requires campaignID)

// Note: CAMPAIGNS is the default route when no specific route is provided
await Tyrads.instance.showOffers();

// Explicitly specifying the Campaigns Page
await Tyrads.instance.showOffers(route: "offers");
//or use TyradsDeepRoutes class to avoid typos
await Tyrads.instance.showOffers(route: TyradsDeepRoutes.OFFERS);

// Activated Campaigns Page
await Tyrads.instance.showOffers(route: "active-offers");
// or using TyradsDeepRoutes class like
await Tyrads.instance.showOffers(route: TyradsDeepRoutes.ACTIVE_OFFERS);

// Campaign Details Page (requires campaignID)
await Tyrads.instance.showOffers(route: "offer", campaignID: "your_campaign_id_here");
// or using TyradsDeepRoutes class like
await Tyrads.instance.showOffers(route: TyradsDeepRoutes.OFFER, campaignID: "your_campaign_id_here");

// Campaign Tickets Page (requires campaignID)
await Tyrads.instance.showOffers(route: "support", campaignID: "your_campaign_id_here");
// or using TyradsDeepRoutes class like
await Tyrads.instance.showOffers(route: TyradsDeepRoutes.SUPPORT, campaignID: "your_campaign_id_here");

Last updated