Fix push wrong ID

This commit is contained in:
Zhiyuan Zheng 2022-05-16 23:44:49 +02:00
parent 9c1d18c7f0
commit 46bab1593f
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ const TabMePush: React.FC = () => {
} else {
Notifications.getExpoPushTokenAsync({
experienceId: '@xmflsct/tooot',
applicationId: 'com.xmflsct.tooot.app'
applicationId: 'com.xmflsct.app.tooot'
})
.then(data => setPushAvailable(!!data))
.catch(() => setPushAvailable(false))

View File

@ -26,7 +26,7 @@ const pushUseConnect = ({ t, instances }: Params) => {
: (
await Notifications.getExpoPushTokenAsync({
experienceId: '@xmflsct/tooot',
applicationId: 'com.xmflsct.tooot.app'
applicationId: 'com.xmflsct.app.tooot'
})
).data

View File

@ -56,7 +56,7 @@ const pushRegister = async (
formData.append('subscription[endpoint]', endpoint)
formData.append(
'subscription[keys][p256dh]',
'BO3P7Fe/FxPNijeXayVYViCoLicnnACc+a55wzcS0qIjYU++dtAl2XltgEfU5qPuXrFg5rnxBzbwQG4cAmdNLK4='
'BMn2PLpZrMefG981elzG6SB1EY9gU7QZwmtZ/a/J2vUeWG+zXgeskMPwHh4T/bxsD4l7/8QT94F57CbZqYRRfJo='
)
formData.append('subscription[keys][auth]', auth)
Object.keys(alerts).map(key =>

View File

@ -18,7 +18,7 @@ export const updateInstancePush = createAsyncThunk(
: (
await Notifications.getExpoPushTokenAsync({
experienceId: '@xmflsct/tooot',
applicationId: 'com.xmflsct.tooot.app'
applicationId: 'com.xmflsct.app.tooot'
})
).data

View File

@ -25,7 +25,7 @@ export const updateInstancePushDecode = createAsyncThunk(
: (
await Notifications.getExpoPushTokenAsync({
experienceId: '@xmflsct/tooot',
applicationId: 'com.xmflsct.tooot.app'
applicationId: 'com.xmflsct.app.tooot'
})
).data