Clearing local data
Use the following method to delete any local data that has been saved inside the SDK, such as databases and files:
- import 'package:business_messaging_sdk/business_messaging_sdk.dart' show BusinessMessagingSDK;
BusinessMessagingSDK.clearData(appId);
SDK logging
By default, the SDK logs are disabled. To get the debug logs printed in logcat, enable the logs by the following method:
- import 'package:business_messaging_sdk/business_messaging_sdk.dart' show BusinessMessagingSDK;
BusinessMessagingSDK.enableLog(isLogEnabled);
- import 'package:business_messaging_sdk/business_messaging_sdk.dart' show BusinessMessagingSDK;
Locale locale = new Locale('en', 'US'); //Sample
BusinessMessagingSDK.setLocale(locale);
Specific handling for Android
HideLocationSearch
To hide or show the location search on the map, add the following method to your "MainActivity" file.
By default, the location search will be visible.
- import com.zoho.bm.business_messaging_sdk.BusinessMessagingSdkPlugin;
BusinessMessagingSdkPlugin.hideLocationSearch(false);