ios10

Push Notification not showing in iOS 10

試著忘記壹切 提交于 2019-12-31 04:24:27
问题 How can I get notification in iOS 10? In previous version, I can receive notification in func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) . In iOS 10, Apple introduces UNNotificationSettings . I can get FCM with func applicationReceivedRemoteMessage(remoteMessage: FIRMessagingRemoteMessage) . However, I cannot get notification showing up on my phone in the background. func application(application: UIApplication,

Beacon monitoring after reboot with iOS10

扶醉桌前 提交于 2019-12-30 13:27:35
问题 With iOS9, my app was able to detect beacons even iPhone was restarting. With iOS10 this feature is no more working. It seems that with iOS10 "monitored beacon list" is not restarted agter a phone reboot. Any idea ? 回答1: There have been a number of reports of failing to monitor beacons in the background after an upgrade to iOS 10. Try this: Setting -> General -> Reset -> Reset Network Settings Launch your app, verifying beacon detection in the foreground Turn off your beacon or leave range to

iOS 10: UITableViewCell's delete button custom height

冷暖自知 提交于 2019-12-30 11:51:33
问题 Using custom UITableViewCell, I'm trying to change the height of tableViewCell's delete button. I've tried all the solutions available here on SO. Everyone has mentioned that in customTableViewCell class we need to override layoutSubviews method and iterate over self.subViews to find a subView which should be equal to UITableViewCellDeleteConfirmationView or in other iOS versions it is UITableViewCellDeleteConfirmationControl so I have used following code: - (void)layoutSubviews { [super

Using Data in Rich Push notification on iOS with FCM

六月ゝ 毕业季﹏ 提交于 2019-12-30 10:01:59
问题 My question might be bad, but I can't find any answer anywhere, I'm lost... So I want to display a rich notification with a nice image in iOS 10+. For this I'm using FCM and an UNNotificationServiceExtension which, if I understood correctly, should get the Data payload, find the image URL and load it before modifying the UNNotificationContent. The issue I have is that I can't get a hold of this "data". What I'm sending to FCM is the following : { "to": "device_token", "content_available":

Using Data in Rich Push notification on iOS with FCM

此生再无相见时 提交于 2019-12-30 10:01:08
问题 My question might be bad, but I can't find any answer anywhere, I'm lost... So I want to display a rich notification with a nice image in iOS 10+. For this I'm using FCM and an UNNotificationServiceExtension which, if I understood correctly, should get the Data payload, find the image URL and load it before modifying the UNNotificationContent. The issue I have is that I can't get a hold of this "data". What I'm sending to FCM is the following : { "to": "device_token", "content_available":

NSPersistentContainer is only available in 10.0 or newer : error

夙愿已清 提交于 2019-12-30 06:46:15
问题 It's because My deployment target is less than 10. how to resolve for deployment target lower to 10.0 ? 回答1: One of solutions is to use https://github.com/inspace-io/INSPersistentContainer and add typealias NSPersistentContainer = INSPersistentContainer typealias NSPersistentStoreDescription = INSPersistentStoreDescription to your file where you want to use 回答2: Not available means not available. There are two options: Use only the old NSPersistentStoreCoordinator / NSManagedObjectModel

Error: __tcp_connection_write_eof_block_invoke Write close callback received error - iOS 10

╄→尐↘猪︶ㄣ 提交于 2019-12-30 06:42:18
问题 While sending XML base API Request to ONVIF Camera. It worked fine on ios 9 device, but giving '500 Internal Error' on iOS 10. XCode 8 Console prints below error messages: 2016-09-30 12:39:51.295419 VCPlugin[278:10183] [] nw_socket_get_input_frames recvmsg(fd 12, 1024 bytes): [54] Connection reset by peer 2016-09-30 12:39:51.301221 VCPlugin[278:10228] [] nw_socket_write_close shutdown(12, SHUT_WR): [57] Socket is not connected 2016-09-30 12:39:51.301307 VCPlugin[278:10228] [] nw_endpoint_flow

iOS 10 “Starting WebFilter logging for process” + Proxy-Authorization header removed from request

不羁的心 提交于 2019-12-29 18:19:50
问题 Starting from iOS 10 I noticed such logs in my app yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: === Starting WebFilter logging for process HelloWorld yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _WebFilterIsActive returning: NO I have reviewed iOS 10 Release notes but

iOS 10 “Starting WebFilter logging for process” + Proxy-Authorization header removed from request

拈花ヽ惹草 提交于 2019-12-29 18:19:45
问题 Starting from iOS 10 I noticed such logs in my app yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: === Starting WebFilter logging for process HelloWorld yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _WebFilterIsActive returning: NO I have reviewed iOS 10 Release notes but

iOS 10 with XCode 8 GM caused NSUserDefaults to intermittently not work

跟風遠走 提交于 2019-12-29 14:20:12
问题 NOTE: I have seen many other posts on Stack Overflow about NSUserDefaults being renamed to UserDefaults in Swift or not working on simulator until a restart. This is not a duplicate by anyway. Many of the questions SO is tagging against is from 4 years ago. My question is specific to iOS 10 from this year as this has always worked in older versions. I have mentioned in my question already that my question is not a duplicate of those questions as those were simulator bugs in swift and my issue