ios11

Is there a way to deliver push notifications in iOS 11 during Guided Access?

吃可爱长大的小学妹 提交于 2020-01-02 01:11:13
问题 Our iPad app relies on silent push notifications to trigger certain events, and is used by many of our users in Guided Access mode. This has worked well until iOS 11 which now seems to block delivery of push notifications while Guided Access is enabled. I've tried a variety of different payloads according to the Apple documentation here (such as content-available, alert, sound, badge etc.), but I can't get anything to be delivered while Guided Access is enabled. This isn't necessarily a bug,

What is NSFaceIDUsageDescription - Face ID Usage Description Info.plist key?

孤者浪人 提交于 2020-01-01 07:28:07
问题 There is a new privacy NSFaceIDUsageDescription Info.plist key in the Xcode 9 GM where a developer supplies the usage description for the permissions alert. Does anyone have a link to docs on it? The plist view in Xcode summarizes it as: Privacy - Face ID Usage Description 回答1: Now further explained in the above mentioned forum (by an Apple employee) https://forums.developer.apple.com/message/265156: Face ID requires adding a usage string with the key NSFaceIDUsageDescription (aka Privacy -

How to add a safe area programmatically

那年仲夏 提交于 2020-01-01 04:58:06
问题 When you open the view, it will look like the image below, i Phone x open view i Phone 8 open view For iphone x, I would like to add a safe area programmatically in the current view. The source to try is as follows. UIView *view = self.view; if (@available(iOS 11.0, *)) { UILayoutGuide * guide = view.safeAreaLayoutGuide; [view.topAnchor constraintEqualToAnchor:guide.topAnchor].active = YES; [view.bottomAnchor constraintEqualToAnchor:guide.bottomAnchor].active = YES; } I suppose to apply this

iOS: Detect if the device is iPhone X family (frameless)

这一生的挚爱 提交于 2020-01-01 04:44:05
问题 In my app there is some logic for frameless devices (iPhoneX, Xs Xs max, Xr). Currently it works base on the model of the devices, so, I detect the model by DeviceKit framework. But I want to extend this logic to future frameless devices. Probably in one year we will have some extra frameless devices. So, how can I detect if device is frameless or not? It should cover all current frameless devices and future one. We can not rely on faceID, safeAreaInset, screen height or size. So, then what?

How can I properly position a cursor on IOS11 Safari in popup forms?

我与影子孤独终老i 提交于 2020-01-01 02:35:09
问题 After we upgraded my iPhone to IOS11, I started seeing a cursor in a random position in my login window. This also happens on Chrome / IOS11. The position of the cursor is marked red on screenshots below. 回答1: Try adding position: fixed to the body of the page. 回答2: Piggybacking off of ybentz's answer. If you use the bootstrap modal, you can add this to your main.js file: var savedScrollPosition; $(document).on('show.bs.modal', '.modal', function() { savedScrollPosition = $(window).scrollTop(

iPhone-X - How to force user to swipe twice home indicator to go home-screen

╄→гoц情女王★ 提交于 2019-12-31 22:20:52
问题 I'm using the code below to hide the home indicator on iPhone X, which is working fine in the emulator. -(BOOL)prefersHomeIndicatorAutoHidden { return YES; } But even though it's hidden, I am still able to swipe up from the bottom and my game goes to the home screen. I have seen a few games where the user has to swipe up once to bring up the home indicator and swipe up again to go to the home screen. So, how can I force the user to swipe the home indicator twice to go to the home screen in

iPhone-X - How to force user to swipe twice home indicator to go home-screen

五迷三道 提交于 2019-12-31 22:20:06
问题 I'm using the code below to hide the home indicator on iPhone X, which is working fine in the emulator. -(BOOL)prefersHomeIndicatorAutoHidden { return YES; } But even though it's hidden, I am still able to swipe up from the bottom and my game goes to the home screen. I have seen a few games where the user has to swipe up once to bring up the home indicator and swipe up again to go to the home screen. So, how can I force the user to swipe the home indicator twice to go to the home screen in

xcode Simulator delays the displaying of a page

╄→гoц情女王★ 提交于 2019-12-31 05:18:12
问题 Upgraded to XCode 9.2 and now my app behaves badly on the ios simulator. It still runs ok when deployed to a physical device. The problem is that pages are taking from 10secs to 1 minute to refresh. eg after a tableview.reloadDate(). I am certain the reloading of the data is occurring immediately, it just that the page isn't being displayed until after a long delay Interestingly if I tap the simulator screen the response is as if I tapped the refreshed (but as yet undisplayed) page. I don't

How can I get Camera Calibration Data on iOS? aka AVCameraCalibrationData

a 夏天 提交于 2019-12-31 04:20:25
问题 As I understand it, AVCameraCalibrationData is only available over AVCaptureDepthDataOutput. Is that correct? AVCaptureDepthDataOutput on the other hand is only accessible with iPhone X front cam or iPhone Plus back cam, or am I mistaken? What I am trying to do is to get the FOV of an AVCaptureVideoDataOutput SampleBuffer. Especially, it should match the selected preset (full HD, Photo etc.). 回答1: You can get AVCameraCalibrationData only from depth data output or photo output. However, if all

Customize iOS11 Document Based App Template

陌路散爱 提交于 2019-12-31 04:17:09
问题 I need to do the following customizations on the provided iOS 11 Document Based App Template: A library with only my App files, as Procreate example App bellow Get rid of the sidebar browser, so I have a fullscreen that shows only my library. https://assets.procreate.art/video/home/mp4/block-10.mp4 I have asked Apple Code Level suport but still haven't got an answear. Can someone please help? Thanks! 来源: https://stackoverflow.com/questions/48287365/customize-ios11-document-based-app-template