configure static method
Configures the SDK senderId is used in Andriod appGroup is used in iOS. It will help to share data between app target and extensions. App Group is 'Required' to log events from extension and also to track certain events from the rich push notification.
Implementation
static Future<void> configure(Map<String, dynamic> config) async {
final appId = config['appId'] as String?;
if (appId == null || appId.trim().isEmpty) {
print('APPIER: Invalid AppId passed');
return;
}
final customConfig = {
'appId': appId,
'senderId': config['senderId'] as String?,
'appGroup': config['appGroup'] as String?,
'isDev': config['isDev'] as bool? ?? false
};
await AppierFlutterPlatform.instance.configure(appId, customConfig);
}