Skip to content

Commit

Permalink
ios code added
Browse files Browse the repository at this point in the history
  • Loading branch information
trinisofttechnologies committed Feb 21, 2017
1 parent f700fb4 commit 0bb3876
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ios/CountlyCordova.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,17 @@ - (void)onregistrationid:(CDVInvokedUrlCommand*)command

- (void)start:(CDVInvokedUrlCommand*)command
{
[Countly.sharedInstance resume];

CDVPluginResult* pluginResult = nil;
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"start!"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

- (void)stop:(CDVInvokedUrlCommand*)command
{
[Countly.sharedInstance suspend];

CDVPluginResult* pluginResult = nil;
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"stop!"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
Expand Down

0 comments on commit 0bb3876

Please sign in to comment.