Skip to content

Miniapp SDK v5.3.0

Compare
Choose a tag to compare
@GondiTilak GondiTilak released this 25 Jul 03:01
· 9 commits to master since this release
02a2385

SDK

  • Deprecated: create(appInfo: ,queryParams: ,completionHandler: ,messageInterface: ,adsDisplayer: ,fromCache: ) in MiniApp` class.
  • Deprecated: getUniqueId(completionHandler:) in MiniAppMessageDelegate protocol is deprecated. You should use getMessagingUniqueId(completionHandler:) instead.
  • Feature: Added new HostAppThemeColors model class to hold the primary and secondary color strings in Hex format.
  • Feature: Added a new optional interface getHostAppThemeColors(completionHandler:) in MiniAppMessageDelegate protocol, to fetch the host app theme colors.
  • Feature: Added new isDarkMode interface to get the mode set in Host app / Device.
  • Feature: Added new public interface didReceiveMAAnalytics(analyticsInfo: MAAnalyticsInfo, completionHandler: @escaping (Result<MASDKProtocolResponse, MAAnalyticsError>) -> Void) for host app to receive the MAAnalyticsInfo info for the events from MiniApps.
  • Feature: Added a new public interface in MiniappView class. loadFromBundle(completionHandler:). Now Native/Host apps can load a Miniapp from bundle.
  • Feature: Added a new public interface sendInfoToHostApp(info: UniversalBridgeInfoParameters, completionHandler: @escaping (Result<MASDKProtocolResponse, UniversalBridgeError>) -> Void) in UniversalBridgeDelegate protocol. Now MiniApps can share the information to host app as structured object of type UniversalBridgeInfoParameters having parameters [key, value and description].

Sample App

  • Feature: Implemented method getHostAppThemeColors(completionHandler:) in the sample app to fetch the host app theme colors and pass it to MiniApps.
  • Feature: Added qa settings page 'Theme Color' to test sending host app theme primary and secondary colors.
  • Feature: Added implementation in Demo app under Features tab to show how a Miniapp can be loaded from Bundle.
  • Feature: Added qa settings page 'Analytics Info' to view the analytics events recieved from the MiniApp.