title: Registering Static Broadcast receiver in Oreo
body: <p>I'm Working on a project which records incoming calls and outgoing calls,
  but with Oreo static broadcast receivers (Broadcast receivers which are registered in the manifest) are not getting triggered.
  if I register with context, the broadcast will not be triggered once app gets killed.</p>
  
  <p>I want the broadcast receiver to work even if app is closed.</p>
  
  <p>is there any possible way to achieve this Oreo? or any other alternative approach to achieve this?
  any help will be appreciated.</p>
  
  <p>I'm registering in manifest as below code</p>
  
  <pre><code>&lt;application ...
    ..
      &lt;receiver
              android:name=".PhoneCallReceiver"
              android:enabled="true"
              android:exported="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>