Skip to content

Error brazeDevKey not found #4

@napas-pomelo

Description

@napas-pomelo

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)
  1. Init segment analytics with braze destination
analytics = Analytics("...", context) {
    ...
}
analytics.add(BrazeDestination(context))
  1. Run and see the error

Platform (please complete the following information):

  • com.appboy:android-sdk-ui:20.0.0
  • com.segment.analytics.kotlin.destinations:braze:1.0.1
  • Integrations in use: Braze

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions