You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgalt="GitHub all releases"src="https://img.shields.io/github/downloads/abhishekabhi789/GCS_for_Tasker/total?style=for-the-badge&color=00C853"title="Total download count"></a>
<imgalt="GitHub release (latest by date including pre-releases)"src="https://img.shields.io/github/v/release/abhishekabhi789/GCS_for_Tasker?include_prereleases&style=for-the-badge&color=0091EA"title="latest release version"></a>
<imgalt="demo project download"src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftaskernet.com%2F_ah%2Fapi%2Fdatashare%2Fv1%2Fshares%2FAS35m8mVC%252FNlWH31JCTnGHpKVeZk1osEp8V1pFxCq1Ls28Un1RXCw9ZNWWvmpxOebt4WIYFeiZhZKHc%253D%2FProject%253AGCS4T%2520Example%2520Project%3Fa%3D0&query=%24.info.stats.downloads&prefix=Downloads%3A%20&style=for-the-badge&label=Taskernet&labelColor=yellow&color=grey"title="import the demo project from taskernet" ></a>
15
-
16
-
</div>GCS for Tasker is an Android application that can act as both a Tasker event plugin and action
17
-
plugin. This app uses the Google Code Scanner API to scan and extract information from QR codes.<br>
<imgalt="GitHub all releases"src="https://img.shields.io/github/downloads/abhishekabhi789/GCS_for_Tasker/total?style=for-the-badge&color=00C853"title="Total download count"></a>
13
+
<br>
14
+
<br>
15
+
A code scanning plugin for <ahref="https://joaoapps.com/tasker/">Tasker</a> that uses the <ahref="https://developers.google.com/ml-kit/vision/barcode-scanning/code-scanner">Google Code Scanner</a> API.
16
+
</div>
18
17
19
18
## :gear: Requirements
20
19
21
-
This is a [Tasker Plugin](https://tasker.joaoapps.com/plugins-intro.html), and it requires
22
-
the [Tasker](https://joaoapps.com/tasker/) Android app to function. To use this app, you must have
23
-
an Android device with an API level
24
-
of [21](https://developer.android.com/tools/releases/platforms#5.0"Android 5.0 Lollipop") or
25
-
higher, as the Code Scanner API works on devices with
26
-
this API level or above. Furthermore, it is necessary to have the Google Play Services installed on
27
-
the device.
20
+
- This is a [Tasker Plugin](https://tasker.joaoapps.com/plugins-intro.html), and it requires the [Tasker](https://joaoapps.com/tasker/) Android app to function.
21
+
22
+
- This app works on Android 5.0(Lollipop) and higher devices as the Code Scanner API works on devices with this API level or above.
28
23
29
-
## :bulb: Features
24
+
- The app works only on devices having updated Google Play Services installed.
30
25
31
-
With the GCS for Tasker app, you can easily integrate QR code scanning into your Tasker projects.
32
-
This app supports both scanning events and actions. This app doesn't ask for camera permissions, nor
33
-
does it store or share any data except with Tasker.
From Android 10 - Q (API 29) android system restricted launching activities from background([more info here](https://developer.android.com/guide/components/activities/background-starts)).
30
+
App will be exempted from this restriction if it has the manage overlay permission.
31
+
32
+
-#### Post Notification
33
+
On some low memory devices, the android system kills the app when it goes to background while scanner UI is visible.
34
+
Therefore, once scanning is done, the app may not be running to receive the result.
35
+
Running a service may keep the app in memory, and it requires a notification to be posted.
36
+
This permission is not requested at run time because not every device needs it. If you encounter this issue, try granting it.
37
+
38
+
-### Starting from background
39
+
App has to be white listed from any restriction that can prevent starting the scanner from background, like `Open new windows while
40
+
running in the background` in MiUi.
34
41
35
42
## :dna: Variants
36
43
37
-
There are two variants available for this project based on the theme used in event configuration
38
-
activity. Classic themed app is smaller in size and material themed app is around 4 times bigger.
39
-
Both are having same package name and are signed with same key, you can switch them anytime. It's
40
-
recommended to clear the app data after such switching to release storage space consumed by previous
41
-
variant.
44
+
There are two variants available for this project based on the theme used in plugin configuration activity.
45
+
The classic variant is smaller in size, and material variant is twice as bigger.
46
+
Both variants share the same package name and are signed with the same key, so you can switch between them anytime.
47
+
It is recommended to clear the app data after switching to free up storage space consumed by the previous variant.
42
48
43
49
<details><summary>
44
50
@@ -52,26 +58,26 @@ Install this plugin app and Tasker.
52
58
- For events, select the "Event" option, then choose "Plugin" and select "GCS for Tasker" from the
53
59
list. From there, you can configure the event based on your preferences.
54
60
55
-
* Value filter: The event will trigger only when the raw value of the scanned code matches the
56
-
value filter. This field supports both simple and regex matching. Adjust the switch next to
57
-
this field to choose simple matching or regex matching.
58
-
* Type filter: The event will trigger only when the qr code type matches any of the type filter.
61
+
***Value filter**: The event will trigger only when the raw value of the scanned code matches the
62
+
value filter. This field supports both simple and regex matching. Use the switch next to
63
+
this field to choose matching method.
64
+
***Type filter**: The event will trigger only when the qr code type matches any of the type filter.
The event will trigger only if all specified filters are satisfied.
67
73
68
-
- For actions, select "Plugin" from the "Select action category" list, and then choose "GCS for
74
+
- For actions, select "Plugin" from the action list, and then choose "GCS for
69
75
Tasker". Then on the configuration activity you can configure below settings.
70
-
* Format filter: The code scanner will only detect codes having the chosen format.
71
-
* Enable auto zoom: The scanner will try to automatically zoom the camera towards the code.
72
-
* Allow manual input: The scanner allows manual input of code value.
76
+
77
+
***Format filter**: The code scanner will only detect codes having the chosen format.
78
+
***Enable auto zoom**: The scanner will try to automatically zoom the camera towards the code.
79
+
***Allow manual input**: The scanner allows manual input of code value.
73
80
74
-
All the code types and code formats can be copied from event and action configuration.
75
81
76
82
#### In GCS for Tasker
77
83
@@ -83,34 +89,11 @@ After completing the Tasker setup, try to perform a scan.
83
89
* This download is a background task and is handled by the Google Play Service. You won't be
84
90
notified when the task is completed.
85
91
86
-
Here's an example project. Import it
87
-
from [TaskerNet](https://taskernet.com/shares/?user=AS35m8mVC%2FNlWH31JCTnGHpKVeZk1osEp8V1pFxCq1Ls28Un1RXCw9ZNWWvmpxOebt4WIYFeiZhZKHc%3D&id=Project%3AGCS4T+Example+Project)
88
-
</details>
89
-
<details><summary>
90
-
91
-
## :question: FAQ
92
-
93
-
</summary>
94
-
95
-
#### Can this be used on a device that does not have Google Play Services?
96
-
97
-
> No, the app uses the unbundled Google code scanner API provided by Google Play Services on the
98
-
> device.
99
-
100
-
#### Does the app require an internet connection to function?
101
-
102
-
> This app does not require an internet connection since the scanner library is capable of working
103
-
> offline. However, Google Play Services requires an internet connection to download QR scanner
104
-
> libraries if they are not already present on your device.
105
-
106
-
#### Does clearing app data delete any setup or data?
107
-
108
-
> For API 25+(Android 7.1+) devices, the shortcut configuration will be cleared when cleaning app
109
-
> data. No scanner related functionalities affected with clearing app data. All configuration data is
110
-
> stored in Tasker and the scanner library is in google play services. Also, if you want to save the
111
-
> scan results, you have to set up a Tasker task to do so.
92
+
Here's a demo project. Import it from [TaskerNet](https://taskernet.com/shares/?user=AS35m8mVC%2FNlWH31JCTnGHpKVeZk1osEp8V1pFxCq1Ls28Un1RXCw9ZNWWvmpxOebt4WIYFeiZhZKHc%3D&id=Project%3AGCS4T+Example+Project)
112
93
94
+
The app also initializes a shortcut during the first scan. From this app shortcut, you'll be able to choose a Tasker task related to the scanner for quick access, such as `GCS4T: View History` in the demo project.
113
95
</details>
96
+
114
97
<details><summary>
115
98
116
99
## :wrench: Troubleshoot
@@ -120,30 +103,21 @@ from [TaskerNet](https://taskernet.com/shares/?user=AS35m8mVC%2FNlWH31JCTnGHpKVe
120
103
#### Scanner module not downloading.
121
104
122
105
>- Ensure internet connection.
123
-
>-Ensure battery saver is turned off.
106
+
>-Make sure the battery saver is turned off.
124
107
>- Update play service if available.
125
-
>- Reboot device.
108
+
>- Reboot the device.
126
109
>
127
110
> If problem persists try
128
-
>- clearing the data of Google Play Services (Attention!: Use caution when deleting)
129
-
>-Upgrade or downgrade Google Play Services.
111
+
>- clearing the data of Google Play Services (:warning: Use caution when deleting)
112
+
>-Try upgrading or downgrading Google Play Services.
130
113
131
-
#### Code Scanned but no response from Tasker.
114
+
#### Scanner Action not launching
132
115
133
-
>- Try a different code to make sure the tasker setup is correct.
134
-
>- Check Tasker run log.
135
-
>- Try both event and action.
136
-
>- Create a new event/action without any filter rules and flash the output.
137
-
138
-
#### Scanner UI doesn't dismiss after action timeout.
139
-
140
-
> The library does not provide a method to programmatically close or set a timeout for the scanner.
141
-
> You can consider using Tasker/AutoInput to click the close button or the back button after the
142
-
> action fails due to timeout.
116
+
>- Remove any restriction such as battery saver, background start, draw-over-other-apps, notification and try again.
117
+
>- If the issue persists, report it here.
143
118
144
119
#### Error: Failed to scan code.
145
120
146
-
> If the scanner throws 'Failed to scan code' error, try clearing the app data
147
-
> of [Google Play Service](https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en&gl=US).
148
-
> It's a Google Code Scanner module related issue
149
-
</details>
121
+
> If the scanner returns 'Failed to scan code' error, try clearing the app data of Google Play Service.
122
+
> It's a Google Code Scanner module related issue.
0 commit comments