Closed
Description
React Native version:
All react-native versions
Steps To Reproduce
- Make sure your Android manifests contains the correct NDEF actions
<uses-permission android:name="android.permission.NFC" />
...
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="www.example.com" android:pathPrefix="/some-path/" />
<data android:scheme="https" android:host="example.com" android:pathPrefix="/some-path/" />
<data android:scheme="http" android:host="www.example.com" android:pathPrefix="/some-path/" />
<data android:scheme="http" android:host="example.com" android:pathPrefix="/some-path/" />
<data android:scheme="app" android:host="example" android:pathPrefix="/some-path/" />
<data android:scheme="app" android:host="com.example" android:pathPrefix="/some-path/" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="www.example.com" android:pathPrefix="/some-path/" />
<data android:scheme="https" android:host="example.com" android:pathPrefix="/some-path/" />
<data android:scheme="http" android:host="www.example.com" android:pathPrefix="/some-path/" />
<data android:scheme="http" android:host="example.com" android:pathPrefix="/some-path/" />
</intent-filter>
- Scan a NFC tag with an URL
- Check if
Linking.addEventListener('url', ({url}) => console.warn('event url': url))
gets called
Describe what you expected to happen:
I see a console.warn
Activity