minor tweaks
This commit is contained in:
parent
e285bb1929
commit
c832088d89
|
@ -905,6 +905,7 @@ export const removePushToken = (): Promise<boolean | void> => {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// RC 6.6.0
|
||||||
export const pushTest = () => sdk.post('push.test');
|
export const pushTest = () => sdk.post('push.test');
|
||||||
|
|
||||||
// RC 6.5.0
|
// RC 6.5.0
|
||||||
|
|
|
@ -22,8 +22,9 @@ interface IPushTroubleshootViewProps {
|
||||||
|
|
||||||
const PushTroubleshootView = ({ navigation }: IPushTroubleshootViewProps): JSX.Element => {
|
const PushTroubleshootView = ({ navigation }: IPushTroubleshootViewProps): JSX.Element => {
|
||||||
const { colors } = useTheme();
|
const { colors } = useTheme();
|
||||||
|
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
const [testPushNotificationsPermission] = usePermissions(['test-push-notifications']);
|
||||||
|
|
||||||
const { deviceNotificationEnabled, defaultPushGateway, pushGatewayEnabled, foreground, serverVersion } = useAppSelector(
|
const { deviceNotificationEnabled, defaultPushGateway, pushGatewayEnabled, foreground, serverVersion } = useAppSelector(
|
||||||
state => ({
|
state => ({
|
||||||
deviceNotificationEnabled: state.troubleshootingNotification.deviceNotificationEnabled,
|
deviceNotificationEnabled: state.troubleshootingNotification.deviceNotificationEnabled,
|
||||||
|
@ -34,8 +35,6 @@ const PushTroubleshootView = ({ navigation }: IPushTroubleshootViewProps): JSX.E
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
const [testPushNotificationsPermission] = usePermissions(['test-push-notifications']);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (foreground) {
|
if (foreground) {
|
||||||
dispatch(requestTroubleshootingNotification());
|
dispatch(requestTroubleshootingNotification());
|
||||||
|
|
Loading…
Reference in New Issue