title: Notifications oreo api 26 - were working perfectly, now they're not
body: <p>I had notifications working perfectly after implementing channels etc, but then it suddenly stopped working. I'm wondering why, could it be the dependencies, or is there something else wrong with my code?</p>
  
  <p><strong><em>Notification code:</em></strong></p>
  
  <pre><code> public void initiateNotification(){
  
      NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      builder = new Notification.Builder(this);
  
  
      Intent notiIntent = new Intent(this, MainPage.class);
      notiIntent.putExtra("fileName", storage.getFileName(Calendar.getInstance()));
      notiIntent.setAction("NOTI");
      notiIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  
      PendingIntent pi = PendingIntent.getActivity(this, 0, notiIntent, 0);
  
      Intent stopIntent = new Intent(this, Services.class);
      stopIntent.setAction("STOP");
      PendingIntent stopPi = PendingIntent.getService(this, 0, stopIntent, 0);
      Notification.Action stopAction = new Notification.Action.Builder(null, "STOP", stopPi).build();
  
  
  
      //test
      int notifyID = 1;
      String CHANNEL_ID = "my_channel_01";// The id of the channel.
      CharSequence name = getString(R.string.channel_name);// The user-visible name of the channel.
      int importance = NotificationManager.IMPORTANCE_HIGH;
     NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID, name, importance);
  
      Notification noti = new Notification.Builder(Services.this)
              .setContentTitle("Well Done! Stay Active!")
              .setContentText("Number of Steps : " + mSteps)
              .setSmallIcon(R.drawable.bino_small)
              .setContentIntent(pi)
              .setChannelId(CHANNEL_ID)
              .build();
  
  
      startForeground(1, noti);
  }
  </code></pre>
  
  <p><strong><em>SDK versions:</em></strong></p>
  
  <ul>
  <li>compileSdkVersion: 27</li>
  <li>buildToolsVersion: 27.0.3</li>
  <li>minSdkVersion: 26</li>
  <li>targetSdkVersion: 26</li>
  </ul>
  
  <p>I have looked at many solutions and have tried them all, but nothing seems to help. Thanks in advance.</p>