cloud messaging and device API update