Posts

Post not yet marked as solved
1 Replies
261 Views
Hello Apple Devs, Can some one tell if I can scan RFID tag using the CoreNFC framework? Right now i have a requirement of an iOS app which can scan RFID tag. I have read about CoreNFC framework and know that NFC is a subset of RFID but still requiring clarification on my question. Can anyone from APPLE team kindly and humbly reply to my query? Thanks and regards, Alex
Posted
by AlexBingo.
Last updated
.
Post not yet marked as solved
1 Replies
303 Views
The didFinishWithResult delegate method of MFMessageComposeViewController shows that the message has been sent successfully, even when the device is in airplane mode or when the device has no SIM,but the message sending is failed.The delegate does not go through the failure state.Why doesnt it go to failure state?.Please give me some suggestion on this. The code is given as below: { 		MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; 		picker.messageComposeDelegate = self; 		 		// You can specify one or more preconfigured recipients.	The user has 		// the option to remove or add recipients from the message composer view 		// controller. 		/* picker.recipients = @[@"Phone number here"]; */ 		 		// You can specify the initial message text that will appear in the message 		// composer view controller. 		picker.body = @"Hello from California!"; 		 		[self presentViewController:picker animated:YES completion:NULL]; } // //	messageComposeViewController:didFinishWithResult: //	Dismisses the message composition interface when users tap Cancel or Send. //	Proceeds to update the feedback message field with the result of the //	operation. // (void)messageComposeViewController:(MFMessageComposeViewController *)controller 							didFinishWithResult:(MessageComposeResult)result { 		self.feedbackMsg.hidden = NO; 		// Notifies users about errors associated with the interface 		switch (result) 		{ 				case MessageComposeResultCancelled: 						self.feedbackMsg.text = @"Result: SMS sending canceled"; 						break; 				case MessageComposeResultSent: 						self.feedbackMsg.text = @"Result: SMS sent"; 						break; 				case MessageComposeResultFailed: 						self.feedbackMsg.text = @"Result: SMS sending failed"; 						break; 				default: 						self.feedbackMsg.text = @"Result: SMS not sent"; 						break; 		} 		 		[self dismissViewControllerAnimated:YES completion:NULL]; } For me and other multiple devices when we press "CANCEL" or "SEND" message the correct delegates are fired. But when I switch ON the AIRPLANE Mode or the device with no SIM still the MessageComposeResultSent Is fired. Can some one tell clearly when the MessageComposeResultFailed is fired? Any live steps? Please kindly help me This is my last hope. I just want know when the Status Failed gets fired with step by step procedure
Posted
by AlexBingo.
Last updated
.
Post marked as solved
3 Replies
295 Views
Apple team I tried to implement the ssl pinning in iOS through info.plist using Pinned Domains Identity Pinning as found in the official apple blog: How to configure server certificates for your app https://developer.apple.com/news/?id=g9ejcf8y news. As of now i have done the following changes something similar in info.plist : And in code i have used simple URLSession as shown: "https://wang.greenhub.example.org/sites/......./logo.png") else { return } // URL session that doesn't cache. let urlSession = URLSession(configuration: URLSessionConfiguration.ephemeral) let task = urlSession.dataTask(with: imageUrl) { imageData, response, error in DispatchQueue.main.async { // Handle client errors if let error = error { self.HandleClientConnectionError(error: error) return } // Handle server errors guard let httpResponse = response as? HTTPURLResponse, (200...299).contains(httpResponse.statusCode) else { self.HandleServerError(response: response!) return } self.AddImageToView(imageData: imageData!) } } task.resume() FYI we have api with multiple subdomains and thus according to the NSIncludesSubdomains documentation here says: it doesn’t apply to the subdomains advanced.math.example.com or ancient.history.example.com because those subdomains have two additional path components. Also it prohibits the use of wild cards so even if i tried to use *.example.org overall the SSL pinning does not seems to work in case of multiple subdomains scenario like mine even if i replace the SHA256-BASE64 pin with wrong ones. Can anyone from apple suggest a solution for this or tell how can we use NSIncludesSubdomains find a solution for pinning against multiple subdomains
Posted
by AlexBingo.
Last updated
.