Note: this method uses exponential back-off to retry in case of service unavailability and hence could block the calling thread for many seconds. @param message message to be sent, including the device's registration id. @param registrationId device where the message will be sent. @param retries number of retries in case of service unavailability errors. @return result of the request (see its javadoc for more details) @throws IllegalArgumentException if registrationId is {@literal null}. @throws InvalidRequestException if GCM didn't returned a 200 or 503 status. @throws IOException if message could not be sent.
|
|
|
|
|
|
|
|
|
|