title: Rogue Broadcast intents being sent
body: <p>I have implemented receiving broadcast intents in my published app, actually sending them will be done in the near future. However, intents are already received and it crashes expectedly because mandatory Bundle extras are missing. After seeing this crash I wanted to use <code>LocalBroadcastManager</code>, but now the question is if this is good practice. </p>
  
  <p>The <code>BroadcastReceiver</code> is not registered in the Manifest, but it is in the <code>Application</code> class:</p>
  
  <pre><code>class App : Application() {
  
      override fun onCreate() {
          super.onCreate()
          registerReceiver(NotificationBroadcastReceiver(), IntentFilter("com.me.my_app.REUPLOAD_REQUESTED.open_notification"))
      }
  }
  </code></pre>
  
  <p>Now, I received this crash in Crashlytics for a single user, 25 times in an hour:</p>
  
  <pre><code>Fatal Exception: java.lang.RuntimeException
  Error receiving broadcast Intent { act=com.me.my_app.REUPLOAD_REQUESTED.open_notification flg=0x10 pkg=com.me.my_app (has extras) } in d.a.a.a.v.b.a@41e45b2
  </code></pre>
  
  <p>What or who is sending these intents then? Could it be done by the user itself?</p>
  
  <p><strong>Use <code>LocalBroadcastManager</code> or not</strong></p>
  
  <p>My app has 4 modules: one that contains <code>Application</code> and some Dagger modules, and a separate module for the data/domain/presentation layer. The reason to use broadcasts, is because there are 2 loosely coupled components: 
  In the data layer <code>FirebaseMessagingService</code> receives a FCM message which in response sends an Intent to <code>NotificationBroadcastReceiver</code>, which is responsible for showing a notification and handle interaction with that notification.</p>
  
  <p>Should LocalBroadcastManager be used? This is not actual IPC, it's just a singleton holding a list of BroadcastReceivers. It's packaged within androidx and at the moment not labeled as deprecated.</p>
  
  <p>If not, what should be used?</p>