ios10

How can I add media attachments to my push notifications in an iOS 10 app?

允我心安 提交于 2020-01-02 01:37:27
问题 There are multiple examples how you should set up your project to add rich notifications which use 'media attachments' technology to show images. I've read most of them but something I missed, because my project does not display any rich notifications with this payload (tested with APNS-Tool and Boodle): { "aps":{ "alert":{ "title": "Rich test", "body": "Dancing Banana" }, "mutable-content": 1 } } The notification is visible, but on 3D Touch, there are no additional infos displayed (like the

iOS 10 UITabBar more items visible after setting title

帅比萌擦擦* 提交于 2020-01-02 01:04:11
问题 I have a tab bar in my app, and the tab bar items are subclasses of UITabBarItem. After fetching an update from the server, these tab bar items set their title from code using this line: [self setTitle:@"SomeText"]; Once this line runs, the tab bar items that were previously hidden (behind the more tab) become visible in the main tabs area, and stack on top of the other tabs. See the screenshot below. This only happens in iOS 10 (beta). Is this a bug in my code or an issue in iOS 10? I have

iOS 10 don't call Notification Service Extension

邮差的信 提交于 2020-01-02 00:52:07
问题 I tried to implement the new Notification Service Extension, but I have a problem. In my NotificationService.swift file I have this code: class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent: UNMutableNotificationContent? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler

Metal SCNProgram - can't render a SpriteKit scene that has video content

不问归期 提交于 2020-01-01 12:08:10
问题 I'm (desperately) trying to use a video as texture in a SCNScene with some fancy shader modifiers. I'd like to use a SCNProgram for that part. I've just taken the one from here: #include <metal_stdlib> using namespace metal; #include <SceneKit/scn_metal> struct MyNodeBuffer { float4x4 modelTransform; float4x4 modelViewTransform; float4x4 normalTransform; float4x4 modelViewProjectionTransform; }; typedef struct { float3 position [[ attribute(SCNVertexSemanticPosition) ]]; float2 texCoords [[

Autoresizing under iOS 10 doesn't work

徘徊边缘 提交于 2020-01-01 06:15:18
问题 I had a app that works without AutoLayout and Constraints. I only set the autoresizing in the size inspector. Under iOS 9 and earlier works all fine. Under iOS 10 the autoresizing doesn't work and set the size out of the screen. Look at the following picture : Under iOS 10 in the simulator The same is happened on a iPhone 5 and iPhone 6 Plus. What can I do, that the autoresizing works fine. Edit 1: Another workaround is to set the storyboard to Xcode 7.x version. You can do this in the File

Code signing certificate error in Appium XCUITest

孤街浪徒 提交于 2020-01-01 03:42:22
问题 I am trying UI automation of IOS 10 using Appium XCUITest. On running script, it tries to build WebDriverAgent and fails at this point. I have added the provisioning profile and added the account in Xcode through the UI but not sure from where does XCUITest take the profiles while running or if we need to provide some information in desired capabilities. info Xcode Testing failed: info Xcode Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the

iOS 10 MapKit previous layer zoom issue

ε祈祈猫儿з 提交于 2019-12-31 13:55:14
问题 I am working in a map application which renders a polyline over a map. I am having an issue when zooming, it keeps the previous polyline on the tile. I have tried to force redrawing: [self.mapView reloadInputViews]; [self.mapView.layer setNeedsDisplay]; [self.mapView setNeedsDisplay]; Also I tried to slow the zoom speed, but the issue is still in there: [MKMapView animateWithDuration:2 delay:0 usingSpringWithDamping:0.6 initialSpringVelocity:10 options:UIViewAnimationOptionCurveEaseOut

Your account already has a signing certificate for this machine but it is not present in your keychain

蓝咒 提交于 2019-12-31 10:33:08
问题 I get this error, verbatim, when trying to build and install to a device. This is my environment: Xcode 8 El Capitan Has anyone run into this problem? How did you solve it? Thank you 回答1: Go to Xcode Preferences -> Accounts tab -> Double-click your team name -> Click the + at the bottom left of the dialog box that appears -> Select iOS Development . This will create a new development certificate that will allow you to install and test on your device. 回答2: go to your apple developer site and

Your account already has a signing certificate for this machine but it is not present in your keychain

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-31 10:31:45
问题 I get this error, verbatim, when trying to build and install to a device. This is my environment: Xcode 8 El Capitan Has anyone run into this problem? How did you solve it? Thank you 回答1: Go to Xcode Preferences -> Accounts tab -> Double-click your team name -> Click the + at the bottom left of the dialog box that appears -> Select iOS Development . This will create a new development certificate that will allow you to install and test on your device. 回答2: go to your apple developer site and