[AC-5820] ti.nfc TagViewer example not working on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2018-08-02T07:21:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, ti.nfc, titanium |
Reporter | Yahya Uddin |
Assignee | Shak Hossain |
Created | 2018-08-01T11:20:53.000+0000 |
Updated | 2018-08-27T20:57:56.000+0000 |
Description
I am trying to run the TagViewer example on Ti.7.2.0.GA mentioned here:
https://github.com/appcelerator-modules/ti.nfc/tree/master/android/example/TagViewer/app
When the app is not open, and you scan a NFC tag, the app opens under "Nfc Service" as a separate instance, but the data does not show up.
When scanning a tag, while the app is still open, the app is simply re-opens, but again the data does not show up.
The example also mentions to use
android:launchMode="singleTask"
no longer works and been replaced with the feature <property name="intent-filter-new-task" type="bool">true/false</property>
.
Please help and update the docs, as this is an urgent feature we need to roll out soon.
Hello, Thanks for sharing with us. Which android device is used for testing? Can you please share the console logs or snapshot which displays the issue.
I am using a Samsung Galaxy S6. The only significant error that appears in the console is this during compiling
[WARN] android:launchMode should not be used. Ignoring definition from .SandboxActivity
There are no errors or warnings during run-time.Note that the Tag Foreground example seems to work fine, provided I do not add any intents in TiApp.xml.
This is related to [this PR](https://github.com/appcelerator/titanium_mobile/pull/10225) and will likely land in 7.3.1 already. Thanks!
Brilliant. When is that planned to be released?
The issue is still NOT fixed in 7.3.0.GA. A similar issue occurs. The only difference is that it doesn't open NFC Service anymore. It opens the same app yet again. Note that the NFC Forward dispatching works fine however. Can we please have a fix.
Can we re-open this issue please?