UIWebView page that was opened by showing FBSDKAppInviteDialog doesn't load list of friends as usual, but stops either at an empty page state or at the infinite loading indicator state.
let text = "invite text"
content.appLinkURL = URL(string: "valid_url_to_fb_me")!
content.promotionText = text
content.promotionCode = "\(code)"
let dialog = FBSDKAppInviteDialog()
dialog.fromViewController = self.viewController
dialog.content = content
dialog.delegate = self
dialog.show()
And FBSDKAppInviteDialogDelegate methods were not called.
This behaviour was not reproducible a week ago.
iOS Simulator 10.2, same behaviour on the iOS 10.2.1 on real device the iPhone 5S and iPad mini 9.2.
Facebook SDK - 4.15.1
Thanks in advance for any help or sugestions.
the bug is on Facebook's side:
https://developers.facebook.com/bugs/721787828000962/
The Facebook bug mentioned by BoygeniusDexter (https://developers.facebook.com/bugs/721787828000962/) is actually on Android not iOS.
Are you using the deprecated UIActionSheet to open FBSDKAppInviteDialog? If so removing UIActionSheet is your solution: https://developers.facebook.com/bugs/172327909915305/
Related
This is not work on my ios cordova app, I have tried many ways, but the scrollbar still appear.
::-webkit-scrollbar { display: none }
This article tell me to add 2 lines to CDVUIWebViewEngine.m file but I dont know where to paste these lines.
self.webView.scrollView.showsVerticalScrollIndicator = NO;
self.webView.scrollView.showsHorizontalScrollIndicator = NO;
I need a solution to hide scollbar entire my Cordova Ios App, please help me, thanks.
If you are using plugin cordova-plugin-ionic-webview, which is transfer your APP from using UIWebView to WKWebView. After build your APP.
find file platforms/ios/your_APP_name/Plugins/cordova-plugin-ionic-webview/CDVWKWebViewEngine.m;
find lines
wkWebView.configuration.preferences.minimumFontSize = [settings cordovaFloatSettingForKey:#"MinimumFontSize" defaultValue:0.0];
wkWebView.allowsLinkPreview = [settings cordovaBoolSettingForKey:#"AllowLinkPreview" defaultValue:NO];
wkWebView.scrollView.scrollEnabled = [settings cordovaBoolSettingForKey:#"ScrollEnabled" defaultValue:NO];
wkWebView.allowsBackForwardNavigationGestures = [settings cordovaBoolSettingForKey:#"AllowBackForwardNavigationGestures" defaultValue:NO];
insert the two lines under them.
wkWebView.scrollView.showsVerticalScrollIndicator = NO;
wkWebView.scrollView.showsHorizontalScrollIndicator = NO;
It works on iOS 13.
I created IOS app for live streaming with use of AVPlayer. I add the airplay routes button with help of MPVolumeView.
After update of IOS 11, airplay routes button not coming up properly on screen.
Sometime it show on screen sometimes not showing on screen
Anybody help me with it, is it IOS 11 issues or their some change need to MPVolumeView done in my code.
I am using AVPlayerViewController, in which i added MPVolumeView as subview.
self.airButton.frame = CGRect(x:0,y:0,width:45,height:45)
self.airButton.backgroundColor = UIColor.green
let volumeView = MPVolumeView(frame : self.airButton.frame )
volumeView.showsVolumeSlider = false
volumeView.showsRouteButton = true
volumeView.backgroundColor = UIColor.red
self.airButton.addSubview(volumeView)
self.airButton.translatesAutoresizingMaskIntoConstraints = false
self.controlView.addSubview(airButton)
Thanks
I have a problem with detecting UIAlertView which appear when I wont to get photo from photo gallery in UI XCTest. My code:
let app = XCUIApplication()
let alertView = app.alerts["\u{201c}MyAppName\u{201d} Would Like to Access Your Photos"]
Alert view is already on screen but in alertView I got nil. Anybody knows how to resolve this problem?
Maybe some charters in alertView Value is miss.
use index instead String Value.
let alertView = app.alerts.elementBoundByIndex(0)
and example for tap alertButton
app.alerts.elementBoundByIndex(0).buttons["OK"].tap()
it works for me
I run OpenStreetMap in my app:
NSString *template = #"http://tile.openstreetmap.org/{z}/{x}/{y}.png";
MKTileOverlay *overlay = [[MKTileOverlay alloc] initWithURLTemplate:template];
overlay.canReplaceMapContent = YES;
[self.mapView addOverlay:overlay level:MKOverlayLevelAboveLabels];
It works perfect in my iPhone with iOS 8.3, and customer before update iOS til 9.0 didn't say anything. But now, customer says hi has only grid instead map. Hi has iOS 9 now.
What changed? What should i add in my code?
HTTP, by default, is not supported in iOS 9, so your initWithURLTemplate call is failing. When the MKTileOverlay goes online to fetch a tile, it can't do it. Thus, no map appears.
I have a custom UIView in my application which was working correctly in iOS 7.1 but after upgrading the device to iOS 8, i start having issues with Showing it.
1) Orientation issues
2) On keyboard show issues
Screenshots from iOS 7
How Custom UIView appear on iOS 8
Here's the code sample:
1) Calling the custom UIView
CustomIOS7AlertView *alertViewiOS7 = [[CustomIOS7AlertView alloc] init:NULL];
[alertViewiOS7 setContainerView:[self Calculator_Create]];
[alertViewiOS7 setButtonTitles:[NSMutableArray arrayWithObjects:languageSelectedStringForKey(dataObj.languageBundle, #"Close"), languageSelectedStringForKey(dataObj.languageBundle, #"Add"), nil]];
[alertViewiOS7 setUseMotionEffects:true];
[alertViewiOS7 show];
2) CustomIOS7AlertVIew class Code
https://drive.google.com/folderview?id=0B-EraWQtN1hNfmtoUXZHLXNPREdrU1QwVkdwTDNCWDhHYXk5X3hNSjdOQ3FZM3k4T0hyZUk&usp=sharing
Use UIAlertController because UIAlertView has been deprecated in iOS 8.