A new Flutter plugin for the implementation of HelpScout Beacon.
You can use the command to add help_scout_flutter as a dependency with the latest stable version:
$ dart pub add help_scout_flutterOr you can manually add help_scout_flutter into the dependencies section in your pubspec.yaml:
dependencies:
help_scout_flutter: ^replace-with-latest-versionfinal helpScout = HelpScoutFlutter(
beaconId: '*******beacon-id******',
user: HSBeaconUser(email: 'john@example.com', name: 'John Doe'),
);
await helpScout.initialize();
await helpScout.open();Pass app-specific diagnostics via HSBeaconUser.attributes. They are forwarded
to Help Scout as custom attributes and shown to support agents in the Customer
Properties sidebar.
final user = HSBeaconUser(
email: 'john@example.com',
attributes: {
'app_version': '1.0.0',
'platform': 'iOS',
'plan': 'premium',
},
);
final helpScout = HelpScoutFlutter(beaconId: '*******beacon-id******', user: user);
await helpScout.initialize();The values are passed straight to the Help Scout Beacon SDK, which imposes the following rules:
- Values must be strings. Format booleans, dates and numbers yourself before
passing them (e.g.
'unlimited': isUnlimited ? 'Yes' : 'No'). - Maximum of 30 attributes.
nameandemailare reserved keys.- For values to sync to the Customer Properties sidebar, each key must match a
Customer Property ID — letters, numbers, hyphens and underscores only, with
no spaces. Map a display label like
App Versionto a key likeapp_version.