Google+ in iOS 9.3 suspends

I use the share parameter in my application using the UIActivityViewController ; it works fine in iOS 9.2, and the Google+ sharing option doesn't work in iOS 9.3

To confirm this, I downloaded another application that has a share option using the UIActivityViewController , and the problem is that the entire user interface of the application is hanging.

How can I solve this problem?

Change 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 Recommendations" forKey:@"subject"]; activityViewController.excludedActivityTypes = @[UIActivityTypePostToFacebook]; [activityViewController setCompletionWithItemsHandler: ^(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError) { dispatch_async(dispatch_get_main_queue(), ^{ NSLog(@"activityType: %@, returnedItems: %@, activityError: %@", activityType, returnedItems, activityError.userInfo); if (completed) { NSLog(@"The Activity: %@ was completed", activityType); } else { NSLog(@"The Activity: %@ was NOT completed", activityType); } }); }]; 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 and Evernote work. Only Google+ is hanging.

Edit 2:. I don’t know for sure, but I think it is not associated with a public URL. If this is related, please let me know HOW?

+7
ios google-plus uiactivityviewcontroller
source share
1 answer

Some JavaScript issues have occurred in iOS 9.3. It is clearly stated in the next article. This is not a code issue, it is an Apple webview issue. Check the attached quote and URL for reference.

iOS 9.3 freezes when clicking an email link

One of the most common problems ... affects links in emails. When using iOS 9.3, some people found that by clicking the link in the email mail application, the iPhone or iPad will stop responding.

The workaround is to turn off JavaScript in Safari by choosing Settings> Safari> Advanced, then turn off the switch next to JavaScript.

This solution is not ideal, and, fortunately, Apple has released a new update to iOS 9.3.1, which, according to the release notes, "fixes an issue that prevents apps from responding after clicking on links in Safari and other apps.

To download and install the update, open "Settings" and select "General", then "Software Update". Now you can enable JavaScript and you can click links in emails and other messages without freezing iOS 9.3.

Link Link: iOS 9.3 Problems

+3
source share

All Articles