Closed n-kulic closed 1 year ago
Ran into the same issue after setting up an intent-filter
:
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<data android:scheme="https" android:host="myapp.com"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
This issue was closed because it has been stalled for 5 days with no activity.
@rpopovych @n-kulic were you able to find a solution for this? I am currently running into it as well.
@whitedogg13 I noticed that you reopened this issue in August. Was a fix for this released?
@hkaras19 I have not found a solution unfortunately. We've put the implementation on pause for other reasons.
@rpopovych @n-kulic were you able to find a solution for this? I am currently running into it as well.
@hkaras19 @rpopovych SecurityException
is thrown when trying to check whether a tag can be made read-only.
Since our app did not required this data we've commented out that part and patched a package.
If your app does not need this data you can as well patch this package:
Install and set-up https://www.npmjs.com/package/patch-package
Go to node_modules/react-native-nfc-manager/android/src/main/java/community/revteltech/nfc/Util.java
and comment out lines 41 to 45:
Execute the npx patch-package react-native-nfc-manager
command after removing the code that causes an exception (or if using yarn, yarn patch-package react-native-nfc-manager
).
Quick Information
--
What Happened?
On NDEF_DISCOVERED app launch activity app crashes with the following exception:
Exception on
Util.java
line 42:Related issues:
--
Expected result
App starts without crash/exception
--
Steps to reproduce
--
Stacktrace