问题
Using SyncAdapter and AbstractThreadedSyncAdapter https://riptutorial.com/android/example/32303/sync-adapter-with-every-min-requesting-value-from-server- I have registered receiver in manifest and from SyncAdapter broadcast register its working fine before Oreo but in Oreo, broadcast receiver failed to fire.
Intent intent = new Intent();
intent.setAction("package.qa.ACTION_SYNC");
intent.putExtra("OUTBOX_ID", outboxId);
intent.putExtra("JSON_RESPONSE", jsonResponse);
intent.putExtra("TRANS_TYPE", transaction);
getContext().sendBroadcast();
来源:https://stackoverflow.com/questions/53664614/failed-to-fire-broadcast-receiver-in-android-oreo