fz_hms_push_kit 0.0.2
fz_hms_push_kit: ^0.0.2 copied to clipboard
A Flutter package for handling Huawei Mobile Services (HMS) Push Kit — token retrieval, foreground/background message handling, notification tap events, and a server-side helper to obtain OAuth2 acces [...]
0.0.2 #
- Added
onBackgroundMessageparameter toinitialize()for custom background message handling. - Re-exported
RemoteMessagefromhuawei_pushfor convenience. - Fixed screenshots not rendering on pub.dev (using absolute GitHub URLs).
- Fixed GitHub repository URLs in
pubspec.yaml. - Improved error handling: HMS initialization no longer crashes if
agconnect-services.jsonis missing. - Updated README documentation with clearer usage examples.
0.0.1 #
- Initial release.
HmsNotificationServiceImpl— client-side token retrieval and notification handling.HmsAuthClient— OAuth2 access token fetching with in-memory caching.HmsPushClient— Send push notifications via the Huawei Push REST API with auto token refresh.- Models:
HmsNotification,HmsPushResult,HmsTokenResponse.