exponea / exponea-ios-sdk

MIT License
19 stars 27 forks source link

Unable to change configuration in runtime #32

Closed MatejBordac closed 2 years ago

MatejBordac commented 2 years ago

We have a use-case where we'd like to change configuration during runtime, when user changes their permission for behavior tracking. We're configuring SDK programatically using:

func configure(
        _ projectSettings: ProjectSettings,
        pushNotificationTracking: PushNotificationTracking,
        automaticSessionTracking: AutomaticSessionTracking = .enabled(),
        defaultProperties: [String: JSONConvertible]? = nil,
        flushingSetup: FlushingSetup = FlushingSetup.default
    )

And we'd like to change setting:

pushNotificationTracking: .disabled

After trying to change it in Exponea.shared.configure(...) we're getting an error. Is there antoher way to do this?

MatejBordac commented 2 years ago

My apologies, just realized this is a duplicate to issue #25 :( Closing this one.