I have a foreground service and register a CALL_STATE receiver there. It works fine on pre Android O. Another receiver in the service works fine too. I have removed the intent filter from the manifest. I have all the correct permissions.
Is there anything else I should be doing?
In Service...
private static final String ACTION="android.intent.action.PHONE_STATE";
registerReceiver(mCallReceiver , new IntentFilter(ACTION));