braze-inc / braze-segment-kotlin

The Braze analytics-kotlin integration.
Other
1 stars 2 forks source link

Error brazeDevKey not found #4

Open napas-pomelo opened 2 years ago

napas-pomelo commented 2 years ago

Describe the bug I'm trying to migrate from appboy-segment-android to analytics-kotlin-braze. Initializing segment analytics with braze destination gets the error as follows:

 kotlinx.serialization.MissingFieldException: Field 'brazeDevKey' is required for type with serial name 'com.segment.analytics.kotlin.destinations.braze.BrazeSettings', but it was missing

To Reproduce Steps to reproduce the behavior:

  1. Init braze
    val brazeConfig = BrazeConfig.Builder()
    .setApiKey(...)
    .setCustomEndpoint(...)
    .setFirebaseCloudMessagingSenderIdKey(...)
    ...
     .build()
    Braze.configure(this, brazeConfig)
  2. Init segment analytics with braze destination
    analytics = Analytics("...", context) {
    ...
    }
    analytics.add(BrazeDestination(context))
  3. Run and see the error

Platform (please complete the following information):