diff --git a/src/screens/Tabs/Me/Push.tsx b/src/screens/Tabs/Me/Push.tsx index bdb0d2a3..f7dd4aa9 100644 --- a/src/screens/Tabs/Me/Push.tsx +++ b/src/screens/Tabs/Me/Push.tsx @@ -37,6 +37,7 @@ const TabMePush: React.FC = () => { const appsQuery = useAppsQuery({ options: { + enabled: false, onSuccess: async data => { if (data.vapid_key) { await checkPush() @@ -49,6 +50,9 @@ const TabMePush: React.FC = () => { } } }) + useEffect(() => { + appsQuery.refetch() + }, []) const checkPush = async () => { const permissions = await Notifications.getPermissionsAsync()