|
|
@ -100,12 +100,12 @@ public class JavaApp {
|
|
|
|
devicetoken = outputJson.getString("accessToken");
|
|
|
|
devicetoken = outputJson.getString("accessToken");
|
|
|
|
devicerefreshtoken = outputJson.getString("refreshToken");
|
|
|
|
devicerefreshtoken = outputJson.getString("refreshToken");
|
|
|
|
if (response.getStatus() != 200) {
|
|
|
|
if (response.getStatus() != 200) {
|
|
|
|
throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
|
|
|
|
// throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
config.SaveRegistration(spec, devicetoken, devicerefreshtoken);
|
|
|
|
config.SaveRegistration(spec, devicetoken, devicerefreshtoken);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
//e.printStackTrace();
|
|
|
|
//e.printStackTrace();
|
|
|
|
throw e;
|
|
|
|
//throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|