diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-13 16:58:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-13 16:58:11 -0700 |
commit | e48d7264dec72c5daad3365e2127519fee0c8cd1 (patch) | |
tree | 7f1ea6e31d090dfaf36f62957440b418e45efc93 /modern/src/login/LoginPage.js | |
parent | 5a685addb8e1a9ff9b03399d3b06c3cc60d73e9b (diff) | |
download | trackermap-web-e48d7264dec72c5daad3365e2127519fee0c8cd1.tar.gz trackermap-web-e48d7264dec72c5daad3365e2127519fee0c8cd1.tar.bz2 trackermap-web-e48d7264dec72c5daad3365e2127519fee0c8cd1.zip |
Handle push notification tokens
Diffstat (limited to 'modern/src/login/LoginPage.js')
-rw-r--r-- | modern/src/login/LoginPage.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index 0077f6bd..34d0e7d8 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -13,6 +13,7 @@ import { useLocalization, useTranslation } from '../common/components/Localizati import LoginLayout from './LoginLayout'; import usePersistedState from '../common/util/usePersistedState'; import logoSvg from '../resources/images/logo.svg'; +import { nativePostMessage } from '../common/components/NativeInterface'; const useStyles = makeStyles((theme) => ({ legacy: { @@ -73,6 +74,7 @@ const LoginPage = () => { if (response.ok) { const user = await response.json(); dispatch(sessionActions.updateUser(user)); + nativePostMessage('login'); navigate('/'); } else { throw Error(await response.text()); |