Skip to content
Discussion options

You must be logged in to vote

1. The "not implemented" error

The isEnabled() method is Android-only and throws a "not implemented" error on iOS. iOS doesn't have a global NFC on/off toggle like Android, so this check isn't needed there.

You can fix this by wrapping the call in a platform check:

import { Capacitor } from '@capacitor/core';

// Only check isEnabled on Android (iOS doesn't have an NFC toggle)
if (Capacitor.getPlatform() === 'android') {
  const { isEnabled } = await Nfc.isEnabled();
  if (!isEnabled) {
    // Show error...
    return;
  }
}

This will allow the scan session to start on iOS.

2. MIFARE Classic is not supported on iOS

Unfortunately, MIFARE Classic cards are not supported on iOS. This is a ha…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@perohu
Comment options

@robingenz
Comment options

@perohu
Comment options

@robingenz
Comment options

Answer selected by perohu
@perohu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants