Search results for

nfc

1,143 results found

Post

Replies

Boosts

Views

Activity

Reply to App rejected because of NFC used in third party
If I understand correctly, you are the third party supplying a library that includes NFC functionality your clients are not using. Not knowing what these apps are, how they are built, and what the actual rejection causes are etc., I can't make any comments or promises about the success of this solution, but the answer to your question about making CoreNFC optional is this: (things might look/work differently depending on which Xcode version or possibly 3rd party build tools your clients are using, but this is the general gist) In the Xcode project Build Phases, the Link Binary With Libraries” section, add the CoreNFC.framework, and then mark it as Optional This will weak link CoreNFC, and unless there is code that is referencing it, CoreNFC will not be included in the build. For that, you could make use of a custom Info.plist entry to check if the app is supposed to be using CoreNFC and not engage any features of your app that would require the use of those features. Again, a lot of the specifics wil
Jun ’24
Reply to HCE iOS, get default payment app
It is not possible to query which app is selected by the user as default, as that is their private choice. But, if your app has indeed been set as the default, you can determine whether it is being launched as the default app. You will need to implement NFCWindowSceneDelegate (https://developer.apple.com/documentation/corenfc/nfcwindowscenedelegate) There is a NFCWindowSceneEvent event your app will receive when it is launched due to double press or an NFC field (with payment intent) https://developer.apple.com/documentation/corenfc/nfcwindowsceneevent If your app has been set as the default, double-pressing the power button will send the presentation event. Detecting an eligible RF field (with payment intent) will send the readerDetected event If you encounter these events then you can assume your app has been set as the default payment app for the time being. Of course the user might change this at a later time without you knowing. Note: If the app is already launched, if it has startEmulation() al
Jun ’24
Reply to App Clips downtime?
Confirm that your App Clip follows guidelines from Choosing the right functionality for your App Clip, then follow the instructions in Verify the configuration of your released App Clip to diagnose issues with your App Clip. From Choosing the right functionality for your App Clip: To ensure a fast launch experience, App Clips must be small: If you make your App Clip available on devices running iOS 15 and earlier, the uncompressed App Clip binary can be up to 10 MB in size. If you make your App Clip available on devices running iOS 16 and later, the uncompressed App Clip binary can be up to 15 MB in size. If you make your App Clip available on devices running iOS 17 and later, the uncompressed App Clip binary can be up to 50 MB in size if it meets the following conditions: The App Clip only supports digital invocations — for example, from your website or Spotlight search — and not from physical invocations like App Clip Codes, QR codes, or NFC tags People use your App Clip in situations where a relia
Jun ’24
About Background Tag Reading
Here is my write NDEF message code: let readerWriter = NFCReaderWriter.sharedInstance() let payloadData = NFCNDEFPayload(format: .nfcWellKnown, type: U.data(using: .utf8)!, identifier: Data(), payload: google.com.data(using: .utf8)!) let message = NFCNDEFMessage(records: [payloadData]) readerWriter.write(message, to: tags.first!) { (error) in if let err = error { print(ERR:(err)) } else { print(write success) } self.readerWriter.end() } First Issue: When I want to read the NFC chip in the background without opening the app, I find the detection speed is not ideal. For example, this code writes google.com this time. When performing background reading, it does not successfully read every time the chip is near, and there seems to be a one-minute interval. Second Issue: When I implemented this method in the AppDelegate: - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandl
2
0
600
Jun ’24
Reply to Umlauts broken in Sonoma 14.4?
That looks like decomposed (NFD) unicode form, where an ä is a combination of an a and the two dots, encoded in separate unicode chars. And somehow Xcode(?) is unable to compose them as they should be. Weird. You might be able to fix this by running the strings thru code that re-composes into NFC format, but I guess you have already fixed them all by hand.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’24
Card Change on HCE-based contactless payment
Hi, I am integrating the HCE-based API into our SDK. Ideal flow It is bit tricky to support card change (step 3 below) after field-detect/double click due to NFC action sheet. Ideally, the flow is: User double-click. App launch Hold near Reader NFC instruction (optional) User change card User tap device to POS reader payment succeed. Approach A If I follow the code snippet in CardSession, where it calls startEmulation after readerDetected, I could change card before that. However, the Hold near Reader NFC instruction is shown very late, during tap. User double-click App launch (optional)User change card User tap device to POS reader Hold near Reader NFC instruction payment succeed. Approach B If I call startEmulation after sessionStarted, I could show Hold near Reader NFC. However, I could not provide the optional capability to change card anymore. User double-click App launch Hold near Reader NFC instruction User tap device to POS reader payment succeed.
1
0
1.2k
May ’24
iOS Automation could not run because an internal error occurred
I am developing a shortcut for an application that is currently in production. The shortcut essentially involves opening the application and launching a notification so that the AppDelegate initiates a process to scan NFC tags. To achieve this, I have an AppIntent that overrides the variable openAppWhenRun = true and an AppShortcutsProvider to implement this intent. The problem arises when a user updates to the latest version of the application and tries to implement this shortcut through an automation. The following error appears: When 'Reader' is detected encountered an error: The action 'Scan DMA tags' could not run because an internal error occurred. This does not always happen, only on some devices. However, if we uninstall and reinstall the application, it works perfectly. But this is not a viable solution since the application uses a database and data loss from frequent uninstallations is not acceptable. Any solution? I have tried to replicate the error but have been unable to do so. This issu
2
0
861
May ’24
When Rotate screen, a scanning sheet does not respond to any touch interactions
I have implemented NFC card reading functionality using NFCTagReaderSession. After starting the NFC reader session in landscape mode at least once, if I switch back to portrait mode and attempt to start the NFC reader session again, the scanning sheet does not respond to any touch interactions. Regardless of whether the screen is rotated, I expect the user to be able to close the reading screen, but it remains open. Is there any workaround for this issue? Code: class ViewController: UIViewController, NFCTagReaderSessionDelegate { func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession) { } func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: any Error) { } func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { } override func viewWillTransition(to size: CGSize, with coordinator: any UIViewControllerTransitionCoordinator) { super.viewWillTransition(to: size, with: coordinator) let session = NFCTagReaderSession(poll
0
0
472
May ’24
Reply to HCE in iPhone
It's all very well to open up the HCE for banks, but what about other ways of using the HCE. There are companies in the Americas and Asia leveraging Apple's NFC HCE for access control, integrating access badges/cards into Apple Wallet. Is this functionality available in Europe? If not, what's the reason? Can this be accomplished using Apple's Secure Element? I haven't come across any information addressing this.
Topic: App & System Services SubTopic: Core OS Tags:
May ’24
Send APDU Commands to iso7816 in background
Hello iPhone xs for testing XCode 15.3 I've successfully managed to select the AID and send other commands to a SmartCard using the following code: class NFCReader: NSObject, ObservableObject, NFCTagReaderSessionDelegate { func startNFCSession() { session = NFCTagReaderSession(pollingOption: [.iso14443], delegate: self, queue: nil) session?.alertMessage = Hold your iPhone near the NFC tag. session?.begin() // Start the session } func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { guard let tag = tags.first else { // Safely unwrap the first tag session.invalidate(errorMessage: No SmartCard detected.) return } session.connect(to: tag, completionHandler: { (error: Error?) in if let error = error { session.invalidate(errorMessage: Unable to connect to SmartCard: (error.localizedDescription)) return } switch tag { case let .iso7816(iso7816Tag): self.sendAPDUCommandSelect(to: iso7816Tag) self.sendAPDUCommand_2(to: iso7816Tag) default: print(Not iso7816 type) // Update the Swif
1
0
785
May ’24
Reply to App Clip Unavailable
Currently experiencing the exact same issues. app clip was working and everything was fine, then a app release with no significant changes to the app clip (maybe a few lines of code changed) and now every scan or QR/App Clip Code/NFC shows App Clip Unavailable on the app clip card and users can't get past that.
Topic: App & System Services SubTopic: General Tags:
May ’24