moengage_flutter_web 4.0.1 copy "moengage_flutter_web: ^4.0.1" to clipboard
moengage_flutter_web: ^4.0.1 copied to clipboard

Platformweb

Web implementation of the moengage_flutter plugin

moengage_flutter_web #

The Web implementation of moengage_flutter.

Usage #

This package is endorsed, which means you can simply use moengage_flutter normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

If events and/or user attributes are unable to get tracked (in case of all-user billing or after user subscribes in push-subscriber billing), then you can call moengageInitialiser function at a delay based on your load time-

// import this dependency at the top of the file
import 'dart:async';

/* inside initialise function, replace moengageInitialiser(); with Timer(const Duration(seconds: 5), moengageInitialiser); */
JsObject? _moengage;
@override
void initialise(MoEInitConfig moEInitConfig, String appId) {
    Logger.d('initialise() : Initialising MoEngage web SDK');
    Timer(const Duration(seconds: 5), moengageInitialiser); // 5 seconds delay, just for example
}
1
likes
130
points
26.6k
downloads

Publisher

unverified uploader

Weekly Downloads

Web implementation of the moengage_flutter plugin

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, moengage_flutter_platform_interface

More

Packages that depend on moengage_flutter_web