mirror of https://github.com/tooot-app/app
Fix push wrong ID
This commit is contained in:
parent
9c1d18c7f0
commit
46bab1593f
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 =>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue