Files
address-verification-app/src/common/TrackingComponent.tsx

419 lines
14 KiB
TypeScript
Raw Normal View History

2023-08-30 15:51:58 +05:30
import { type ReactNode, useEffect, useRef, useCallback } from 'react';
2023-08-01 17:43:25 +05:30
import { type NativeEventSubscription, AppState, type AppStateStatus } from 'react-native';
import dayJs from 'dayjs';
import { setItem, getItem } from '../components/utlis/storageHelper';
2023-08-30 15:51:58 +05:30
import CosmosForegroundService, {
2023-08-01 17:43:25 +05:30
type IForegroundTask,
2023-04-18 01:27:28 +05:30
} from '../services/foregroundServices/foreground.service';
import useIsOnline from '../hooks/useIsOnline';
import {
IGeolocationPayload,
getSyncTime,
sendLocationAndActivenessToServer,
} from '../hooks/capturingApi';
2023-04-18 01:27:28 +05:30
import { isTimeDifferenceWithinRange } from '../components/utlis/commonFunctions';
2023-08-06 13:45:15 +05:30
import { setDeviceGeolocationsBuffer, setIsTimeSynced } from '../reducer/foregroundServiceSlice';
2023-04-18 01:27:28 +05:30
import { CaptureGeolocation } from '../components/form/services/geoLocation.service';
import { logError } from '../components/utlis/errorUtils';
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
import { useAppDispatch, useAppSelector } from '../hooks';
import { dataSyncService } from '../services/dataSync.service';
import { DATA_SYNC_TIME_INTERVAL, IS_DATA_SYNC_REQUIRED } from '../constants/config';
import useIsLocationEnabled from '../hooks/useIsLocationEnabled';
import {
2023-08-01 17:43:25 +05:30
type ISyncCaseIdPayload,
type ISyncedCases,
SyncStatus,
fetchCasesToSync,
getCasesSyncStatus,
sendSyncCaseIds,
} from '../action/firebaseFallbackActions';
import { getSyncCaseIds } from '../components/utlis/firebaseFallbackUtils';
import { syncCasesByFallback } from '../reducer/allCasesSlice';
import { MILLISECONDS_IN_A_MINUTE } from '../../RN-UI-LIB/src/utlis/common';
import { setLockData } from '../reducer/userSlice';
import { getConfigData } from '../action/configActions';
2023-08-01 17:43:25 +05:30
import { AppStates } from '../types/appStates';
import { StorageKeys } from '../types/storageKeys';
import { AgentActivity } from '../types/agentActivity';
import {
getActivityTimeOnApp,
getActivityTimeWindowMedium,
getActivityTimeWindowHigh,
} from './AgentActivityConfigurableConstants';
2023-09-13 00:40:45 +05:30
import RNFS from 'react-native-fs';
import { GlobalImageMap } from './CachedImage';
2023-09-17 16:41:41 +05:30
import { get } from 'react-hook-form';
2023-09-19 12:49:35 +05:30
import { addClickstreamEvent } from '../services/clickstreamEventService';
import { CLICKSTREAM_EVENT_NAMES } from './Constants';
2023-04-18 01:27:28 +05:30
export enum FOREGROUND_TASKS {
GEOLOCATION = 'GEOLOCATION',
TIME_SYNC = 'TIME_SYNC',
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
DATA_SYNC = 'DATA_SYNC',
FIRESTORE_FALLBACK = 'FIRESTORE_FALLBACK',
2023-08-01 17:43:25 +05:30
UPDATE_AGENT_ACTIVENESS = 'UPDATE_AGENT_ACTIVENESS',
UPDATE_AGENT_ACTIVITY = 'UPDATE_AGENT_ACTIVITY',
2023-09-13 00:40:45 +05:30
DELETE_CACHE = 'DELETE_CACHE',
2023-04-18 01:27:28 +05:30
}
interface ITrackingComponent {
children?: ReactNode;
}
2023-06-06 20:05:01 +05:30
let LAST_SYNC_STATUS = 'SKIP';
const ACTIVITY_TIME_WINDOW = 10; // 10 minutes
2023-04-18 01:27:28 +05:30
const TrackingComponent: React.FC<ITrackingComponent> = ({ children }) => {
const isOnline = useIsOnline();
const dispatch = useAppDispatch();
const appState = useRef(AppState.currentState);
2023-09-07 13:34:19 +05:30
const isTeamLead = useAppSelector((state) => state.user.isTeamLead);
2023-04-18 01:27:28 +05:30
2023-05-19 17:52:28 +05:30
const {
referenceId,
pendingList = [],
pinnedList = [],
2023-08-06 13:45:15 +05:30
geolocations = [],
2023-05-19 17:52:28 +05:30
} = useAppSelector((state) => ({
2023-08-01 17:43:25 +05:30
referenceId: state.user.user?.referenceId!,
2023-05-19 17:52:28 +05:30
pendingList: state.allCases.pendingList,
pinnedList: state.allCases.pinnedList,
2023-08-06 13:45:15 +05:30
geolocations: state.foregroundService.deviceGeolocationsBuffer,
2023-05-19 17:52:28 +05:30
}));
2023-04-18 01:27:28 +05:30
const handleTimeSync = async () => {
try {
2023-08-08 18:45:08 +05:30
if (!isOnline) {
return;
}
2023-04-18 01:27:28 +05:30
const timestamp = await getSyncTime();
if (timestamp) {
const isTimeDifferenceLess = isTimeDifferenceWithinRange(timestamp, 5);
dispatch(setIsTimeSynced(isTimeDifferenceLess));
}
} catch (e: any) {
logError(e, 'Error during fetching timestamp from server.');
}
};
2023-08-31 00:34:50 +05:30
const handleSendGeolocation = async () => {
2023-04-18 01:27:28 +05:30
try {
const location = await CaptureGeolocation.fetchLocation(Date.now() + '', 0, appState.current);
2023-08-06 13:45:15 +05:30
if (!location) {
return;
}
const isActiveOnApp: string | boolean = (await getItem(StorageKeys.IS_USER_ACTIVE)) || false;
const userActivityonApp: string =
(await getItem(StorageKeys.USER_ACTIVITY_ON_APP)) || AgentActivity.LOW;
2023-08-06 13:45:15 +05:30
const geolocation: IGeolocationPayload = {
latitude: location.latitude,
longitude: location.longitude,
accuracy: location.accuracy,
timestamp: Date.now(),
isActiveOnApp: Boolean(isActiveOnApp),
userActivityOnApp: String(userActivityonApp),
2023-08-06 13:45:15 +05:30
};
2023-10-09 18:40:38 +05:30
dispatch(setDeviceGeolocationsBuffer(geolocation));
2023-08-30 15:51:58 +05:30
dispatch(sendLocationAndActivenessToServer([geolocation]));
2023-04-18 01:27:28 +05:30
} catch (e: any) {
logError(e, 'Error during background location sending.');
}
2023-08-31 00:34:50 +05:30
};
2023-04-18 01:27:28 +05:30
2023-08-08 18:45:08 +05:30
useEffect(() => {
if (!isOnline) {
return;
}
if (geolocations.length) {
2023-08-30 15:51:58 +05:30
dispatch(sendLocationAndActivenessToServer(geolocations, true));
2023-08-08 18:45:08 +05:30
}
}, [geolocations, isOnline]);
const handleGetCaseSyncStatus = async () => {
try {
2023-08-08 18:45:08 +05:30
if (!isOnline) {
return;
}
const { syncStatus, visitPlanStatus } = (await getCasesSyncStatus(referenceId)) ?? {};
if (syncStatus) {
// Keep track of the last status received
LAST_SYNC_STATUS = syncStatus;
}
if (syncStatus === SyncStatus.SEND_CASES) {
const cases = getSyncCaseIds([...pendingList, ...pinnedList]);
const payload: ISyncCaseIdPayload = {
agentId: referenceId,
cases,
};
sendSyncCaseIds(payload);
2023-05-19 17:52:28 +05:30
} else if (syncStatus === SyncStatus.FETCH_CASES) {
const updatedDetails: ISyncedCases = await fetchCasesToSync(referenceId);
2023-05-19 12:14:27 +05:30
if (updatedDetails?.cases?.length) {
dispatch(syncCasesByFallback(updatedDetails));
}
}
if (visitPlanStatus) {
dispatch(
setLockData({
visitPlanStatus,
})
);
}
} catch (e) {
logError(e as Error, 'Error during fetching case sync status');
}
};
2023-08-01 17:43:25 +05:30
const handleUpdateActiveness = async () => {
if (AppState.currentState === AppStates.ACTIVE) {
await setItem(StorageKeys.IS_USER_ACTIVE, 'true');
return;
}
const foregroundTimestamp = await getItem(StorageKeys.APP_FOREGROUND_TIMESTAMP);
const backgroundTimestamp = await getItem(StorageKeys.APP_BACKGROUND_TIMESTAMP);
const foregroundTime = dayJs(foregroundTimestamp);
const backgroundTime = dayJs(backgroundTimestamp);
const diffBetweenBackgroundAndForegroundTime = dayJs(backgroundTime).diff(
foregroundTime,
'seconds'
);
const diffBetweenCurrentTimeAndForegroundTime =
dayJs().diff(foregroundTime, 'minutes') < 0 ? 0 : dayJs().diff(foregroundTime, 'minutes');
const isForegroundTimeWithInRange =
diffBetweenCurrentTimeAndForegroundTime <= ACTIVITY_TIME_WINDOW;
const isForegroundTimeAfterBackground = dayJs(foregroundTimestamp).isAfter(backgroundTimestamp);
2023-09-19 15:09:37 +05:30
const ACTIVITY_TIME_ON_APP = getActivityTimeOnApp();
if (isForegroundTimeWithInRange) {
if (
isForegroundTimeAfterBackground ||
diffBetweenBackgroundAndForegroundTime >= ACTIVITY_TIME_ON_APP
) {
await setItem(StorageKeys.IS_USER_ACTIVE, 'true');
return;
}
await setItem(StorageKeys.IS_USER_ACTIVE, 'false');
2023-08-01 17:43:25 +05:30
}
await setItem(StorageKeys.IS_USER_ACTIVE, 'false');
return;
2023-08-01 17:43:25 +05:30
};
const handleUpdateActivity = async () => {
const foregroundTimestamp = await getItem(StorageKeys.APP_FOREGROUND_TIMESTAMP);
const backgroundTimestamp = await getItem(StorageKeys.APP_BACKGROUND_TIMESTAMP);
2023-09-17 16:41:41 +05:30
const stateSetTimestamp = await getItem(StorageKeys.STATE_SET_TIMESTAMP);
2023-09-18 20:46:35 +05:30
if (foregroundTimestamp == null) {
console.log('fts set after installation');
await setItem(StorageKeys.APP_FOREGROUND_TIMESTAMP, dayJs().toString());
}
const foregroundTime = dayJs(foregroundTimestamp);
const backgroundTime = dayJs(backgroundTimestamp);
2023-09-17 16:41:41 +05:30
const stateSetTime = dayJs(stateSetTimestamp);
const diffBetweenCurrentTimeAndForegroundTime =
dayJs().diff(foregroundTime, 'seconds') < 0 ? 0 : dayJs().diff(foregroundTime, 'seconds');
2023-09-17 16:41:41 +05:30
const diffBetweenCurrentTimeAndSetStateTime =
dayJs().diff(stateSetTime, 'minutes') < 0 ? 0 : dayJs().diff(stateSetTime, 'minutes');
const ACTIVITY_TIME_ON_APP = getActivityTimeOnApp();
const ACTIVITY_TIME_WINDOW_HIGH = getActivityTimeWindowHigh();
const ACTIVITY_TIME_WINDOW_MEDIUM = getActivityTimeWindowMedium();
2023-09-18 20:46:35 +05:30
const isStateSetTimeWithinHighRange =
diffBetweenCurrentTimeAndSetStateTime < ACTIVITY_TIME_WINDOW_HIGH;
const isStateSetTimeWithinMediumRange =
diffBetweenCurrentTimeAndSetStateTime < ACTIVITY_TIME_WINDOW_MEDIUM;
const isForegroundTimeAfterBackground = dayJs(foregroundTimestamp).isAfter(backgroundTimestamp);
if (AppState.currentState === AppStates.ACTIVE) {
if (diffBetweenCurrentTimeAndForegroundTime >= ACTIVITY_TIME_ON_APP) {
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.HIGH);
return;
}
return;
}
if (isForegroundTimeAfterBackground) {
if (diffBetweenCurrentTimeAndForegroundTime >= ACTIVITY_TIME_ON_APP) {
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.HIGH);
return;
}
return;
2023-09-18 20:46:35 +05:30
} else if (isStateSetTimeWithinHighRange) {
return;
} else if (isStateSetTimeWithinMediumRange) {
2023-09-17 16:41:41 +05:30
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.MEDIUM);
return;
2023-09-18 20:46:35 +05:30
} else {
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.LOW);
return;
}
};
2023-09-13 00:40:45 +05:30
const deleteCache = () => {
const directoryPath = RNFS.CachesDirectoryPath;
const currentDate = new Date().getTime();
RNFS.readdir(directoryPath)
.then((files) => {
for (const file of files) {
const filePath = `${directoryPath}/${file}`;
2023-09-21 15:19:06 +05:30
if (!file.endsWith('jpg') || !file.endsWith('pdf')) {
2023-09-13 00:40:45 +05:30
continue;
}
RNFS.stat(filePath)
.then((fileStat) => {
// Calculate the age of the file in milliseconds
const fileAgeMs = currentDate - new Date(fileStat.mtime).getTime();
// Check if the file is older than 30 days (30 days = 30 * 24 * 60 * 60 * 1000 milliseconds)
if (fileAgeMs > 30 * 24 * 60 * 60 * 1000) {
delete GlobalImageMap[filePath];
return RNFS.unlink(filePath); // Delete the file
}
})
.then(() => {
console.log(`Deleted old file: ${file}`);
})
.catch((error) => {
console.error(`Error deleting file: ${file}`, error);
});
}
})
.catch((error) => {
console.error('Error reading directory:', error);
});
};
2023-04-18 01:27:28 +05:30
const tasks: IForegroundTask[] = [
{
taskId: FOREGROUND_TASKS.TIME_SYNC,
task: handleTimeSync,
delay: 5 * MILLISECONDS_IN_A_MINUTE, // 5 minutes,
2023-04-18 01:27:28 +05:30
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.GEOLOCATION,
task: handleSendGeolocation,
2023-08-31 12:42:59 +05:30
delay: 3 * MILLISECONDS_IN_A_MINUTE, // 3 minutes
onLoop: true,
},
2023-08-01 17:43:25 +05:30
{
taskId: FOREGROUND_TASKS.UPDATE_AGENT_ACTIVENESS,
task: handleUpdateActiveness,
2023-09-19 15:33:16 +05:30
delay: ACTIVITY_TIME_WINDOW * MILLISECONDS_IN_A_MINUTE, // 10 minutes
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.UPDATE_AGENT_ACTIVITY,
task: handleUpdateActivity,
2023-09-19 15:09:37 +05:30
delay: ACTIVITY_TIME_WINDOW * MILLISECONDS_IN_A_MINUTE, // 10 minutes
2023-08-01 17:43:25 +05:30
onLoop: true,
},
2023-09-13 00:40:45 +05:30
{
taskId: FOREGROUND_TASKS.DELETE_CACHE,
task: deleteCache,
delay: DATA_SYNC_TIME_INTERVAL,
2023-09-13 00:40:45 +05:30
onLoop: true,
},
2023-04-18 01:27:28 +05:30
];
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
2023-09-07 13:34:19 +05:30
if (!isTeamLead) {
tasks.push({
taskId: FOREGROUND_TASKS.FIRESTORE_FALLBACK,
task: handleGetCaseSyncStatus,
delay: 5 * MILLISECONDS_IN_A_MINUTE, // 5 minutes
onLoop: true,
});
}
2023-08-08 18:45:08 +05:30
const handleDataSync = () => {
if (!isOnline) {
return;
}
dataSyncService();
};
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
if (IS_DATA_SYNC_REQUIRED) {
tasks.push({
taskId: FOREGROUND_TASKS.DATA_SYNC,
2023-08-08 18:45:08 +05:30
task: handleDataSync,
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
delay: DATA_SYNC_TIME_INTERVAL,
onLoop: true,
});
}
const userActivityUpdateOnBackground = async () => {
const foregroundTimestamp = await getItem(StorageKeys.APP_FOREGROUND_TIMESTAMP);
const backgroundTimestamp = await getItem(StorageKeys.APP_BACKGROUND_TIMESTAMP);
const foregroundTime = dayJs(foregroundTimestamp);
const backgroundTime = dayJs(backgroundTimestamp);
const diffBetweenBackgroundAndForegroundTime = dayJs(backgroundTime).diff(
foregroundTime,
'seconds'
);
const ACTIVITY_TIME_ON_APP = getActivityTimeOnApp();
if (diffBetweenBackgroundAndForegroundTime >= ACTIVITY_TIME_ON_APP) {
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.HIGH);
2023-09-17 16:41:41 +05:30
await setItem(StorageKeys.STATE_SET_TIMESTAMP, dayJs().toString());
return;
}
return;
};
2023-04-18 01:27:28 +05:30
const handleAppStateChange = async (nextAppState: AppStateStatus) => {
// App comes to foreground from background
const now = dayJs().toString();
2023-08-01 17:43:25 +05:30
if (nextAppState === AppStates.ACTIVE) {
await setItem(StorageKeys.APP_FOREGROUND_TIMESTAMP, now);
2023-09-19 12:49:35 +05:30
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.AV_APP_FOREGROUND, { now });
handleGetCaseSyncStatus();
dispatch(getConfigData());
2023-08-30 15:51:58 +05:30
CosmosForegroundService.start(tasks);
2023-04-18 01:27:28 +05:30
}
if (nextAppState === AppStates.BACKGROUND) {
await setItem(StorageKeys.APP_BACKGROUND_TIMESTAMP, now);
userActivityUpdateOnBackground();
2023-09-19 12:49:35 +05:30
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.AV_APP_BACKGROUND, { now });
2023-08-01 17:43:25 +05:30
}
2023-04-18 01:27:28 +05:30
appState.current = nextAppState;
};
2023-06-06 20:05:01 +05:30
// Fetch cases on login initially and set data
useEffect(() => {
(async () => {
if (!referenceId) {
return;
}
await handleGetCaseSyncStatus();
dispatch(getConfigData());
if (!isTeamLead && LAST_SYNC_STATUS !== SyncStatus.FETCH_CASES) {
2023-06-06 20:05:01 +05:30
const updatedDetails: ISyncedCases = await fetchCasesToSync(referenceId);
if (updatedDetails?.cases?.length) {
dispatch(syncCasesByFallback(updatedDetails));
}
}
})();
}, []);
2023-04-18 01:27:28 +05:30
useEffect(() => {
let appStateSubscription: NativeEventSubscription;
2023-09-19 15:09:37 +05:30
appStateSubscription = AppState.addEventListener('change', handleAppStateChange);
CosmosForegroundService.start(tasks);
return () => {
appStateSubscription?.remove();
};
2023-08-08 18:45:08 +05:30
}, []);
2023-04-18 01:27:28 +05:30
Backmerge | Release -> master (#332) * change apm url to portal url TP-25597 (#262) * change apm url to portal url TP-25597 * fix config dev TP-25597 * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-122 bump package * enable sso TP-122 (#261) * TP-24980 | Package version bump and submodule update * enable sso TP-122 * TP-122 update rnUi * fix crypto js failing issue TP-122 * error handling add TP-122 * change error text TP-122 * add disable button timer TP-122 * remove extra dispatch TP-122 * fix UI with design TP-122 * fix icon TP-122 * fix design nit picks and add google icon TP-122 * Revert "TP-25967 | Added Web Alias config + Updating NewAddressContainer with alias (#266)" (#267) This reverts commit c9fefc03095afc8bba2ccde9a8e6f272a9286fbd. * move code back to AuthRouter TP-122 * foreground service notification title and config update TP-122 * fix package json TP-122 * emiBreakupBottomSheet formatting revert TP-122 * remoce disable function TP-122 Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-0 | asdf * TP-25952 | Feedback List icons added (#264) * TP-25952 | Feedback List icons added * TP-25952 | Feedback List icons added * TP-25917 | rn-fetch-blob library update (#263) * TP-25917 | rn-fetch-blob library update * TP-25915 | remove comment * TP-25917 | fix * Temp release (#276) * TP-0 | Version bump/21 april (#273) * version upgrade to 2.1.13 and notification text update TP-0 * reset formatting TP-0 * TP-25963 | Fix Linting in `.tsx` extension files (#275) Co-authored-by: Aman Sethi <aman.sethi@navi.com> * Feature/tp 26024 (#278) * replace with function api call clicks tream TP-26024 * remoce emi schedule api helper TP-26024 * fix filter all event issues and feedback issues with caselist issues TP-26024 * TP-26026 fix and add new events * TP-26026 collection case remove fromatting * TP-26024 remove logs and add notifications loaded * remove log TP-26024 * fix form load events TP-26024 * review comments TP-26024 * 24april sanity events fix TP-26026 * add battery level TP-26026 * add new event for view more address TP-26024 * remove console TP-26024 Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Lint fixes (#280) * fix reading name of screen TP-26024 (#279) * TP-26182 | OTP boxes added with custom component + FCM fix (#272) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26598 | PTP amount fixes (#281) * TP-26598 | PTP amount fixes * TP-26598 | fix * TP-26598 | Fixed PTP amount * TP-0 | Added scroll view on profile section (#284) * TP-0 | Version Bump + submodule udpate (#285) * TP-26182 | Fixes - PTP amount + doNotHandle header handler fixes (#286) * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | OTP input component * TP-26182 | OTP input component fixes * TP-26182 | fix * TP-26182 | Login screen fixes * TP-26182 | Toast message changed * TP-26182 | submodule update * TP-26182 | submodule update * TP-26182 | fixes * TP-26182 | fixes * TP-26182 | Firebase logout fixes * TP-26182 | fix placeholder text * TP-26212 | Hot fix on the feedback screen (#290) * TP-26212 | Hot fix on the feedback screen * TP-26213 | review comment * TP-26760 | Notification templates added (#293) * TP-26915 | last feedback not showing properly fixed (#295) * AV contract Updated - v3 (#298) * Bump yaml from 2.2.1 to 2.2.2 (#274) SB-947 Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2) --- updated-dependencies: - dependency-name: yaml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26957 | AV template update * TP-26957 | QA testing issue fixes * TP-26213 | review comment Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in> * TP-26212 | DataSync - Sms, Contacts, CallLogs (#287) * TP-26212 | DataSync - Sms, Contacts, CallLogs * TP-26212 | Added sorting on sms payload * TP-26212 | Disabling Data Sync flag * fix TP-26978 and TP-26979 (#299) Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26929 | bottom sheet fix (#297) * TP-26926 | feedback overlapping on view more fix (#294) * TP-00 version bump (#300) * fix feedback veiw more margiina nd repayment bottom paddign TP-00 (#301) * TP-27042 | added statusCode on clickstream (#303) * TP-0 | Bump version (#305) * TP-27196 | ENach payment notification templates added (#306) * TP-27310 | Fix: Bulk API request - handle multiple callbacks (#308) * TP-27310 | Fix: Bulk API request - handle multiple callbacks * TP-27310 | Fix * toggle true config TP-26212 (#312) * TP-27112 | unselectable filter radio button (#311) * TP-27341 | visit plan back btn fix (#309) * Collections Calling Bottom Sheet new design (#310) * calling bottom sheet new design TP-27232 * rename name to number TP-27232 * add enum TP-27232 * rename Whatsapp Icon new TP-27232 * fix onpress function TP-27232 * TP-27232 | Review fix * TP-27232 | Review Fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * Emi Schedule List Number fix (#304) * add rank for filtered emi schedule otherwise use index as rank in ALL TP-27159 * add types TP-27159 * remove any TP-27159 * add loader during Customer Image loading(rendering time included) (#307) * add default loader and remove it using timeout for the happy case TP-27226 * remove unnecessary imports,empty space TP-27226 * move to constant TP-27226 * TP-27226 | Review comment fix * TP-27226 | Review comment fix Co-authored-by: Himanshu Kansal <himanshu.kansal@navi.com> * TP-26212 | Fix data sync issue (#314) * add margin vertical TP-27232 (#317) * add token TP-27367 (#313) * fix bottom sheet breakup TP-27159 (#315) * fix extra padding emi schedule (#320) * add pressable chip style TP-27535 * match according to design TP-27535 * fix padding between loan and tabs tp-27535 * TP-27579 | phone number duplicate fix (#321) * emi breakup key name update (#322) * use updated keys TP-27577 * remove unused imports TP-27577 * resolve comments TP-27577 * show full address on toggle TP-27475 (#319) * TP-27313 | Refactor - Pure Component, Memo, Clean Components (#318) * TP-27682 | Block device on disabling device location (#323) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27990 | Notification icon expanded (#326) * Google SSO | Flow Revamp (#325) * TP-27854 | SSO revamp * TP-27854 | Config changes * TP-27854 | Handle signout * TP-27854 | Contract update * TP-27854 | Fix corner cases * TP-27854 | Corner cases fix * TP-27854 | fix * TP-27682 | Geolocation position error enum fix (#327) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-0 | version bump (#328) * TP-0 | version bump * TP-0 | yarn lock * TP-27682 | location retry timer added (#329) * TP-27682 | Block device on disabling device location * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | fix device location blocking * TP-27682 | fixes * TP-27682 | fixes * TP-27682 | enum added for geolocation position error * TP-27682 | version bump removed * TP-27862 | fixes * TP-27682 | fix * TP-27682 | fix * TP-27854 | Fix QA testing comments (#330) * TP-27854 | Fix QA testing comments * TP-27854 | Fix Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> * TP-0 | Version Bump (#331) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Aman Sethi <aman.sethi@navi.com> Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com> Co-authored-by: Prateek Shankar <prateek.shankar@navi.com> Co-authored-by: dependabot[bot] <376+dependabot[bot]@users.noreply.github.cmd.navi-tech.in>
2023-05-10 12:50:20 +05:30
useIsLocationEnabled();
2023-04-18 01:27:28 +05:30
return <>{children}</>;
};
export default TrackingComponent;