We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b6750 commit f208320Copy full SHA for f208320
be/src/main/java/yeonba/be/config/FcmConfig.java
@@ -19,6 +19,11 @@ public class FcmConfig {
19
@Bean
20
public FirebaseMessaging firebaseMessaging() throws IOException {
21
22
+ if (!FirebaseApp.getApps().isEmpty()) {
23
+
24
+ return FirebaseMessaging.getInstance(FirebaseApp.getInstance());
25
+ }
26
27
ClassPathResource resource = new ClassPathResource(fcmAccountKeyPath);
28
29
FirebaseOptions firebaseOptions = FirebaseOptions.builder()
0 commit comments