title: Scheduled local notifications are not coming in flutter
body: <p>I Have an app that will show a notification at a certain time say, every day at 10 AM. I have used <code>flutter_local_notifications: ^1.4.1</code> for notification purposes. From the GitHub page, I have created the notification and I got the notification in real-time, When I active the button for scheduled notification say from 10 seconds from now, I haven't got the response. Tried in an emulator in android.</p>
  
  <pre><code> import 'package:flutter/material.dart';
  import 'package:flutter_local_notifications/flutter_local_notifications.dart';
  
  void main() =&gt; runApp(AwesomeTime());
  
  class AwesomeTime extends StatefulWidget {
    @override
    _AwesomeTimeState createState() =&gt; _AwesomeTimeState();
  }
  
  class _AwesomeTimeState extends State&lt;AwesomeTime&gt; {
    FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin;
    void initState() {
      super.initState();
      initNotification();
    }
  
    initNotification() {
      flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
      var initializationSettingsAndroid =
          new AndroidInitializationSettings('@mipmap/ic_launcher');
      var initializationSettingsIOS = new IOSInitializationSettings();
      var initializationSettings = new InitializationSettings(
          initializationSettingsAndroid, initializationSettingsIOS);
      FlutterLocalNotificationsPlugin().initialize(initializationSettings,
          onSelectNotification: onSelectNotification);
    }
  
    Future&lt;void&gt; onSelectNotification(String payload) async {
      if (payload != null) {
        debugPrint('notification payload: ' + payload);
      }
    }
  
    showNotification() async {
      var scheduledNotificationDateTime =
          DateTime.now().add(Duration(seconds: 5));
      var android = new AndroidNotificationDetails(
        'Channel ID',
        'Channel Name',
        'channelDescription',
        importance: Importance.Max,
        priority: Priority.High,
      );
      var iOS = new IOSNotificationDetails();
      var platform = new NotificationDetails(android, iOS);
      // await flutterLocalNotificationsPlugin.show(
      //     0, 'current reminder', 'current reminder', platform,
      //     payload: 'Awesome');
  
      await flutterLocalNotificationsPlugin.schedule(0, 'Schedule Reminder',
          'Schedule reminder', scheduledNotificationDateTime, platform);
    }
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Scaffold(
          body: Center(
            child: RaisedButton(
              child: Text('push notifications'),
              onPressed: () {
                showNotification();
              },
            ),
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p>In the doc, they mentioned some updates needed to be done for the <code>AndroidManifest.xml</code> I have updated in <code>android/app/src/main/AndroidManifest.xml</code>
  Below are the changes</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
  &lt;receiver android:name="com.example.first_app.ScheduledNotificationReceiver" /&gt;
          &lt;receiver android:name="com.example.first_app.ScheduledNotificationBootReceiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED"&gt;&lt;/action&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
          &lt;service   android:name="com.example.first_app.localnotifications.services.LocalNotificationsService"
  </code></pre>