diff --git a/app/src/components/HomeFooterView.tsx b/app/src/components/HomeFooterView.tsx index 651345c57..87fb2e9b2 100644 --- a/app/src/components/HomeFooterView.tsx +++ b/app/src/components/HomeFooterView.tsx @@ -1,3 +1,4 @@ +import { useAgent } from '@aries-framework/react-hooks' import { Button, ButtonType, testIdWithKey, useTheme } from 'aries-bifold' import React, { useState } from 'react' import { useTranslation } from 'react-i18next' @@ -5,8 +6,11 @@ import { StyleSheet, View } from 'react-native' import Icon from 'react-native-vector-icons/MaterialCommunityIcons' import { surveyMonkeyUrl, surveyMonkeyExitUrl } from '../constants' +import { setDeviceInfo } from '../helpers/PushNotificationsHelper' import WebDisplay from '../screens/WebDisplay' +import PushNotifications from './PushNotifications' + interface HomeFooterViewProps { children?: any } @@ -15,6 +19,7 @@ const HomeFooterView: React.FC = ({ children }) => { const { ColorPallet } = useTheme() const { t } = useTranslation() const [surveyVisible, setSurveyVisible] = useState(false) + const { agent } = useAgent() const styles = StyleSheet.create({ feedbackContainer: { @@ -30,6 +35,9 @@ const HomeFooterView: React.FC = ({ children }) => { const toggleSurveyVisibility = () => setSurveyVisible(!surveyVisible) + // Attempt to set device info for push notifications + setDeviceInfo({ agent }) + return (