I have used appgroup for sending data between a watch app and an iphone app but I am not able send data back from the watchapp to the iphone app. This problem resides in the watch OS.
My code is:
@implementation InterfaceController
@synthesize MedText,MedImage,selImage;
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
// Configure interface objects here.
// Configure interface objects here.
NSUserDefaults *userDefaultVIT=[[NSUserDefaults alloc] initWithSuiteName:@"group.Medapp"];
[userDefaultVIT synchronize];
NSString *str= [userDefaultVIT stringForKey:@"MedOrgWatchVIT"];
MedText.text=str;
NSLog(@"%@",str);
i=0;
MedArr=[[NSArray alloc] init];
MedImageArr=[[NSArray alloc] init];
}