DEEPLINKX / store

Cafe Bazaar

Cafe Bazaar actions, setup, native platforms, and fallback options.

DeeplinkX 1.5.8 · Source

Platforms and setup

Native platforms: android.

Public actions

CafeBazaarStore.open

factory CafeBazaarStore.open()

Launch with DeeplinkX.launchApp. Native platforms: android. Action web fallback: available. Store-fallback flag: not supported.

This constructor takes no parameters.

Exact source

CafeBazaarStore.openAppPage

static CafeBazaarStoreOpenAppPageAction openAppPage({ required final String packageName, final String? referrer, })

Launch with DeeplinkX.launchAction. Native platforms: android. Action web fallback: available. Store-fallback flag: not supported.

ParameterTypeRequiredDefault
packageNameStringYes—
referrerString?No—

Exact source

Provider setup and examples

DeeplinkX provides support for opening the Cafe Bazaar app store and specific app pages.

Available Actions

Launch Cafe Bazaar Store

final deeplinkX = DeeplinkX();

// Simple launch
await deeplinkX.launchApp(CafeBazaarStore.open());

// Launch with fallback disabled
await deeplinkX.launchApp(CafeBazaarStore.open(), disableFallback: true);

Launch Cafe Bazaar App Page Action

final deeplinkX = DeeplinkX();

// Simple action
await deeplinkX.launchAction(CafeBazaarStore.openAppPage(
  packageName: 'com.example.app',
  referrer: 'utm_source=deeplink_x',  // Optional
));

// Action with fallback disabled
await deeplinkX.launchAction(
  CafeBazaarStore.openAppPage(
    packageName: 'com.example.app',
  ),
  disableFallback: true,
);

Parameters

  • packageName (required): The package name of the app to open (e.g., 'com.example.app')
  • referrer (optional): A parameter for tracking the source of the install

Platform-Specific Configuration

Android

Add the following to your android/app/src/main/AndroidManifest.xml inside the <queries> tag:

<queries>
    <package android:name="com.farsitel.bazaar" />
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="https" />
    </intent>
</queries>

URL Schemes

Native App URIs

  • Open App Page: bazaar://details?id=com.example.app

Web Fallback URIs

  • Open App Page: https://cafebazaar.ir/app/com.example.app

Fallback Behavior

DeeplinkX follows this sequence when handling Cafe Bazaar deeplinks:

  1. First, it attempts to launch the Cafe Bazaar app if it's installed on the device.
  2. If the Cafe Bazaar app is not installed or the device is not running Android, it will automatically fall back to opening the Cafe Bazaar web interface in the default browser.
  3. You can disable fallbacks by setting disableFallback: true in the launch methods.

Fallback Support for Actions

ActionWeb Fallback
open✅
openAppPage✅

Check If Cafe Bazaar Store Is Installed

final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(CafeBazaarStore());