TelemetryDeck / FlutterSDK

Flutter SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
https://telemetrydeck.com/
MIT License
3 stars 2 forks source link

[Docs] Misleading "TelemetryManager" in Readme.md #3

Closed novas1r1 closed 4 months ago

novas1r1 commented 5 months ago

In the README.md it says we should use the TelemetryManager to call the functions of the SDK. The TelemetryManager doesn't exist. This could be misleading. Instead we need a new instance of Telemetrydecksdk to be able to call the functions.

So instead of this: TelemetryManager.send("signal_type")

It should be this: Telemetrydecksdk().send("signal_type")

Or:

final telemetryManager = Telemetrydecksdk();
telemetryManager.send("signal_type");
...
novas1r1 commented 4 months ago

This should be fixed with my PR https://github.com/TelemetryDeck/FlutterSDK/pull/4