Does the event does not send the connectivity status?

Also are you sure that nobody else is using wifiStatusChange = ... already? This is risky to do that usually and you may want ot use addEventListener(....) instead