Skip to content

Commit

Permalink
Merge pull request #57325 from Expensify/revert-56169-gedu/android_ba…
Browse files Browse the repository at this point in the history
…ckground_invalidate

[CP Staging] Revert "[NoQA] Unsubscribe from Broadcast receiver task"

(cherry picked from commit f3ee2a2)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Feb 24, 2025
1 parent a1c5ce3 commit edf07aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion ios/NewExpensify/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import "RCTStartupTimer.h"
#import <HardwareShortcuts.h>
#import <BackgroundTasks/BackgroundTasks.h>
#import <expensify_react_native_background_task/RNBackgroundTaskManager.h>
#import <expensify-react-native-background-task/RNBackgroundTaskManager.h>

@interface AppDelegate () <UNUserNotificationCenterDelegate>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ class ReactNativeBackgroundTaskModule internal constructor(context: ReactApplica
return NAME
}

override fun invalidate() {
super.invalidate()
try {
reactApplicationContext.unregisterReceiver(taskReceiver)
Log.d("ReactNativeBackgroundTaskModule", "BroadcastReceiver unregistered")
} catch (e: IllegalArgumentException) {
Log.w("ReactNativeBackgroundTaskModule", "Receiver not registered or already unregistered")
}
}

@ReactMethod
override fun defineTask(taskName: String, taskExecutor: Callback, promise: Promise) {
try {
Expand Down

0 comments on commit edf07aa

Please sign in to comment.