ipados

Debugging sporadic app crashes with dylib in iOS13/iPadOS 13

空扰寡人 提交于 2019-12-23 09:27:01
问题 After updating to iOS 13.x / iPadOS 13.x we see sporadic crashes with our recent Testflight builds. We've not seen reports from users using our pre-13 released version yet, but it seems not many have updated to 13 yet, so we really don't know. The app is a cordova-app with cordova-ios 5.0.2 using WkWebView. Data protection entitlement is set to full. I have a hard time making sense of the crash, and it seems to be somewhere deep in the iOS-stack? The crash is sporadic and seems only to happen

How do I convert or load a UIImage into a PKDrawing?

孤者浪人 提交于 2019-12-21 04:04:25
问题 I'd like to be able to load a PNG file into a PKCanvasView to be able to draw on and erase parts of it. Is there a way to accomplish this? 回答1: Use setDrawing of PKCanvasView https://developer.apple.com/documentation/pencilkit/pkcanvasview/3229950-drawing See 26:53 duration of Session video 221 回答2: Use an UIImageView and put it behind PKCanvasView, then set the PKCanvasView opaque to false, and color to clear. Draw on it is fine, but erase is not possible. 回答3: First, put your UIImageView

Silent push notification not working in ios 13

旧街凉风 提交于 2019-12-13 11:13:17
问题 Silent notification is not working in iPadOS. But, in 12.4 OS it is working fine. { "aps": { "content-available" : "1" }, "BuildingId":13, "NotificationTypeId":214, "CustomerName":"Test", "Amount":"6778", "CustomerID":32752, "Environment":"TEST", "Title":"" } 回答1: Adding "apns-push-type" header field solved the issue. Please note this is a APNS POST request header field, not a new key in push JSON. 回答2: "apns-push-type" is Required when delivering notifications to devices running iOS 13 and

Distinguish between iPad and mac on iPad with iPadOs

耗尽温柔 提交于 2019-12-06 02:49:25
问题 In iOS 13 apple changed the user-agent that iPad uses. Instead of (for example) Mozilla/5.0( iPad ; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10 it become (for example) Mozilla/5.0 ( Macintosh ; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 My question is how can we distinguish between iPad and mac now? 回答1: The condition I used to detect IpadOS: ua.toLowerCase()

Distinguish between iPad and mac on iPad with iPadOs

六眼飞鱼酱① 提交于 2019-12-05 08:49:56
In iOS 13 apple changed the user-agent that iPad uses. Instead of (for example) Mozilla/5.0( iPad ; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10 it become (for example) Mozilla/5.0 ( Macintosh ; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 My question is how can we distinguish between iPad and mac now? 来源: https://stackoverflow.com/questions/56934826/distinguish-between-ipad-and-mac-on-ipad-with-ipados

iPadOS: Network connected via NEHotspotConfiguration disconnects after a while

你离开我真会死。 提交于 2019-12-03 08:50:11
问题 My app uses NEHotspotConfigurationManager to connect itself to a certain device using a Wi-Fi. The device acts as an WPA2 access point. In older iOS versions (iOS 12 and lower) everything worked fine, but in iPadOS/iOS 13 the device is being disconnected after a while every single time. How to keep a connection on without storing NEHotspotConfiguration permanently? I suspect that it has something to do with a new feature - Multiple Windows (which is not supported by my app). The reason is

iPadOS: Network connected via NEHotspotConfiguration disconnects after a while

偶尔善良 提交于 2019-12-02 22:56:08
My app uses NEHotspotConfigurationManager to connect itself to a certain device using a Wi-Fi. The device acts as an WPA2 access point. In older iOS versions (iOS 12 and lower) everything worked fine, but in iPadOS/iOS 13 the device is being disconnected after a while every single time. How to keep a connection on without storing NEHotspotConfiguration permanently? I suspect that it has something to do with a new feature - Multiple Windows (which is not supported by my app). The reason is that in my NEHotspotConfiguration I set joinOnce flag to true (since the device's network should never be

How can I check whether dark mode is enabled in iOS/iPadOS?

半世苍凉 提交于 2019-11-29 11:26:32
问题 Starting from iOS/iPadOS 13, a dark user interface style is available, similar to the dark mode introduced in macOS Mojave. How can I check whether the user has enabled the system-wide dark mode? 回答1: You should check the userInterfaceStyle variable of UITraitCollection , same as on tvOS and macOS. switch traitCollection.userInterfaceStyle { case .light: //light mode case .dark: //dark mode case .unspecified: //the user interface style is not specified } You should use the