Skip to content

Commit 11ecbe7

Browse files
committed
ios: fix proximity not working
1 parent de60bee commit 11ecbe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNInCallManager/RNInCallManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ - (void)startProximitySensor
714714
}
715715

716716
NSLog(@"RNInCallManager.startProximitySensor()");
717-
//_currentDevice.isProximityMonitoringEnabled = YES;
717+
_currentDevice.proximityMonitoringEnabled = YES;
718718

719719
// --- in case it didn't deallocate when ViewDidUnload
720720
[self stopObserve:_proximityObserver
@@ -743,7 +743,7 @@ - (void)stopProximitySensor
743743
}
744744

745745
NSLog(@"RNInCallManager.stopProximitySensor()");
746-
//_currentDevice.isProximityMonitoringEnabled = false
746+
_currentDevice.proximityMonitoringEnabled = NO;
747747

748748
// --- remove all no matter what object
749749
[self stopObserve:_proximityObserver

0 commit comments

Comments
 (0)