BranchMetrics / capacitor-branch-deep-links

Capacitor plugin for branch.io deep links
MIT License
33 stars 43 forks source link

Provided for backwards compatibility for Capacitor v2 plugins. Capacitor v3 plugins should import the plugin directly. This "Plugins" export is deprecated in v3, and will be removed in v4. #104

Closed Sampath-Lokuge closed 11 months ago

Sampath-Lokuge commented 12 months ago

Describe the bug

 import { Plugins } from '@capacitor/core';
import { BranchInitEvent } from 'capacitor-branch-deep-links';

const { BranchDeepLinks } = Plugins;

Steps to reproduce

Just paste this: https://help.branch.io/developers-hub/docs/capacitor#initialize-branch

Expected behavior

Need to support Capacitor 4+

SDK Version

5.0.0

Make and Model

Doc issue

OS

Doc issue

Additional Information/Context

Please update the doc to Capacitor 4 syntax.

Ref: https://help.branch.io/developers-hub/docs/capacitor#install-branch

Sampath-Lokuge commented 11 months ago

This works for me:

import { BranchDeepLinks } from 'capacitor-branch-deep-links';

And the doc has been updated now too.