Merge branch 'master' of bitbucket.org:TheBosZ/cordova-plugin-run-in-background
This commit is contained in:
commit
5f50704564
@ -241,7 +241,16 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate";
|
|||||||
*/
|
*/
|
||||||
+ (NSString*) wkProperty
|
+ (NSString*) wkProperty
|
||||||
{
|
{
|
||||||
NSString* str = @"YWx3YXlzUnVuc0F0Rm9yZWdyb3VuZFByaW9yaXR5";
|
NSString * str = @"";
|
||||||
|
if (@available(iOS 12.2, *)) {
|
||||||
|
// do stuff for iOS 12.2 and newer
|
||||||
|
NSLog(@"iOS 12.2+ detected");
|
||||||
|
str = @"YWx3YXlzUnVuc0F0Rm9yZWdyb3VuZFByaW9yaXR5";
|
||||||
|
} else {
|
||||||
|
// do stuff for iOS 12.1 and older
|
||||||
|
NSLog(@"iOS Below 12.2 detected");
|
||||||
|
str = @"X2Fsd2F5c1J1bnNBdEZvcmVncm91bmRQcmlvcml0eQ==";
|
||||||
|
}
|
||||||
NSData* data = [[NSData alloc] initWithBase64EncodedString:str options:0];
|
NSData* data = [[NSData alloc] initWithBase64EncodedString:str options:0];
|
||||||
|
|
||||||
return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||||
|
Loading…
Reference in New Issue
Block a user