diff --git a/README.md b/README.md index 2b111e10..32f6041c 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ To get started, sign up [here](https://clevertap.com/live-product-demo/). ## ✅ Supported Versions -- [CleverTap Android SDK version 5.1.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev5.1.0_ptv1.1.0) -- [CleverTap iOS SDK version 5.1.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.1.2) +- [CleverTap Android SDK version 6.0.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.0.0_ptv1.2.2) +- [CleverTap iOS SDK version 6.0.0](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.0.0) ## 🚀 Installation and Quick Start diff --git a/plugin.xml b/plugin.xml index f40b81f6..f69c8a4e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -46,7 +46,7 @@ - + diff --git a/src/ios/CleverTapPlugin.m b/src/ios/CleverTapPlugin.m index da7fe61a..b980d218 100644 --- a/src/ios/CleverTapPlugin.m +++ b/src/ios/CleverTapPlugin.m @@ -1650,6 +1650,23 @@ - (void)setLocale:(CDVInvokedUrlCommand *)command { } } +#pragma mark - InApp Controls + +- (void)clearInAppResources:(CDVInvokedUrlCommand *)command { + BOOL expiredOnly = [[command argumentAtIndex:0] boolValue]; + [clevertap clearInAppResources:expiredOnly]; +} + +- (void)fetchInApps:(CDVInvokedUrlCommand *)command { + + [self.commandDelegate runInBackground:^{ + [clevertap fetchInApps:^(BOOL success){ + CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:(BOOL)success]; + [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; + }]; + }]; +} + #pragma mark Helper methods - (CTVar *)createVarForName:(NSString *)name andValue:(id)value {