File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sync/work/src/main/java/com/google/samples/apps/nowinandroid/sync/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,19 @@ package com.google.samples.apps.nowinandroid.sync.services
1919import com.google.firebase.messaging.FirebaseMessagingService
2020import com.google.firebase.messaging.RemoteMessage
2121import com.google.samples.apps.nowinandroid.core.data.util.SyncManager
22- import com.google.samples.apps.nowinandroid.sync.initializers.SYNC_TOPIC
2322import dagger.hilt.android.AndroidEntryPoint
2423import javax.inject.Inject
2524
25+ private const val SYNC_TOPIC_SENDER = " /topics/sync"
26+
2627@AndroidEntryPoint
2728class SyncNotificationsService : FirebaseMessagingService () {
2829
2930 @Inject
3031 lateinit var syncManager: SyncManager
3132
3233 override fun onMessageReceived (message : RemoteMessage ) {
33- if (SYNC_TOPIC == message.from) {
34+ if (SYNC_TOPIC_SENDER == message.from) {
3435 syncManager.requestSync()
3536 }
3637 }
You can’t perform that action at this time.
0 commit comments