Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5820] ti.nfc TagViewer example not working on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2018-08-02T07:21:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, ti.nfc, titanium
ReporterYahya Uddin
AssigneeShak Hossain
Created2018-08-01T11:20:53.000+0000
Updated2018-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.

Comments

  1. Mostafizur Rahman 2018-08-01

    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.
  2. Yahya Uddin 2018-08-01

    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.
  3. Yahya Uddin 2018-08-02

    Note that the Tag Foreground example seems to work fine, provided I do not add any intents in TiApp.xml.
  4. Hans Knöchel 2018-08-02

    This is related to [this PR](https://github.com/appcelerator/titanium_mobile/pull/10225) and will likely land in 7.3.1 already. Thanks!
  5. Yahya Uddin 2018-08-02

    Brilliant. When is that planned to be released?
  6. Yahya Uddin 2018-08-27

    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.
  7. Yahya Uddin 2018-08-27

    Can we re-open this issue please?

JSON Source