gameball_sdk 3.1.1
gameball_sdk: ^3.1.1 copied to clipboard
Gameball Integration SDK allowing direct communication with multiple Gameball services like Customer creation, sending Events, and showing Gameball Profile
π Changelog #
All notable changes to the Gameball Flutter SDK are documented here.
3.1.1 - 2025-12-15 π§ #
Patch Release: Guest mode support for profile widget
π Fixed #
- π Guest Mode Support: Profile widget can now be displayed without customer authentication
- π Optional Customer ID:
ShowProfileRequest.customerIdis now optional, defaulting tonullfor guest mode
π Changed #
- ποΈ ShowProfileRequest Builder: No longer requires customer ID - supports guest mode scenarios
- π Widget URL Construction: Enhanced to support both authenticated and guest modes
π οΈ Developer Experience #
- β‘ Simpler API: Build
ShowProfileRequestwithout customer ID for guest mode - π― Flexible Usage: Support for preview/showcase scenarios before user registration
- π Better Documentation: Clear examples for both guest and authenticated modes
3.1.0 - 2025-10-14 π #
Security Release: Token-based authentication for enhanced API security
π Security #
- π‘οΈ Added Session Token authentication mechanism for secure API communication
- π Optional
sessionTokenparameter inGameballConfigfor token-based authentication - π Automatic secure endpoint routing (API v4.0 β v4.1) when Session Token is provided
- π‘
X-GB-TOKENheader added to requests when using Session Token authentication - β‘ Per-Request Session Token Override: All SDK methods (
initializeCustomer,sendEvent,showProfile) now accept an optionalsessionTokenparameter to override or nullify the global session token on a per-request basis
π§ Internal Changes #
- π§ Added
getIntegrationsUrl()function for conditional endpoint routing - π Added API version constants for version management
π API Changes #
initializeCustomer(request, callback, {sessionToken})- Added optional sessionToken parametersendEvent(event, callback, {sessionToken})- Added optional sessionToken parametershowProfile(context, request, {sessionToken})- Added optional sessionToken parameter
π Fixed #
- π§ Updated
PushProviderenum to follow Dart lowerCamelCase convention (firebase,huawei)
3.0.0 - 2025-09-27 π #
Big changes are here! π We've completely redesigned the SDK architecture with modern Flutter patterns, builder APIs, and enhanced type safety. This major release brings significant improvements to developer experience while maintaining all the features you love.
β¨ What's New #
- ποΈ Builder Pattern Architecture - All request models now use intuitive builder patterns with compile-time validation
- π‘οΈ Enhanced API Validation - Better error messages and validation across all SDK methods
- βοΈ Smart Defaults - Automatic default values for channel ("mobile"), guest status (false), and platform detection
- π§ Flexible Customer Attributes - New
additionalAttributessupport for custom field handling - π‘ Better IDE Support - Improved auto-completion and IntelliSense with builder patterns
π What's Changed #
- π₯ BREAKING: Complete architecture makeover using builder patterns for all requests
- π₯ BREAKING: Immutable request models with
InitializeCustomerRequestBuilder,EventBuilder,CustomerAttributesBuilder - π₯ BREAKING: Updated method signatures to use new builder-based request objects
- π Performance Boost - Removed 11 redundant static variables for cleaner, faster code
- π§ Streamlined Flow - Simplified customer initialization by merging redundant processes
- π¦ Cleaner JSON - Automatic null value removal for optimized API requests
- π― Better Error Handling - Enhanced callback mechanisms throughout the SDK
ποΈ What's Removed #
- π₯ BREAKING: Legacy static variable management (replaced with parameter-based data flow)
2.2.3 - 2025-07-09 π #
Better navigation everywhere! We've improved how external URLs are handled across both iOS and Android platforms.
π§ What's Fixed #
- π External URL Navigation - External URLs now properly open outside the Gameball Widget WebView on both iOS and Android
2.2.2 - 2025-07-02 π± #
Sharing just got better! Fixed some sharing quirks and improved navigation handling.
π§ What's Fixed #
- π² Native Sharing - Fixed native sharing to include the actual referral link, not just the text
- π WebView Navigation - Better handling of external URL navigation from within the widget
2.2.1 - 2025-07-01 π€ #
Android users, this one's for you! Enhanced sharing capabilities with native dialog support.
β¨ What's New #
- π± Native Android Sharing - Added JavaScript injection to trigger native sharing dialog on Android
2.2.0 - 2025-03-30 π #
Referrals made easy! Firebase Dynamic Links are going away, but we've got you covered with better referral handling.
β¨ What's New #
- π― Referral Codes - New
referralCodeparameter for seamless platform integration
π What's Changed #
- π Dynamic Links Independence - Firebase Dynamic Links removed from customer registration for flexible usage
ποΈ What's Removed #
- π± Firebase Dynamic Links - Deprecated functionality removed (use referralCode instead)
2.1.0 - 2025-03-07 π’ #
Huawei users rejoice! π You can now receive push notifications through Gameball using Huawei Push Kit!
β¨ What's New #
- π Huawei Push Support - Full integration with Huawei Push Kit for push notifications
- π§ Flexible Push Setup - Separated Firebase token handling for more control
- ποΈ Push Provider Methods - New
initializeFirebase()andinitializeHuawei()methods
2.0.1 - 2025-02-19 π¨ #
Small but important! Better visibility for the profile widget close button.
π§ What's Fixed #
- π¨ Close Button Visibility - Darker close button color to prevent blending with backgrounds
2.0.0 - 2024-12-11 π #
Welcome to the future! π Exit Player, Enter Customer! The SDK now runs on Integrations APIs V4 with major improvements.
β¨ What's New #
- π― Customer-Centric API - Complete transition from "Player" to "Customer" terminology
- π± Better WebView - Improved scrolling and interaction in the customer profile widget
- π§ Backwards Compatibility - Support for older Dart and Flutter versions
- π¦ Updated Dependencies - Latest Firebase versions for better performance
π What's Changed #
- π₯ BREAKING: Now runs on Integrations APIs V4 - more powerful and flexible!
- π¨ Enhanced Profile Widget - Smoother scrolling and better user experience
1.0.3 - 2024-10-22 ποΈ #
More control for you! Show or hide the profile widget close button as needed.
β¨ What's New #
- ποΈ Close Button Control - Option to show/hide the widget close button
1.0.2 - 2024-10-15 π§ #
Under the hood improvements! Better URL building and request handling.
π§ What's Fixed #
- π Widget URL Building - Fixed issues with widget URL construction
- π‘ HTTP Headers - Improved request header handling
1.0.1 - 2024-10-10 π #
Global-ready! Better language support and cleaner code.
β¨ What's New #
- π RTL/LTR Support - Close button now properly supports right-to-left languages
π What's Changed #
- π§Ή Code Cleanup - Removed unused imports and unnecessary code
- π Better Language Handling - Improved global vs preferred language logic
- π‘ Enhanced Requests - Language parameter included in all API requests
- π Widget URL Refactor - Cleaner widget URL construction
1.0.0 - 2024-10-01 π #
Welcome to Gameball Flutter SDK! π The first release brings all the essential features you need.
β¨ What's New #
- π₯ Customer Registration - Register and manage customer profiles
- π Referral System - Built-in referral tracking and management
- π Event Tracking - Track user actions and behaviors
- π¨ Profile Widget - Beautiful customer profile display widget
Ready to engage your customers like never before! π