To keep IDs available when your devices are offline, you publish them to gateway nodes who may or may not charge for that service. (Or run your own, of course.)