mirror of
https://github.com/tooot-app/app
synced 2025-02-28 01:27:39 +01:00
Fix push wrong ID
This commit is contained in:
parent
9c1d18c7f0
commit
46bab1593f
@ -51,7 +51,7 @@ const TabMePush: React.FC = () => {
|
|||||||
} else {
|
} else {
|
||||||
Notifications.getExpoPushTokenAsync({
|
Notifications.getExpoPushTokenAsync({
|
||||||
experienceId: '@xmflsct/tooot',
|
experienceId: '@xmflsct/tooot',
|
||||||
applicationId: 'com.xmflsct.tooot.app'
|
applicationId: 'com.xmflsct.app.tooot'
|
||||||
})
|
})
|
||||||
.then(data => setPushAvailable(!!data))
|
.then(data => setPushAvailable(!!data))
|
||||||
.catch(() => setPushAvailable(false))
|
.catch(() => setPushAvailable(false))
|
||||||
|
@ -26,7 +26,7 @@ const pushUseConnect = ({ t, instances }: Params) => {
|
|||||||
: (
|
: (
|
||||||
await Notifications.getExpoPushTokenAsync({
|
await Notifications.getExpoPushTokenAsync({
|
||||||
experienceId: '@xmflsct/tooot',
|
experienceId: '@xmflsct/tooot',
|
||||||
applicationId: 'com.xmflsct.tooot.app'
|
applicationId: 'com.xmflsct.app.tooot'
|
||||||
})
|
})
|
||||||
).data
|
).data
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ const pushRegister = async (
|
|||||||
formData.append('subscription[endpoint]', endpoint)
|
formData.append('subscription[endpoint]', endpoint)
|
||||||
formData.append(
|
formData.append(
|
||||||
'subscription[keys][p256dh]',
|
'subscription[keys][p256dh]',
|
||||||
'BO3P7Fe/FxPNijeXayVYViCoLicnnACc+a55wzcS0qIjYU++dtAl2XltgEfU5qPuXrFg5rnxBzbwQG4cAmdNLK4='
|
'BMn2PLpZrMefG981elzG6SB1EY9gU7QZwmtZ/a/J2vUeWG+zXgeskMPwHh4T/bxsD4l7/8QT94F57CbZqYRRfJo='
|
||||||
)
|
)
|
||||||
formData.append('subscription[keys][auth]', auth)
|
formData.append('subscription[keys][auth]', auth)
|
||||||
Object.keys(alerts).map(key =>
|
Object.keys(alerts).map(key =>
|
||||||
|
@ -18,7 +18,7 @@ export const updateInstancePush = createAsyncThunk(
|
|||||||
: (
|
: (
|
||||||
await Notifications.getExpoPushTokenAsync({
|
await Notifications.getExpoPushTokenAsync({
|
||||||
experienceId: '@xmflsct/tooot',
|
experienceId: '@xmflsct/tooot',
|
||||||
applicationId: 'com.xmflsct.tooot.app'
|
applicationId: 'com.xmflsct.app.tooot'
|
||||||
})
|
})
|
||||||
).data
|
).data
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ export const updateInstancePushDecode = createAsyncThunk(
|
|||||||
: (
|
: (
|
||||||
await Notifications.getExpoPushTokenAsync({
|
await Notifications.getExpoPushTokenAsync({
|
||||||
experienceId: '@xmflsct/tooot',
|
experienceId: '@xmflsct/tooot',
|
||||||
applicationId: 'com.xmflsct.tooot.app'
|
applicationId: 'com.xmflsct.app.tooot'
|
||||||
})
|
})
|
||||||
).data
|
).data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user