|
@@ -36,10 +36,10 @@ public class PushUtils {
|
|
|
|
|
|
HashMap<String, String> result = new HashMap<String, String>();
|
|
HashMap<String, String> result = new HashMap<String, String>();
|
|
try {
|
|
try {
|
|
- ClassPathResource cpr = new ClassPathResource("firebase/firebase_service_key.json");
|
|
|
|
|
|
+ ClassPathResource cpr = new ClassPathResource("firebase/mcare-ctc-firebase-adminsdk-sn0dw-e165549145.json");
|
|
FirebaseOptions options = new FirebaseOptions.Builder()
|
|
FirebaseOptions options = new FirebaseOptions.Builder()
|
|
.setCredentials(GoogleCredentials.fromStream(cpr.getInputStream()))
|
|
.setCredentials(GoogleCredentials.fromStream(cpr.getInputStream()))
|
|
- .setDatabaseUrl("https://fcmtest-ddc32.firebaseio.com/")
|
|
|
|
|
|
+ .setDatabaseUrl("https://mcare-ctc.firebaseio.com/")
|
|
.build();
|
|
.build();
|
|
|
|
|
|
if (FirebaseApp.getApps().isEmpty()) {
|
|
if (FirebaseApp.getApps().isEmpty()) {
|
|
@@ -68,7 +68,7 @@ public class PushUtils {
|
|
// logger.error("fileNotFound -- > " + e);
|
|
// logger.error("fileNotFound -- > " + e);
|
|
result.put("FileNotFound", "FileNotFound");
|
|
result.put("FileNotFound", "FileNotFound");
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
-// logger.error("IOException -- > " + e);
|
|
|
|
|
|
+ logger.error("IOException -- > " + e);
|
|
result.put("IOException", "IOException");
|
|
result.put("IOException", "IOException");
|
|
} catch (FirebaseMessagingException e) {
|
|
} catch (FirebaseMessagingException e) {
|
|
// logger.error("FirebaseMessagingException -- > " + e);
|
|
// logger.error("FirebaseMessagingException -- > " + e);
|