Java Spring REST API for Google Cloud Messaging and Apple Push Notification services