RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
97 stars 89 forks source link

Deep linking not working for Skype. #352

Closed Shahkhalid2710 closed 3 weeks ago

Shahkhalid2710 commented 1 month ago

It is working fine in others apps but not in Skype. In Skype, og:title, og:descrition and og: image not showing.

Example Code:

`class HomeNewScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Branch.io Demo'), ), body: Center( child: ElevatedButton( onPressed: () async { String propertyId = '123'; String propertyName = 'Beautiful Beach House'; String propertyDescription = 'A beautiful beach house with stunning ocean views.'; String propertyImageUrl = 'https://fastly.picsum.photos/id/1/5000/3333.jpg?hmac=Asv2DU3rA_5D1xSe22xZK47WEAN0wjWeFOhzd13ujW4';

        BranchUniversalObject buo = BranchUniversalObject(
          canonicalIdentifier: 'property/$propertyId',
          title: propertyName,
          contentDescription: propertyDescription,
          imageUrl: propertyImageUrl,
          contentMetadata: BranchContentMetaData()
            ..addCustomMetadata('property_id', propertyId)
            ..addCustomMetadata('property_name', propertyName)
            ..addCustomMetadata('og:title', propertyName)
            ..addCustomMetadata('og:description', propertyDescription)
            ..addCustomMetadata('og:image', propertyImageUrl)
            ..addCustomMetadata('og:url', propertyImageUrl)
            ..addCustomMetadata('og:type', "website"),
          publiclyIndex: true,
          locallyIndex: true,
        );

        BranchLinkProperties lp = BranchLinkProperties(
          channel: 'facebook',
          feature: 'sharing',
          stage: 'new share',
          campaign: 'property campaign',
        );

        BranchResponse<dynamic> response =
            await FlutterBranchSdk.getShortUrl(
          buo: buo,
          linkProperties: lp,
        );

        debugPrint("Api response is ${response}");

        if (response.success) {
          String url = response.result;
          Share.share('$url', subject: "Social");

          // Share the URL or use it as needed
        } else {
          debugPrint(
              'Error creating Branch link: ${response.errorMessage}');
        }
      },
      child: Text('Create Branch Link'),
    ),
  ),
);

} } `

RodrigoSMarques commented 1 month ago

Hi @Shahkhalid2710

This package calls Branch Native SDK functions on each platform.

The problem reported is not in the Flutter plugin, but in the Native SDK.

Please open an issue in the platform repository:

Or open a support ticket for Branch at the link

RodrigoSMarques commented 1 month ago

Have you checked the documentation?

Are there values ​​to be used through the SDK. Check Branch parameters for Open Graph

Shahkhalid2710 commented 1 month ago

I checked with open graph tag, but it's not working in skype only.

RodrigoSMarques commented 1 month ago

it's a problem in Skype and not in the SDK.

can we close the issue?

Shahkhalid2710 commented 1 month ago

When I share link from others apps like Airbnb, Youtube, Image are display in Skype.

Is there any way available, we can display card same as youtube in Skype ?

RodrigoSMarques commented 1 month ago

When I share link from others apps like Airbnb, Youtube, Image are display in Skype.

Is there any way available, we can display card same as youtube in Skype ?

I did a Google search (Skype Weblink Previews don't work) and found several reports on Google of people complaining that the image doesn't load when sharing a link.

If it works on other platforms, I believe the problem is not with the plugin or the Branch SDK, but is a problem with Skype.

Therefore, I see that nothing can be done here.

RodrigoSMarques commented 3 weeks ago

Closed. No activity in the last 14 days. If necessary open again.