initialize method
初始化推送和分析
调用前请先查看下方合规指南
合规指南:
type
only phone, box
catchUncaughtExceptions
捕获漏网异常,只抓取原生异常
默认情况下,应用在前台是显示通知的。 开发者更改前台通知显示设置后,会根据更改生效。
Implementation
@override
Future<void> initialize({
String? type,
bool? catchUncaughtExceptions,
}) {
return _channel.invokeMethod("initialize", {
"device-type": type,
"catch-uncaught-exceptions": catchUncaughtExceptions,
});
}