Skip to content

Commit

Permalink
fixed ios push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dendidibe committed Sep 7, 2023
1 parent 93e8822 commit 7968b91
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client-reactnative/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ PODS:
- React-Core
- RNCClipboard (1.11.1):
- React-Core
- RNCPushNotificationIOS (1.10.1):
- RNCPushNotificationIOS (1.11.0):
- React-Core
- RNDeviceInfo (10.4.0):
- React-Core
Expand Down Expand Up @@ -1007,7 +1007,7 @@ SPEC CHECKSUMS:
RNCAsyncStorage: 8616bd5a58af409453ea4e1b246521bb76578d60
RNCCheckbox: 38989bbd3d7d536adf24ba26c6b3e6cefe0bea6f
RNCClipboard: 2834e1c4af68697089cdd455ee4a4cdd198fa7dd
RNCPushNotificationIOS: 87b8d16d3ede4532745e05b03c42cff33a36cc45
RNCPushNotificationIOS: 64218f3c776c03d7408284a819b2abfda1834bc8
RNDeviceInfo: 749f2e049dcd79e2e44f134f66b73a06951b5066
RNFastImage: 5c9c9fed9c076e521b3f509fe79e790418a544e8
RNFBAnalytics: ea1421b49a0bf5e5bb7274df4a330713d0e85d2e
Expand Down
6 changes: 4 additions & 2 deletions client-reactnative/ios/ethora/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ - (Class)getModuleClassFromName:(const char *)name
return RCTAppSetupDefaultModuleFromClass(moduleClass);
}



#endif

// Required for the register event.
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
Expand Down Expand Up @@ -150,8 +154,6 @@ -(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNoti
completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);
}

#endif

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
Expand Down
1 change: 1 addition & 0 deletions client-reactnative/ios/ethora/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
</array>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion client-reactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@react-native-community/audio-toolkit": "^2.0.3",
"@react-native-community/checkbox": "^0.5.12",
"@react-native-community/netinfo": "^8.3.0",
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-community/push-notification-ios": "^1.11.0",
"@react-native-firebase/analytics": "^14.9.1",
"@react-native-firebase/app": "^14.9.1",
"@react-native-firebase/auth": "^14.9.1",
Expand Down
8 changes: 4 additions & 4 deletions client-reactnative/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2351,10 +2351,10 @@
resolved "https://registry.npmjs.org/@react-native-community/netinfo/-/netinfo-8.3.1.tgz"
integrity sha512-CYZXW3wZJ8Ac7FQjrDfqITFZ6Ex+dCOOKQv0LvjQUI811otSBATyEZrBVWc+1GpZExbKTlulyE0X3W4v5YN1hQ==

"@react-native-community/push-notification-ios@^1.10.1":
version "1.10.1"
resolved "https://registry.npmjs.org/@react-native-community/push-notification-ios/-/push-notification-ios-1.10.1.tgz"
integrity sha512-k6bZWUKLif4GjenyTD3aQLwA2VT3bNmt22INO/34lexnpmqkPDZF7nreqbckTHG0Zso9wDTe4N/AZJUC/d8iRg==
"@react-native-community/push-notification-ios@^1.11.0":
version "1.11.0"
resolved "https://registry.yarnpkg.com/@react-native-community/push-notification-ios/-/push-notification-ios-1.11.0.tgz#d8ec4acfb52260cb779ed0379b9e197db7841b83"
integrity sha512-nfkUs8P2FeydOCR4r7BNmtGxAxI22YuGP6RmqWt6c8EEMUpqvIhNKWkRSFF3pHjkgJk2tpRb9wQhbezsqTyBvA==
dependencies:
invariant "^2.2.4"

Expand Down

0 comments on commit 7968b91

Please sign in to comment.