perusudroid / NetworkPro

Simple library to handle network connections in different views in just few lines of code.
19 stars 11 forks source link

Hi, #1

Open zeeshanrasool91 opened 6 years ago

zeeshanrasool91 commented 6 years ago

i was using your libray for Oreo, i cannot hit your broadcast receivers. when i modified your main activity intentFilter = new IntentFilter(); intentFilter.addAction(CONNECTIVITY_ACTION); by adding this code it worked, but can you define what is isDefault check in onRecieve its value is always false

perusudroid commented 6 years ago

I haven't done testing with Oreo devices. When i was testing with multiple devices, some devices like Redmi hit the onReceive() in broadcastReceivers multiple times. I tried to figure out a solution and ended with the 'isDefault' which was the originally generated for this purpose. You can print the intent bundle in the onReceive() method for more information.