[MOD-2551] Ti.Barcode stops the app when opened
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Barcode |
Labels | 8.0.0.GA, android-8, barcode, ti.barcode |
Reporter | josh.mocek |
Assignee | John V Pataki |
Created | 2019-06-04T17:22:25.000+0000 |
Updated | 2019-10-19T23:25:29.000+0000 |
Description
Using Ti.Barcode. If you press on 'Hello, World' and look at the console you will notice that it consoles
'*-*-*-*-*-*-* PAUSE BY OS *-*-*-*-*-*-*'
'*-*-*-*-*-*-* STOP BY OS *-*-*-*-*-*-*'
And if you press 'Cancel' or scan a barcode the console outputs
'*-*-*-*-*-*-* RESTARTED BY OS *-*-*-*-*-*-*'
'*-*-*-*-*-*-* START BY OS *-*-*-*-*-*-*'
'*-*-*-*-*-*-* RESUME BY OS *-*-*-*-*-*-*'
From what I notice it should not be affecting the activity. This is causing the barcode scanner to run slowly. Sometimes the barcode scanner is taking +30s to close in our production app.
Here are the modules i'm using:
https://github.com/appcelerator-modules/ti.barcode
https://github.com/acktie/Acktie-Mobile-Android-Barcode
https://github.com/mikefogg/BarcodeView
Attachments
File | Date | Size |
---|---|---|
barcodeScanner.js | 2019-06-04T17:19:04.000+0000 | 1525 |
index.js | 2019-06-06T20:14:06.000+0000 | 2275 |
index.tss | 2019-06-06T20:14:27.000+0000 | 116 |
index.xml | 2019-06-06T20:14:27.000+0000 | 187 |
media.io_shortTiClip.mov | 2019-08-20T15:56:48.000+0000 | 7140743 |
Screen Shot 2019-06-13 at 8.50.51 AM.png | 2019-06-13T16:05:28.000+0000 | 359719 |
tiapp.xml | 2019-06-04T17:18:41.000+0000 | 4176 |
Hello, Why are you using three different barcode module? The second and third one is a third party module. Also, looks to be not supported with the latest SDK 8.0.1.GA when I tried to test with your sample code. Did you try the ti.barcode module's example code? there it has everything you needed for the barcode scanning? The example code works like charm with the module. Try it yourself and let us know. Thanks.
@sharif barcodeScanner.js should be in the lib folder of the app project.
Yes, I tried that. The other module Acktie-Mobile-Android-Barcode is showing error and not supported with SDK 8.0.1.GA. Why are you using three different barcode module? Did you try the ti.barcode module's example code? there it has everything you needed for the barcode scanning. Thanks.
I updated the index files to remove those other modules. If you want to try that application. What I am talking about is that when Ti.Barcode is opened it fires the signal to pause and stop the activity and it shouldn't be doing that.
I also got an alert because this project has apparently been making api calls? !Screen Shot 2019-06-13 at 8.50.51 AM.png|thumbnail!
[~josh.mocek] regarding your latest comment, you probably have a login call in alloy.js
Hello! Hope you are doing fine today. Would you please reply us regarding previous reviews? We are looking forward to your response.
[~josh.mocek], I just wanted to follow up and check the status of your issue. Did you manage to resolve the problem? Let us know the update.
It still crashes for me
Hello [~josh.mocek], Can you please share a video that demonstrates the issue of pause the app activity when the ti barcode module is opened? We will investigate any issue with the ti.barcode module. The other third party module and the related issue, you have to reach out their support. Also, the reason you are getting API calls logged in the dashboard, possibly you have login calls in the allloy.js. Thanks.
I added a video
The video does not show the app crash. Also in the video, you haven't shown any barcode scanning to demonstrate the slow scanning. Can you please clear your issue? what exactly the issue for you? thanks.
The issue is that Using Ti.Barcode. If you press on 'Hello, World' and look at the console you will notice that it consoles
And if you press 'Cancel' or scan a barcode the console outputs
It should not be calling those. In this small sample app it isn't crashing.
Hello, In your index.js file I see you are calling them in
I am not sure what is the problem here. Thanks.
Yes the consoles are consoling out correctly. The consoles are just functions assigned to the activities event listeners, that way when an activity event is consoled it consoles. For example: If you leave the app without killing it you will notice that '*-*-*-*-*-*-* PAUSE BY OS *-*-*-*-*-*-*' will be consoled out. If you go back into the app it will console '*-*-*-*-*-*-* RESUME BY OS *-*-*-*-*-*-*'. The problem is that when a user opens the Ti.Barcode module it pauses the OS and then stops the OS when it should console nothing. You will notice that it pauses and stops the OS by the consoles.