Although all the sendXXXXX booleans are true the code stops executing at the first notify(). If I manually set the first one to false, then the code stops executing inside the second if statement.
When .notify() is called acts like a return statement. It exits the function but doesn't throw any errors/exceptions.
if (sendAC) {
mNotificationManager.notify(XMPP_ID, notificationHouse);
}
if (sendRefridgerator) {
mNotificationManager.notify(XMPP_IDRefridgerator, notificationRefridgerator);
}
if (sendWater) {
mNotificationManager.notify(XMPP_IDWater, notificationWater);
}