Skip to content

Commit

Permalink
Android notification permission issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kushdeep Singh authored and Kushdeep Singh committed Oct 7, 2024
1 parent c2f74cd commit c52c79a
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 59 deletions.
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.audio.output"/>
<uses-feature android:name="android.hardware.microphone"/>
<uses-permission android:name="android.permission.POST_NOTIFICATION"/>
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
Expand Down
97 changes: 54 additions & 43 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ PODS:
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreExtension (10.15.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.16.0):
- FirebaseCoreInternal (10.29.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseInstallations (10.16.0):
- FirebaseInstallations (10.29.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
Expand All @@ -88,43 +88,54 @@ PODS:
- RCT-Folly (= 2021.07.22.00)
- React-Core
- glog (0.3.5)
- GoogleDataTransport (9.2.5):
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities (7.11.5):
- GoogleUtilities/AppDelegateSwizzler (= 7.11.5)
- GoogleUtilities/Environment (= 7.11.5)
- GoogleUtilities/ISASwizzler (= 7.11.5)
- GoogleUtilities/Logger (= 7.11.5)
- GoogleUtilities/MethodSwizzler (= 7.11.5)
- GoogleUtilities/Network (= 7.11.5)
- "GoogleUtilities/NSData+zlib (= 7.11.5)"
- GoogleUtilities/Reachability (= 7.11.5)
- GoogleUtilities/SwizzlerTestHelpers (= 7.11.5)
- GoogleUtilities/UserDefaults (= 7.11.5)
- GoogleUtilities/AppDelegateSwizzler (7.11.5):
- GoogleUtilities (7.13.3):
- GoogleUtilities/AppDelegateSwizzler (= 7.13.3)
- GoogleUtilities/Environment (= 7.13.3)
- GoogleUtilities/ISASwizzler (= 7.13.3)
- GoogleUtilities/Logger (= 7.13.3)
- GoogleUtilities/MethodSwizzler (= 7.13.3)
- GoogleUtilities/Network (= 7.13.3)
- "GoogleUtilities/NSData+zlib (= 7.13.3)"
- GoogleUtilities/Privacy (= 7.13.3)
- GoogleUtilities/Reachability (= 7.13.3)
- GoogleUtilities/SwizzlerTestHelpers (= 7.13.3)
- GoogleUtilities/UserDefaults (= 7.13.3)
- GoogleUtilities/AppDelegateSwizzler (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.5):
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.3):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/ISASwizzler (7.11.5)
- GoogleUtilities/Logger (7.11.5):
- GoogleUtilities/ISASwizzler (7.13.3):
- GoogleUtilities/Privacy
- GoogleUtilities/Logger (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.11.5):
- GoogleUtilities/Privacy
- GoogleUtilities/MethodSwizzler (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.11.5):
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.3):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.5)"
- GoogleUtilities/Reachability (7.11.5):
- "GoogleUtilities/NSData+zlib (7.13.3)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.3)
- GoogleUtilities/Reachability (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/SwizzlerTestHelpers (7.11.5):
- GoogleUtilities/Privacy
- GoogleUtilities/SwizzlerTestHelpers (7.13.3):
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/UserDefaults (7.11.5):
- GoogleUtilities/UserDefaults (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- hermes-engine (0.71.14):
- hermes-engine/Pre-built (= 0.71.14)
- hermes-engine/Pre-built (0.71.14)
Expand All @@ -146,14 +157,14 @@ PODS:
- lottie-react-native (6.7.2):
- lottie-ios (= 4.4.1)
- React-Core
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- PromisesObjC (2.3.1)
- PromisesSwift (2.3.1):
- PromisesObjC (= 2.3.1)
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- PromisesObjC (2.4.0)
- PromisesSwift (2.4.0):
- PromisesObjC (= 2.4.0)
- RCT-Folly (2021.07.22.00):
- boost
- DoubleConversion
Expand Down Expand Up @@ -590,7 +601,7 @@ PODS:
- React
- Toast (4.0.0)
- Yoga (1.14.0)
- YoutubePlayer-in-WKWebView (0.3.8)
- YoutubePlayer-in-WKWebView (0.3.11)
- ZXingObjC/Core (3.6.9)
- ZXingObjC/OneD (3.6.9):
- ZXingObjC/Core
Expand Down Expand Up @@ -925,24 +936,24 @@ SPEC CHECKSUMS:
Firebase: 66043bd4579e5b73811f96829c694c7af8d67435
FirebaseCore: 2cec518b43635f96afe7ac3a9c513e47558abd2e
FirebaseCoreExtension: d3f1ea3725fb41f56e8fbfb29eeaff54e7ffb8f6
FirebaseCoreInternal: 26233f705cc4531236818a07ac84d20c333e505a
FirebaseInstallations: b822f91a61f7d1ba763e5ccc9d4f2e6f2ed3b3ee
FirebaseCoreInternal: df84dd300b561c27d5571684f389bf60b0a5c934
FirebaseInstallations: 913cf60d0400ebd5d6b63a28b290372ab44590dd
FirebaseMessaging: 0c0ae1eb722ef0c07f7801e5ded8dccd1357d6d4
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
Giphy: dad025aa0c82e4c057e1989cde959034829dfca7
giphy-react-native-sdk: f4fbdae92e3e8f8ef26b1af694141cb29d0e033a
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
hermes-engine: d7cc127932c89c53374452d6f93473f1970d8e88
JitsiWebRTC: 80f62908fcf2a1160e0d14b584323fb6e6be630b
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
lottie-ios: e047b1d2e6239b787cc5e9755b988869cf190494
lottie-react-native: 17547b2f3c7034e2ae8672833fdb63262164d18a
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: e9df143e880d0e879e7a498dc06923d728809c79
RCTTypeSafety: c2d89c8308829c12c038ec1f431191eaa0d8c15c
Expand All @@ -960,7 +971,7 @@ SPEC CHECKSUMS:
React-logger: 655ff5db8bd922acfbe76a4983ffab048916343e
react-native-config: 5330c8258265c1e5fdb8c009d2cabd6badd96727
react-native-encrypted-storage: db300a3f2f0aba1e818417c1c0a6be549038deb7
react-native-fast-openpgp: 66d3a1cce74d205bcb7bad5ed6f63b91ce151ee7
react-native-fast-openpgp: f4158eb50244457e12f9d2aec06bf7cfcba314ef
react-native-get-random-values: dee677497c6a740b71e5612e8dbd83e7539ed5bb
react-native-hash: 4664516df1834e1293b30e711c63f61f7f801b6a
react-native-hole-view: 6935448993bac79f2b5a4ad7e9741094cf810679
Expand Down Expand Up @@ -1008,7 +1019,7 @@ SPEC CHECKSUMS:
TcpSockets: 14306fb79f9750ea7d2ddd02d8bed182abb01797
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9
YoutubePlayer-in-WKWebView: 4fca3b4f6f09940077bfbae7bddb771f2b43aacd
YoutubePlayer-in-WKWebView: 2c3aa1d5ad8dded9f95ef12033af5dd8e55864b7
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5

PODFILE CHECKSUM: a49113093312d009c64844dbf4562ff7276ebb79
Expand Down
16 changes: 8 additions & 8 deletions ios/epns.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
1E90BBEA28BD672C007E6105 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E90BBE328BD672C007E6105 /* main.m */; };
1E90BBEC28BD672C007E6105 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE628BD672C007E6105 /* LaunchScreen.storyboard */; };
1E90BBED28BD672C007E6105 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE728BD672C007E6105 /* Images.xcassets */; };
437777D62CAC283100D68488 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 437777D52CAC283100D68488 /* GoogleService-Info.plist */; };
437777D82CAC284400D68488 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 437777D72CAC284400D68488 /* GoogleService-Info.plist */; };
7AFE86A24D9309551A6A1F50 /* Pods_PushCommonPods_push_staging.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E73BB1D215C2E282DE121AF8 /* Pods_PushCommonPods_push_staging.framework */; };
9C0E5039ACCA8C6BD31E0A88 /* Pods_PushCommonPods_epnsTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1913101118E6F82F12B42CF /* Pods_PushCommonPods_epnsTests.framework */; };
AF1DF276A9B508570EE898AD /* Pods_PushCommonPods_push_prod.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFA620DFE9E1EB4637021D24 /* Pods_PushCommonPods_push_prod.framework */; };
Expand All @@ -21,12 +23,10 @@
E74C05AF29C06A1400C20AC1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E90BBE328BD672C007E6105 /* main.m */; };
E74C05B429C06A1400C20AC1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE628BD672C007E6105 /* LaunchScreen.storyboard */; };
E74C05B529C06A1400C20AC1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE728BD672C007E6105 /* Images.xcassets */; };
E74C05B629C06A1400C20AC1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1E4AA6AD28BD4E4000E27A82 /* GoogleService-Info.plist */; };
E74C05C529C06A2800C20AC1 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1E90BBE228BD672C007E6105 /* AppDelegate.mm */; };
E74C05C629C06A2800C20AC1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E90BBE328BD672C007E6105 /* main.m */; };
E74C05CB29C06A2800C20AC1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE628BD672C007E6105 /* LaunchScreen.storyboard */; };
E74C05CC29C06A2800C20AC1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1E90BBE728BD672C007E6105 /* Images.xcassets */; };
E7A4DAEC29C17BF300B09BEE /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = E7A4DAEB29C17BF300B09BEE /* GoogleService-Info.plist */; };
E8351FBD0375EAE7B50C572B /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D567BAEB1DF112E72F4E912 /* ExpoModulesProvider.swift */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -80,7 +80,6 @@
13B07F961A680F5B00A75B9A /* Push (EPNS).app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Push (EPNS).app"; sourceTree = BUILT_PRODUCTS_DIR; };
1B9620AE046F4542DE792141 /* Pods-PushCommonPods-epnsTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PushCommonPods-epnsTests.debug.xcconfig"; path = "Target Support Files/Pods-PushCommonPods-epnsTests/Pods-PushCommonPods-epnsTests.debug.xcconfig"; sourceTree = "<group>"; };
1D567BAEB1DF112E72F4E912 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-PushCommonPods-epnsTests/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
1E4AA6AD28BD4E4000E27A82 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
1E90BBE128BD672B007E6105 /* epns-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "epns-Bridging-Header.h"; sourceTree = "<group>"; };
1E90BBE228BD672C007E6105 /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = epns/AppDelegate.mm; sourceTree = "<group>"; };
1E90BBE328BD672C007E6105 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = epns/main.m; sourceTree = "<group>"; };
Expand All @@ -91,6 +90,8 @@
1E90BBE828BD672C007E6105 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = epns/AppDelegate.h; sourceTree = "<group>"; };
294DC712B52960D1DF260F3B /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-PushCommonPods-push.prod/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
3E26DD02CFE7843ED02D45C2 /* Pods-PushCommonPods-push.staging.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PushCommonPods-push.staging.debug.xcconfig"; path = "Target Support Files/Pods-PushCommonPods-push.staging/Pods-PushCommonPods-push.staging.debug.xcconfig"; sourceTree = "<group>"; };
437777D52CAC283100D68488 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
437777D72CAC284400D68488 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
55ED27842BC4230E004B5E17 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };
55ED27862BC4230E004B5E17 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
55ED27932BC4242F004B5E17 /* NotificationService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NotificationService.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -119,7 +120,6 @@
E74C05C029C06A1500C20AC1 /* push.staging-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "push.staging-Info.plist"; path = "/Users/mdteach/Desktop/CDX/staging_mobile/ios/push.staging-Info.plist"; sourceTree = "<absolute>"; };
E74C05D629C06A2800C20AC1 /* push.prod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = push.prod.app; sourceTree = BUILT_PRODUCTS_DIR; };
E74C05D729C06A2900C20AC1 /* push.prod-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "push.prod-Info.plist"; path = "/Users/mdteach/Desktop/CDX/staging_mobile/ios/push.prod-Info.plist"; sourceTree = "<absolute>"; };
E7A4DAEB29C17BF300B09BEE /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
E947697C83E13254FF4AE713 /* Pods-PushCommonPods-push.staging.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PushCommonPods-push.staging.release.xcconfig"; path = "Target Support Files/Pods-PushCommonPods-push.staging/Pods-PushCommonPods-push.staging.release.xcconfig"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -355,15 +355,15 @@
E7A4DAE129C1796B00B09BEE /* Prod */ = {
isa = PBXGroup;
children = (
E7A4DAEB29C17BF300B09BEE /* GoogleService-Info.plist */,
437777D52CAC283100D68488 /* GoogleService-Info.plist */,
);
path = Prod;
sourceTree = "<group>";
};
E7A4DAE729C17B0000B09BEE /* Staging */ = {
isa = PBXGroup;
children = (
1E4AA6AD28BD4E4000E27A82 /* GoogleService-Info.plist */,
437777D72CAC284400D68488 /* GoogleService-Info.plist */,
);
path = Staging;
sourceTree = "<group>";
Expand Down Expand Up @@ -528,7 +528,7 @@
files = (
E74C05B429C06A1400C20AC1 /* LaunchScreen.storyboard in Resources */,
E74C05B529C06A1400C20AC1 /* Images.xcassets in Resources */,
E74C05B629C06A1400C20AC1 /* GoogleService-Info.plist in Resources */,
437777D82CAC284400D68488 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -538,7 +538,7 @@
files = (
E74C05CB29C06A2800C20AC1 /* LaunchScreen.storyboard in Resources */,
E74C05CC29C06A2800C20AC1 /* Images.xcassets in Resources */,
E7A4DAEC29C17BF300B09BEE /* GoogleService-Info.plist in Resources */,
437777D62CAC283100D68488 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
32 changes: 24 additions & 8 deletions src/navigation/screens/PushNotifyScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import messaging from '@react-native-firebase/messaging';
import {useNavigation} from '@react-navigation/native';
import React from 'react';
import {Image, StyleSheet, View} from 'react-native';
import {PermissionsAndroid, Platform} from 'react-native';
import GLOBALS from 'src/Globals';
import {ToasterOptions} from 'src/components/indicators/Toaster';
import OnboardingWrapper from 'src/components/misc/OnboardingWrapper';
Expand All @@ -13,15 +14,22 @@ const PushNotifyScreen = () => {
const {toastRef} = useToaster();

const enableNotifications = async () => {
const settings = await messaging().requestPermission();
if (settings == messaging.AuthorizationStatus.AUTHORIZED) {
loadNextScreen();
} else {
toastRef.current?.showToast(
'Notifications are disabled. \nYou can enable them in your device settings.',
'',
ToasterOptions.TYPE.GRADIENT_PRIMARY,
if (Platform.OS === 'android') {
const res = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS,
);
if (res == PermissionsAndroid.RESULTS.GRANTED) {
loadNextScreen();
} else {
showToast();
}
} else {
const settings = await messaging().requestPermission();
if (settings == messaging.AuthorizationStatus.AUTHORIZED) {
loadNextScreen();
} else {
showToast();
}
}
};

Expand All @@ -32,6 +40,14 @@ const PushNotifyScreen = () => {
navigation.navigate(GLOBALS.SCREENS.GETSTARTED);
};

const showToast = () => {
toastRef.current?.showToast(
'Notifications are disabled. \nYou can enable them in your device settings.',
'',
ToasterOptions.TYPE.GRADIENT_PRIMARY,
);
};

return (
<OnboardingWrapper
title="Receive notifications for your preferred wallet activity."
Expand Down

0 comments on commit c52c79a

Please sign in to comment.