PushNotification.init constructor
PushNotification.init(
- BuildContext? context
Implementation
PushNotification.init(this.context){
flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
var android = new AndroidInitializationSettings('app_icon');
var iOS = new IOSInitializationSettings();
var initSettings = new InitializationSettings(android: android, iOS: iOS);
flutterLocalNotificationsPlugin.initialize(initSettings, onSelectNotification: _onSelectNotification);
}