How to ensure IoT device communication with no connection

Typically, an IoT device needs some form of connectivity in order to communicate with the network, whether it be Wi-Fi, Bluetooth, or cellular connectivity. But what should be done when