ios10

iOS 10 FireBase when notification arrived, do not get call NotificationService.h Notification Service Extension

余生长醉 提交于 2019-12-13 00:46:38
问题 I use firebase and get successfully Notifications but when notification arrived, do not get call NotificationService.h Notification Service Extension. I also set NSExtensionPrincipalClass to NotificationService NSExtensionPointIdentifier to com.apple.usernotifications.service My notification is like { "registration_ids": ["devicetoken"], "mutable_content": true, "data":{ "post_details": { "pcm_message": "asdf", "pcm_img_url": "http://portalvhds34w6bf5z9b21h.blob.core.windows.net/images

Size problems by converting iOS 9 today extension to iOS 10

那年仲夏 提交于 2019-12-12 17:11:38
问题 Good evening! I have big problems by understanding today extensions. I've read lot of tutorials and introductions but nothing helped me to understanding the problem. On iOS 9 the extension works fine - on iOS 10 not. My big issue is the auto resizing(?) of the widget in iOS 10. On iOS 9 the widget show my table view in portrait and landscape perfect - iOS 10 crash that organization and break the view. The question on StackOverflow about that has only the answers like that: https:/

Updating a delivered notifications ios 10

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 16:31:23
问题 I am trying to update an already delivered notification on iOS 10 which is a new feature. I am using an api call to send a push notification through firebase. If a comes online notification should be "a is online" If b also comes online notification's message should be updated to "a and b are online" If c also comes online notification's message should be updated to "a,b and c are online" and so on.. I have used answer from this question How can I removed previously delivered notifications

How to create virtual printer with iOS Simulator?

北城余情 提交于 2019-12-12 14:34:06
问题 In one of my application there is feature to print documents. I want to test this feature but I don’t have device, So I have to test on Simulator. With simulator how can I print documents. Do I need to connect physical printer or can I create virtual printer and test with it ? I am using Xcode 8.2.1 , iOS 10 and StarPrint iOS SDK 5.2.1 I have searched lot but I didn’t find which work for me. How can I do that ? I have referred below links : Where is printer simulator in Xcode 6 Here I cannot

Core Data with pre-filled .sqlite (Swift3)

故事扮演 提交于 2019-12-12 13:01:56
问题 currently I'm working on a Swift3 / iOS10 update of an existing iOS9 App which stores about 10.000 charging points for electric vehicles across europe. Up to now I always shipped the Application with a pre-filled database (.sqlite, .sqlite-shm, .sqlite-wal files from the .xcappdata bundle), but with the current Version Apple is introducing the NSPersistentContainer Class, which makes it a bit more complicated. In my AppDelegate Class I'm instantiating my NSPersistentContainer object and

After Swift 3 conversion, I can't get rid of error: “Ambiguous use of 'indexOfObject(passingTest:)'”

别来无恙 提交于 2019-12-12 10:48:11
问题 I'm using NSArray 's indexesOfObjects(passingTest:), but after I converted my code to Swift 3 I get the error: "Ambiguous use of 'indexOfObject(passingTest:)'". My code below worked fine with Swift 2.3. let indexesOfBubbleConstraints = bubbleConstraints.indexesOfObjects(passingTest: { (constraint, idx, stop) in if let view = constraint.firstItem as? UIView{ return view.tag == usernameTag } else{ return false } }) For Swift 3, I also had to cast constraint to AnyObject , but that doesn't fix

iOS10 - ContentView Blocking Touches of UIButton in UITableView Header

空扰寡人 提交于 2019-12-12 07:57:54
问题 I am in the process of updating my app to iOS10 with Swift 2.3 and Xcode 8 Beta 1 and I have found that there is a UITableViewHeaderFooterContentView which is blocking touches to the UIButton on my subclass of UITableViewHeaderFooterView . On the Xcode 8 Beta 1 simulator the UIButton works on iOS9.3 but not iOS10. 1) Is there any documentation for this? 2) How can I ensure my UI elements are on top of the new Content View in iOS10? (or allow touches through the UITableHeaderFooterContentView

CNUI ERROR Contact view delayed appearance timed out

情到浓时终转凉″ 提交于 2019-12-12 07:45:02
问题 I am trying to show the Contacts add new contact view with the ContactsUI framework in iOS 10. The code that I am using to present CNContactViewController the is the following: let contactViewController = CNContactViewController(forNewContact: contact) contactViewController.contactStore = CNContactStore() contactViewController.delegate = self self.present(contactViewController, animated: false) {} But every time I execute the code the app gets frozen and I get three + times the following

How to add support for 10.5 inch iPad Pro

安稳与你 提交于 2019-12-12 07:13:05
问题 I've just downloaded the latest Xcode 8.3.3 update from the MAS. I was wondering how to add support for the new 10.5-inch iPad Pro? I'm using storyboards with auto-layout, a launch screen storyboard and all app icon sizes are added to the xcassets. 回答1: I believe that the auto-layout launch screen story board should be all that is needed. However, I have found that if I build an application under Xcode 8.3.3, the UIScreen.mainScreen.bounds returns 736 x 1024. If I build the same application

Swift 3 - CollectionView data source did not return a valid cell

僤鯓⒐⒋嵵緔 提交于 2019-12-12 05:48:04
问题 I am using this code: https://www.youtube.com/watch?v=bNtsekO51iQ , but when I implement my data and use collectionView.reloadData() it crashes with error code *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'the collection view's data source did not return a valid cell from -collectionView:cellForItemAtIndexPath: for index path <NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}' class ChatLogController: UICollectionViewController,