Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1848

Registering for Ndef Autostart on MeeGo - Documentation fix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.x
    • 1.2.0, 1.2.1, 1.2.x
    • None
    • Verified NDEF Autostart to work with the change above applied to the application source code.
      Fix on MeeGo Harmattan side planned to be integrated in FW 20.2011.37-3.
    • fd468e8a574cd631f8cc7ea869eb4902a8a14d53, 401b1bf0ae06f70852eb3eee44d4f8a4faa12936

    Description

      Referring to the description of autostarting apps when touching specific NDEF message tags, as described here:
      http://doc.qt.nokia.com/qt-mobility-snapshot/qnearfieldmanager.html#automatically-launching-ndef-message-handlers

      To make it work on MeeGo with the latest PR1.1 FW versions, the code sample printed in the documentation for the .pro file needs to be changed. It is currently:

      harmattan {
      ndefhandler_conf.sources = myapplication.conf
      ndefhandler_conf.path = /etc/dbus-1/session.d/

      ndefhandler_service.sources = myapplication.service
      ndefhandler_service.path = /usr/share/dbus-1/services/

      DEPLOYMENT += ndefhandler_conf ndefhandler_service
      }

      Issues:
      1. The files don't get deployed to the device as intended. Reason is that the DEPLOYMENT-keyword is only for Symbian ( http://doc.qt.nokia.com/latest/qmake-variable-reference.html#deployment ). Right keyword to use is:
      INSTALLS += ndefhandler_conf ndefhandler_service
      (this also implies a slightly different syntax when specifying the files, see proposed fix below)

      2. The docs also have the area for the .pro file marked as "harmattan

      {...}

      ". I'm not sure if that works. The recommended way to use Harmattan conditional statements is:
      contains(MEEGO_EDITION,harmattan)

      { ... }

      See:
      http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Reference_documentation_Porting_applications_to_Harmattan.html

      3. Additionally, to avoid file name conflicts in the /usr/share/dbus-1/services/ directory, it is better to name the service file according to the full service name, not just the application name.

      Proposed fixed code sample for the documentation:

      contains(MEEGO_EDITION,harmattan) {
      ndefhandler_conf.files = %APPNAME%.conf
      ndefhandler_conf.path = /etc/dbus-1/session.d/

      ndefhandler_service.files = com.nokia.qtmobility.nfc.%APPNAME%.service
      ndefhandler_service.path = /usr/share/dbus-1/services/

      INSTALLS += ndefhandler_conf ndefhandler_service
      }

      Attachments

        Activity

          People

            amccarth Aaron McCarthy (closed Nokia identity) (Inactive)
            ajakl Andreas Jakl (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: