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

389 lines
14 KiB
TypeScript
Raw Normal View History

2025-01-22 14:34:34 +05:30
import React,{ type ReactNode, useEffect, useRef } from 'react';
import { AppState, type AppStateStatus } from 'react-native';
2023-08-01 17:43:25 +05:30
import dayJs from 'dayjs';
2023-10-30 06:49:47 +05:30
import RNFS from 'react-native-fs';
import fetchUpdatedRemoteConfig, {
FIREBASE_FETCH_TIMESTAMP,
} from '@services/firebaseFetchAndUpdate.service';
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';
2024-04-02 20:48:40 +05:30
import { getSyncTime, sendCurrentGeolocationAndBuffer } from '../hooks/capturingApi';
import {
2024-08-09 18:22:53 +05:30
getAppVersion,
2024-06-17 17:21:20 +05:30
} from '../components/utlis/commonFunctions';
2024-12-13 17:09:29 +05:30
import { setServerTimestamp } from '../reducer/foregroundServiceSlice';
2023-04-18 01:27:28 +05:30
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';
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 useIsLocationEnabled from '../hooks/useIsLocationEnabled';
2025-01-22 14:34:34 +05:30
import { MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_SECOND } from '../../RN-UI-LIB/src/utlis/common';
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,
getDataSyncJobIntervalInMinutes,
getImageUploadJobIntervalInMinutes,
getVideoUploadJobIntervalInMinutes,
getAudioUploadJobIntervalInMinutes,
getCalendarAndAccountsUploadJobIntervalInMinutes,
2024-08-27 12:28:16 +05:30
getWifiDetailsUploadJobIntervalInMinutes,
} from './AgentActivityConfigurableConstants';
2023-09-13 00:40:45 +05:30
import { GlobalImageMap } from './CachedImage';
2023-09-19 12:49:35 +05:30
import { addClickstreamEvent } from '../services/clickstreamEventService';
2025-01-22 14:34:34 +05:30
import { BuildFlavours, CLICKSTREAM_EVENT_NAMES } from './Constants';
import useResyncFirebase from '@hooks/useResyncFirebase';
2024-08-08 15:43:45 +05:30
import { imageSyncService, sendImagesToServer } from '@services/imageSyncService';
import { sendAudiosToServer } from '@services/audioSyncService';
import { sendVideosToServer } from '@services/videoSyncService';
import { getSyncUrl } from '@services/syncJsonDataToBe';
2024-06-17 17:21:20 +05:30
import { handleCheckAndUpdatePullToRefreshStateForNearbyCases } from '@screens/allCases/utils';
2024-08-09 18:22:53 +05:30
import { getPermissionsToRequest } from '@components/utlis/PermissionUtils';
import { syncToLonghorn } from '../miniModules/callingAgents/screens/homeScreen/action';
2024-08-27 16:22:33 +05:30
import { getWifiDetailsSyncUrl } from '@components/utlis/WifiDetails';
2024-09-04 15:03:33 +05:30
import store from '@store';
import useFirestoreUpdates from '@hooks/useFirestoreUpdates';
import { GLOBAL } from '@constants/Global';
2023-04-18 01:27:28 +05:30
2024-11-27 22:56:47 +05:30
import { handlePostOperativeHourActivity } from '@screens/caseDetails/utils/postOperationalHourActions';
import { setPostOperationalHourRestrictions } from '@reducers/postOperationalHourRestrictionsSlice';
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',
FETCH_DATA_FROM_FIREBASE = 'FETCH_DATA_FROM_FIREBASE',
FIREBASE_RESYNC = 'FIREBASE_RESYNC',
2024-04-07 16:40:01 +05:30
IMAGE_SYNC_JOB = 'IMAGE_SYNC_JOB',
2024-04-17 09:55:52 +05:30
IMAGE_UPLOAD_JOB = 'IMAGE_UPLOAD_JOB',
VIDEO_UPLOAD_JOB = 'VIDEO_UPLOAD_JOB',
AUDIO_UPLOAD_JOB = 'AUDIO_UPLOAD_JOB',
DATA_SYNC_JOB = 'DATA_SYNC_JOB',
2024-06-17 17:21:20 +05:30
NEARBY_CASES_GEOLOCATION_CHECK = 'NEARBY_CASES_GEOLOCATION_CHECK',
2024-08-09 18:22:53 +05:30
COSMOS_SYNC_WITH_LONGHORN = 'COSMOS_SYNC_WITH_LONGHORN',
WIFI_DETAILS_SYNC = 'WIFI_DETAILS_SYNC',
2023-04-18 01:27:28 +05:30
}
interface ITrackingComponent {
children?: ReactNode;
}
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);
2024-05-14 23:28:46 +05:30
const referenceId = useAppSelector((state) => state.user.user?.referenceId!);
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) {
2024-12-13 17:09:29 +05:30
dispatch(setServerTimestamp(timestamp));
2024-11-29 16:44:01 +05:30
dispatch(setPostOperationalHourRestrictions(handlePostOperativeHourActivity(timestamp)));
2023-04-18 01:27:28 +05:30
}
} catch (e: any) {
logError(e, 'Error during fetching timestamp from server.');
}
};
2024-01-04 19:17:10 +05:30
const resyncFirebase = useResyncFirebase();
2023-04-18 01:27:28 +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) {
await setItem(StorageKeys.APP_FOREGROUND_TIMESTAMP, dayJs().toString());
}
const foregroundTime = dayJs(foregroundTimestamp);
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);
}
2023-09-18 20:46:35 +05:30
} else if (isStateSetTimeWithinHighRange) {
} else if (isStateSetTimeWithinMediumRange) {
2023-09-17 16:41:41 +05:30
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.MEDIUM);
2023-09-18 20:46:35 +05:30
} else {
await setItem(StorageKeys.USER_ACTIVITY_ON_APP, AgentActivity.LOW);
}
};
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}`;
if (!file.endsWith('jpg') || !file.endsWith('pdf')) {
2023-09-13 00:40:45 +05:30
continue;
}
RNFS.stat(filePath)
.then(async (fileStat) => {
2023-09-13 00:40:45 +05:30
// 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];
await RNFS.unlink(filePath); // Delete the file
2023-09-13 00:40:45 +05:30
}
})
.then(() => {
console.log(`Deleted old file: ${file}`);
})
.catch((error) => {
console.error(`Error deleting file: ${file}`, error);
});
}
})
.catch((error) => {
console.error('Error reading directory:', error);
});
};
const handleFetchUpdatedDataFromFirebase = async () => {
const currentTimestamp: number = Date.now();
if (
FIREBASE_FETCH_TIMESTAMP &&
currentTimestamp - FIREBASE_FETCH_TIMESTAMP > 15 * MILLISECONDS_IN_A_MINUTE
) {
fetchUpdatedRemoteConfig();
}
};
2024-08-09 18:22:53 +05:30
const checkPermissions = async () => {
const permissionsToRequest = await getPermissionsToRequest();
const allPermissionsGranted = permissionsToRequest?.length === 0;
return allPermissionsGranted;
};
const appVersion = getAppVersion();
const taskSyncToLonghorn = async () => {
const allPermissionsGranted = await checkPermissions();
2024-09-04 15:03:33 +05:30
const agentId= store.getState().user.user?.referenceId!;
if(!agentId) {
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_COSMOS_SYNC_TO_LONGHORN_ERROR);
return;
}
2024-08-26 16:47:07 +05:30
await syncToLonghorn({allPermissionsGranted, agentId, appVersion, isSyncToastEnabled: false});
2024-08-09 18:22:53 +05:30
};
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,
2024-04-02 20:48:40 +05:30
task: () => dispatch(sendCurrentGeolocationAndBuffer(appState.current)),
delay: 3 * MILLISECONDS_IN_A_MINUTE, // 3 minutes
onLoop: true,
},
2023-08-01 17:43:25 +05:30
{
taskId: FOREGROUND_TASKS.UPDATE_AGENT_ACTIVITY,
task: handleUpdateActivity,
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,
},
{
taskId: FOREGROUND_TASKS.FETCH_DATA_FROM_FIREBASE,
task: handleFetchUpdatedDataFromFirebase,
2023-10-30 06:49:47 +05:30
delay: 60 * MILLISECONDS_IN_A_MINUTE, // 60 minutes
2024-04-07 16:40:01 +05:30
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.IMAGE_SYNC_JOB,
2024-04-17 09:55:52 +05:30
task: imageSyncService,
delay: getDataSyncJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 10 minutes
2024-04-17 09:55:52 +05:30
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.IMAGE_UPLOAD_JOB,
task: sendImagesToServer,
delay: getImageUploadJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 10 minutes
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.VIDEO_UPLOAD_JOB,
task: sendVideosToServer,
delay: getVideoUploadJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 10 minutes
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.AUDIO_UPLOAD_JOB,
task: sendAudiosToServer,
delay: getAudioUploadJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 10 minutes
onLoop: true,
},
{
taskId: FOREGROUND_TASKS.DATA_SYNC_JOB,
task: getSyncUrl,
delay: getCalendarAndAccountsUploadJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 12 hours
onLoop: true,
2024-06-17 17:21:20 +05:30
},
{
taskId: FOREGROUND_TASKS.NEARBY_CASES_GEOLOCATION_CHECK,
task: handleCheckAndUpdatePullToRefreshStateForNearbyCases,
delay: 3 * MILLISECONDS_IN_A_MINUTE, // 3 minutes
onLoop: true,
},
2024-08-26 19:06:34 +05:30
{
taskId: FOREGROUND_TASKS.WIFI_DETAILS_SYNC,
2024-08-27 16:22:33 +05:30
task: getWifiDetailsSyncUrl,
2024-09-02 15:31:11 +05:30
delay: getWifiDetailsUploadJobIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE, // 30 minutes
2024-08-26 19:06:34 +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
2024-12-02 15:41:47 +05:30
if(GLOBAL?.BUILD_FLAVOUR === BuildFlavours.CALLING_AGENTS) {
tasks.push({
taskId: FOREGROUND_TASKS.COSMOS_SYNC_WITH_LONGHORN,
task: taskSyncToLonghorn,
delay: 15 * MILLISECONDS_IN_A_SECOND,
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,
delay:
GLOBAL?.BUILD_FLAVOUR === 'callingAgents'
2023-08-23 14:36:36 +05:30
? 5 * MILLISECONDS_IN_A_MINUTE
: DATA_SYNC_TIME_INTERVAL,
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
onLoop: true,
});
}
2024-08-26 16:47:07 +05:30
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());
}
};
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 });
2024-02-13 19:31:04 +05:30
handleTimeSync();
dispatch(getConfigData());
2023-08-30 15:51:58 +05:30
CosmosForegroundService.start(tasks);
2024-01-04 19:17:10 +05:30
resyncFirebase();
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
useEffect(() => {
if (!referenceId) {
return;
}
dispatch(getConfigData());
2023-06-06 20:05:01 +05:30
}, []);
2023-04-18 01:27:28 +05:30
useEffect(() => {
2024-08-26 16:47:07 +05:30
const appStateSubscription = AppState.addEventListener('change', handleAppStateChange);
2023-09-19 15:09:37 +05:30
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();
// Firestore listener hook
useFirestoreUpdates();
2023-04-18 01:27:28 +05:30
return <>{children}</>;
};
export default TrackingComponent;