title: Android : Null PendingIntent
body: <p>I am trying to create a PendingIntent for a broadcast receiver containing a notification and I am somehow getting a null PendingIntent returned. It makes no sense because there is only 1 case specified that would return a null PendingIntent and that is if PendingIntent.FLAG_NO_CREATE is passed as a flag option.</p>
  
  <p>This is my PendingIntent code.. After in debugger pendIntent = null.</p>
  
  <blockquote>
  <pre><code>    Intent notificationIntent = new Intent(context, LocalPushBroadcastReceiver.class);
      notificationIntent.putExtra(LocalPushBroadcastReceiver.NOTIFICATION_ID_ARG, pushId);
      notificationIntent.putExtra(LocalPushBroadcastReceiver.NOTIFICATION_ARG, notification);
      notificationIntent.setData(Uri.parse("LocalPush:" + pushId + notification.toString()));
      PendingIntent pendIntent = PendingIntent.getBroadcast(context, 0, notificationIntent, 0);
  </code></pre>
  </blockquote>
  
  <p>I have tried many other flag / options. I tried calling this code from onClick / onStart / everywhere. I am on the latest version of Android Studio and am compiling with the latest sdk version 25. Also LocalPushBroadcastReceiver is defined in manifest properly.</p>
  
  <p>It's weird because I have this exact same code working on another machine in another application and I can't figure out what configuration I am missing. I would be grateful for any ideas. Thanks!</p>