Skip to content

Commit f196493

Browse files
committed
feat: add bundleId to PushReceiver
1 parent 2f5c387 commit f196493

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/main/src/init.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,17 @@ const registerPushNotifications = async () => {
149149
firebase: env.VITE_FIREBASE_CONFIG,
150150
persistentIds: persistentIds || [],
151151
credentials,
152+
bundleId: "is.follow",
153+
chromeId: "is.follow",
152154
})
153155
logger.info(
154156
`PushReceiver initialized with token ${credentials?.fcm?.token} and firebase config ${env.VITE_FIREBASE_CONFIG}`,
155157
)
156158

159+
instance.onReady(() => {
160+
logger.info("PushReceiver ready")
161+
})
162+
157163
instance.onCredentialsChanged(({ newCredentials }) => {
158164
logger.info(`PushReceiver credentials changed to ${newCredentials?.fcm?.token}`)
159165
updateNotificationsToken(newCredentials)

0 commit comments

Comments
 (0)