Skip to content

In Flutter, getShortUrl called it does not return anything.Β #1288

@Ketan-Satani-Innovuratech

Description

Describe the bug

So, when I call this getShortUrl, it does not return anything and also does not throw any error. I have added the same comment on this issue. Please help me close this issue.

Steps to reproduce

// 1. Create a BranchUniversalObject
BranchUniversalObject buo = BranchUniversalObject(
canonicalIdentifier: 'referral/$referralCode',
title: 'Join LP Screw',
contentDescription: 'Use this link to sign up and earn your bonus. Start your loyalty journey with LP Screw today.',
contentMetadata: BranchContentMetaData()..addCustomMetadata('referral_code', referralCode),
);

  // 2. Define link properties
  BranchLinkProperties lp = BranchLinkProperties(
    channel: 'app',
    feature: 'referral',
    campaign: 'user-invite',
    stage: 'new user',
  );



  // 3. Generate the short URL
  BranchResponse response = await FlutterBranchSdk.getShortUrl(buo: buo, linkProperties: lp);

Expected behavior

It must return a short URL.

SDK Version

5.18.0

Make and Model

SM-M055F

OS

14

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions