Codename One Launches Privacy-First Analytics API With Consent Gate and Multi-Provider Support

Codename One, an open-source framework for building cross-platform apps in Java or Kotlin, has introduced a redesigned analytics API that replaces its outdated Google Analytics v1 integration. The new system separates three previously tangled concerns — what is reported, where it is sent, and whether sending is permitted — through a facade, a provider interface, and a consent gate. Reporting is opt-in by default, meaning no data reaches any analytics provider until the user explicitly grants consent, addressing GDPR and CCPA compliance requirements. Consent is granular, allowing users to permit crash reporting while declining behavioral analytics, and a pseudonymous client ID stored in app preferences can be reset on erasure requests. Five analytics providers ship with the package, including integrations for Google Analytics 4 and Matomo, alongside Codename One's own cloud-based provider available to paid subscribers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in