Using CodeReader triggers on-screen message "Screenshot captured" under SailfishOS 2.1.3

asked 2017-12-03 00:37:56 +0200

olf gravatar image

updated 2017-12-05 21:39:00 +0200

Dear Sailors,

CodeReader (aka harbour-barcode) has been the only well usable, SailfishOS-native QR- and Barcode-scanning application for years, available from the Jolla Store and OpenRepos.net. Unfortunately, recent changes in SailfishOS prevent the CodeReader version in the Jolla Store (v0.7.11) to work at all.
While an adapted version is available from OpenRepos (v0.7.13), a special on-screen message "Screenshot captured" is emitted by SailfishOS 2.1.3, which irritates users (as no "real" screenshot is taken from the users' perspective).

In contrast to that, taking a "real" screenshot by pressing the "volume up" and "volume down" buttons at the same time does not make SailfishOS emit the on-screen message, but displays a proper on-screen notification (i.e. "notification preview")!?!
Although using the third party, SailfishOS-native tools Screenshot or ScreenTapShot2 (both available in the Jolla Store) makes SailfishOS emit exactly the same on-screen message as CodeReader does, which makes sense when using these screenshot tools.

Steffen Förster, the author of sailfish-barcode aka CodeReader, describes this issue as follows:

With release 0.7.13 the code recognition works under SailfishOS 2.1.3.7, but I am not satisfied with the result. My app uses the creation of screenshots to analyze individual images from the camera's viewfinder. Under 2.1.3.7, however, a notification is now displayed for each screenshot created. Since the notifications are stored on a stack, they are still displayed after the scan is finished or even after the application has been closed. This gives the impression that the application creates additional screenshots even after exiting, but this is not the case.

With the QVideoProbe class, Qt offers an elegant way to read individual frames from the camera. Unfortunately, the implementation under SailfishOS does not accept an object of the class QCamera.

I have decided to withdraw my application from the Jolla Store as long as there is no clean solution to the problem. Under https://openrepos.net/content/steffenf/codereader the application remains available.

Contributions are welcome, see https://github.com/steffen-foerster/sailfish-barcode/issues/37

Is there a chance to make the Qt-classes QCamera / QVideoProbe accessible and working for SailfishOS applications?
Or simply make SailfishOS not emitting the "Screenshot captured" message (i.e. returning to the state before SailfishOS 2.1.3)?

I am asking for this, because I perceive a well working QR- and Barcode-scanning app as crucial for SailfishOS. And CodeReader provided this basic functionality nicely for years.

A (real) screenshot to illustrate this issue: Message "Screenshot captured", when using CodeReader 0.7.13

edit retag flag offensive close delete

Comments

Now the CodeReader app should be hidden from the Jolla Store.

steffen ( 2017-12-04 23:27:54 +0200 )edit