ios10

apns-collapse-id not merging multiple notifications iOS 10

别等时光非礼了梦想. 提交于 2019-12-02 02:11:01
问题 I am trying to collapse/merge multiple notifications belonging to same event in my app. iOS 10 introduced a key name apns-collapse-id in payload. Document says multiple remote notifications with same apns-collapse-id will merged and shown as single notification. So we have the payload with apns-collapse-id and thread-id in our notification payload. Unfortunately as there is no much content online explaining how these keys actually works, for safe play we have used the same unique value for

Whatsapp integration and openURL issue in iOS 10

房东的猫 提交于 2019-12-02 01:10:24
I have integrated whastapp in my iOS app. When I tested it in my iOS 10 device. It crashes with an issue. Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. NSURL *whatsappURL = [NSURL URLWithString:[NSString stringWithFormat: @"whatsapp://send?abid=%@&text=WelcomeToChatBought",[abidArray objectAtIndex:buttonclicked.tag-1000]]]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } What might be

Are there new device identifiers in iOS 10?

放肆的年华 提交于 2019-12-02 01:08:13
问题 Has anyone found a new way to uniquely identify a device in iOS 10? I haven't seen any documentation mentioning changes in that area and I wanted to ask before I surrendered to identifier for vendor. 回答1: If you're submitting to the store, the only real identifier you have left is the Advertising Identifier for the AdSupport framework. If you want to go down the rabbit hole a little further and potentially go into some unsafe API territory, you could hook into IOKit and try to get the battery

apns-collapse-id not merging multiple notifications iOS 10

我是研究僧i 提交于 2019-12-02 00:55:40
I am trying to collapse/merge multiple notifications belonging to same event in my app. iOS 10 introduced a key name apns-collapse-id in payload. Document says multiple remote notifications with same apns-collapse-id will merged and shown as single notification. So we have the payload with apns-collapse-id and thread-id in our notification payload. Unfortunately as there is no much content online explaining how these keys actually works, for safe play we have used the same unique value for both apns-collapse-id and thread-id . We are expecting the multiple remote notifications with same apns

Media Attachment in iOS 10 Push Notifications

情到浓时终转凉″ 提交于 2019-12-02 00:17:36
I'm struggling with adding an image to my Push Notification in iOS 10. I have added a Notification Service Extension, and have used the following code: override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) if let urlString = request.content.userInfo["image-url"] as? String, let fileUrl = URL(string: urlString) { URLSession.shared.downloadTask(with: fileUrl) { (location, response, error) in

Sinch - callDidEstablish is not getting called on Lock screen while answering call from CallKit

天大地大妈咪最大 提交于 2019-12-01 23:03:51
Sinch - callDidEstablish is not getting called on Lock screen while answering call from CallKit. I have integrated CallKit but answering call from Lock screen sinch call delegate method is not getting called to establish call. I also went through iOS Sinch Document it says :- Invoking -[SINCall answer] while being in the background is possible. The call is not immediately answered but the operation is considered pending and the call answered once the app returns to the foreground. Is there any way to establish call on answering it from Lock screen. Thanks in Advance. Currently our SDK doesnt

Apple Pay sandbox tester not able to login into device iOS 10

自古美人都是妖i 提交于 2019-12-01 20:52:31
I'm not able to login into my new iPhone 6s(iOS 10.0.1) with this sandbox account for testing apple way. While able to login into web icloud, itunes and tested on my old iPhone 6+(iOS 10 beta 5). Everytime try to login into iPhone 6s(iOS 10.0.1) I got this error message. iTunes account creation not allowed This apple ID cannot be used with the iTunes Stores at this time. Please try again. Help me what to do, is this bug from Apple side I have tried this many time. And getting same thing as you described. At last i were able to add test credit card for testing apple pay by following these steps

TextEdit field input hangs on iOS10

爷,独闯天下 提交于 2019-12-01 17:39:32
Im experiencing very odd issue on iOS10 since rebuilding my few apps. Every time i input more characters then it fits on screen in UITextField app just freeze and exactly nothing happens, there is no single error in debugger just frozen. After few minutes app crashes with memory issue. Message from debugger: Terminated due to memory issue I think it's something messed up with sizeToFit related to UITextField, as far i remember if text does not fits entirely in UITextField it gets smaller and then moves left. Anyway issue happens only with secureTextEntry = true as it's password field. Apple

TextEdit field input hangs on iOS10

给你一囗甜甜゛ 提交于 2019-12-01 17:24:11
问题 Im experiencing very odd issue on iOS10 since rebuilding my few apps. Every time i input more characters then it fits on screen in UITextField app just freeze and exactly nothing happens, there is no single error in debugger just frozen. After few minutes app crashes with memory issue. Message from debugger: Terminated due to memory issue I think it's something messed up with sizeToFit related to UITextField, as far i remember if text does not fits entirely in UITextField it gets smaller and

Xcode Hide white status bar ios 10

让人想犯罪 __ 提交于 2019-12-01 16:39:41
I want white status bar in my app. For this I set View controller-based status bar appearance to NO and Status bar style to UIStatusBarStyleLightContent . But now I need to hide status bar in some view controllers. To hide it I have to set View controller-based status bar appearance to YES and add - (BOOL)prefersStatusBarHidden {return YES;} . But status bar is black now. It's black when View controller-based status bar appearance is YES and white if NO . So the question is, how to set white status bar and hide it? UPD: code in VC that I want to have white status bar ( prefferdSTatusBarStyle