|
@@ -245,19 +245,6 @@ RCT_EXPORT_MODULE();
|
245
|
245
|
}
|
246
|
246
|
}
|
247
|
247
|
|
248
|
|
-+ (bool)isBackgroundModeEnabled:(NSString * _Nonnull)mode {
|
249
|
|
- NSArray *modes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIBackgroundModes"];
|
250
|
|
- bool isEnabled = [modes isKindOfClass:[NSArray class]] && [modes containsObject:mode];
|
251
|
|
-
|
252
|
|
-#if RCT_DEV
|
253
|
|
- if (!isEnabled) {
|
254
|
|
- RCTLogWarn(@"Missing \"%@\" in \"UIBackgroundModes\" forces check / request result to \"unavailable\" status", mode);
|
255
|
|
- }
|
256
|
|
-#endif
|
257
|
|
-
|
258
|
|
- return isEnabled;
|
259
|
|
-}
|
260
|
|
-
|
261
|
248
|
RCT_REMAP_METHOD(openSettings,
|
262
|
249
|
openSettingsWithResolver:(RCTPromiseResolveBlock)resolve
|
263
|
250
|
rejecter:(RCTPromiseRejectBlock)reject) {
|