I am using share option in my app using UIActivityViewController
, its working fine in iOS 9.2 and Google+ share option is not working in iOS 9.3
To confirm this, I had downloaded other app which is having share option using UIActivityViewController
and the issue is entire UI of app is getting hanged.
Please guide me how can i handle this scenario? or what exactly the problem is?
Edit 1: code:
NSURL * URL = [[NSURL alloc]initWithString:@"http://domainName/message.php?"]; NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:URL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; [request setHTTPMethod:@"GET"]; NSString *tempEmailId = (NSString *)[[NSUserDefaults standardUserDefaults] objectForKey:CURRENT_USER_EMAIL_ID_UD_KEY]; NSString *tempPassword = (NSString *)[[NSUserDefaults standardUserDefaults] objectForKey:CURRENT_USER_PASSWORD_UD_KEY]; NSString *basicAuthCredentials = [NSString stringWithFormat:@"%@:%@", tempEmailId, tempPassword]; [request setValue:[NSString stringWithFormat:@"Basic %@", AFBase64EncodedStringFromString(basicAuthCredentials)] forHTTPHeaderField: @"Authorization"]; //NSLog(@"request %@\n",request); [[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (data != nil) { NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSArray * activityItems = @[responseString]; dispatch_async(dispatch_get_main_queue(), ^{ activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:activities]; [activityViewController setValue:@"Today's Recommendations" forKey:@"subject"]; activityViewController.excludedActivityTypes = @[UIActivityTypePostToFacebook]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { [self presentViewController:activityViewController animated:YES completion:nil]; } //if iPad else { activityViewController.modalPresentationStyle = UIModalPresentationPopover; // activityViewController.popoverPresentationController.sourceView = sender; activityViewController.popoverPresentationController.sourceView = self.view; if ([sender isKindOfClass:[UIButton class]]) { UIButton *btn = (UIButton *)sender; activityViewController.popoverPresentationController.sourceRect = btn.frame; } [self presentViewController:activityViewController animated:YES completion:nil]; } }); } }] resume];
NOTE:: Mail, Twitter, Evernote are working. Only Google+ hanging the app.
Thanks in advance.
2 Answers
Answers 1
Some Javascript problems occurred in iOS 9.3. Its clearly mentioned in below article. Its not a code problem. its apple webview problem. check attached screenshot and URL for your reference.
Reference Link: iOS 9.3 Problems
Answers 2
Apple iOS 9.3 Has A Serious New Problem
Review this below link,and video.
Safari is not working properly.
http://www.forbes.com/sites/gordonkelly/2016/03/28/apple-ios-9-3-safari-link-problem/#1c58625d797f
0 comments:
Post a Comment