gameball_sdk 3.1.1 copy "gameball_sdk: ^3.1.1" to clipboard
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.customerId is now optional, defaulting to null for 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 ShowProfileRequest without 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 sessionToken parameter in GameballConfig for token-based authentication
  • ๐Ÿ”„ Automatic secure endpoint routing (API v4.0 โ†’ v4.1) when Session Token is provided
  • ๐Ÿ“ก X-GB-TOKEN header added to requests when using Session Token authentication
  • โšก Per-Request Session Token Override: All SDK methods (initializeCustomer, sendEvent, showProfile) now accept an optional sessionToken parameter 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 parameter
  • sendEvent(event, callback, {sessionToken}) - Added optional sessionToken parameter
  • showProfile(context, request, {sessionToken}) - Added optional sessionToken parameter

๐Ÿ› Fixed #

  • ๐Ÿ”ง Updated PushProvider enum 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 additionalAttributes support 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 referralCode parameter 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() and initializeHuawei() 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! ๐Ÿš€

1
likes
140
points
166
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Gameball Integration SDK allowing direct communication with multiple Gameball services like Customer creation, sending Events, and showing Gameball Profile

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

build_runner, firebase_core, firebase_messaging, firebase_messaging_web, flutter, http, json_annotation, json_serializable, package_info_plus, platform_info, share_plus, url_launcher, webview_flutter

More

Packages that depend on gameball_sdk