public void registerGcmId(String gcmRegistrationId)
        {
            GcmRegistrationId registration = new GcmRegistrationId(gcmRegistrationId, true);

            makeRequest(REGISTER_GCM_PATH, "PUT", JsonUtil.toJson(registration));
        }
Esempio n. 2
0
        public async Task RegisterGcmId(CancellationToken token, String gcmRegistrationId)
        {
            GcmRegistrationId registration = new GcmRegistrationId(gcmRegistrationId, true);

            await MakeServiceRequestAsync(token, REGISTER_GCM_PATH, "PUT", JsonUtil.ToJson(registration));
        }