Error after update to targetSdk 34 using SmartLocation library – One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified
After updating my project to targetSdkVersion 34, I’m receiving the error: “One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn’t being registered exclusively for system broadcasts”.
Why does my BroadcastReceiver stop working?
I use BroadcastReceiver to receive system notifications. When receiving a notification, I need to send some data to the server.
It’s important for me that receiving broadcasts and sending data works when the application is in background (this is its main task).