initialize static method
void
initialize()
Implementation
static void initialize() {
final InitializationSettings initialSettings = InitializationSettings(
android: AndroidInitializationSettings(
'@mipmap/ic_launcher',
),
);
_notiPlugin.initialize(
initialSettings,
onDidReceiveNotificationResponse: (NotificationResponse details) {
if (details.payload != null || details.payload != '') {
Get.to(() => NotificationScreen());
}
},
);
}