ngthailam / flutter_app_short_cut

A Flutter plugin to integrate App shortcuts on Android and IOS
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Doesn't do anything #2

Closed apoleo88 closed 2 years ago

apoleo88 commented 2 years ago

Tried your example and it doesn't do anything when the function is launched, no error was triggered.

FlutterAppShortcut().push(
      ShortcutArg(
        id: 'id_1',
        shortLabel: 'Home page',
        longLabel: 'Go to Home page',
        iconResourceName: 'app_icon',
        uri: 'https://www.google.com',
        enabled: true,
      )
    );

Tested on Android device with SDK 32

Flutter 2.10.4 • channel stable
Tools • Dart 2.16.2 • DevTools 2.9.2
ngthailam commented 2 years ago

@apoleo88 Check pub dev version for release 0.2.1 Or you can temporarily remove iconResourceName: 'app_icon', or add the resource to the res folder as per the example