[Android] Screen context missing name value

I’m not getting any name value on the screen context payload unless I manually set ScreenState activity or fragment property via updateWithActivity or updateWithFragment method.

Could someone clarify if thats correct? Or maybe I’m just missing something. I can’t seem to find a comprehensive document about this and base on the release notes I had an impression that this would be automatically done by the SDK.

Here are some snippets of the code I have.
This doesn’t return a name value on screen context payload:

Tracker.TrackerBuilder(emitter, context.packageName, context.packageName, context)
            .level(LogLevel.VERBOSE)
            .platform(DevicePlatforms.Mobile)
            .sessionContext(true)
            .mobileContext(true)
            .lifecycleEvents(true)
            .screenContext(true)
            .installTracking(true)
            .applicationContext(true)
            .subject(subject)
            .base64(true)
            .backgroundTimeout(90)
            .foregroundTimeout(600)
            .build()

Event

Tracker.instance().track(Structured.builder()
                .category("category")
                .action("action")
                .label("ping")
                .value(100.00)
                .build());

Hi @teffi, thanks again for being so active in sharing the issues you’re encountering. We’re working on a resolution to this one and will hopefully have a fix pushed early next week.

1 Like