1234567891011121314151617181920212223242526272829 |
-
-
-
-
-
-
-
-
- #import "RNPBackgroundRefresh.h"
-
- @implementation RNPBackgroundRefresh
-
- +(NSString *)getStatus
- {
- int status = [[UIApplication sharedApplication] backgroundRefreshStatus];
- switch (status) {
- case UIBackgroundRefreshStatusAvailable:
- return RNPStatusAuthorized;
- case UIBackgroundRefreshStatusDenied:
- return RNPStatusDenied;
- case UIBackgroundRefreshStatusRestricted:
- return RNPStatusRestricted;
- default:
- return RNPStatusUndetermined;
- }
-
- }
- @end
|