Miniapp SDK v5.3.0
SDK
- Deprecated:
create(appInfo: ,queryParams: ,completionHandler: ,messageInterface: ,adsDisplayer: ,fromCache: ) in
MiniApp` class. - Deprecated:
getUniqueId(completionHandler:)
inMiniAppMessageDelegate
protocol is deprecated. You should usegetMessagingUniqueId(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:)
inMiniAppMessageDelegate
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 theMAAnalyticsInfo
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)
inUniversalBridgeDelegate
protocol. Now MiniApps can share the information to host app as structured object of typeUniversalBridgeInfoParameters
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.