PostHog / posthog-flutter

PostHog Flutter SDK
https://posthog.com/docs/libraries/flutter
MIT License
55 stars 37 forks source link

Feature/sht 5366 dynamically initialize posthog #101

Closed Mastersam07 closed 7 months ago

Mastersam07 commented 7 months ago

:bulb: Motivation and Context

Posthog initialization can only be done natively from android manifest and info.plist. However, there are cases where user want to configure dynamically from the dart side.

A good example is loading the posthog api key and host from some 3rd party(say api or firebase remote config) and then setting up posthog.

The current setup does not allow

This PR aims at solving the above described issue.

:green_heart: How did you test it?

With the example code, on an emulator.

:pencil: Checklist

DavideDessi319 commented 3 months ago

Hello! Any reason why this PR was closed? Thanks!

Mastersam07 commented 3 months ago

You may want to follow with #113.