Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

QR Scanner
Started by Michael W. Aug 12 2015 01:53 PM

382 replies to this topic
release android ios
[TOPIC CONTROLS]
« Page 16 of 16 14 15 16
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#376

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 91 posts
  • Corona SDK

It seems not working on my Android 10 when I open the scanner on my Nokia 7.1, the app crashed and closed down. It works on another devices and iOS. 

 

Not sure if it is related to Android System Webview" or not. I updated my "Android System Webview" to "80.0.3987.149" yesterday and I found the QR Scanner is not working now 



[TOPIC: post.html]
#377

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 542 posts
  • Corona Staff

It should not be related to webview, can you please send the output of logcat when the crash happens? That might tell the reason.



[TOPIC: post.html]
#378

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 91 posts
  • Corona SDK

I am not a native app developer. I will check how to get the log from my Android 10. But when I call the qrscanner.show(), the app will crash (just exit the app) without showing any error.



[TOPIC: post.html]
#379

kakula

[GLOBAL: userInfoPane.html]
kakula
  • Contributor

  • 112 posts
  • Corona SDK

it's working perfectly on my side

 

it might be a compatibility issue with the phone you are using or code problem ... sometimes the cause would be JDK version!

 

post your code if you wish



[TOPIC: post.html]
#380

yosu

[GLOBAL: userInfoPane.html]
yosu
  • Contributor

  • 557 posts
  • Corona SDK

The QR scanner works fine on my Android 10 (Samsung Note 9). I am on Windows @ java :

java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)

Hope it helps.



[TOPIC: post.html]
#381

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 91 posts
  • Corona SDK

It should not be related to webview, can you please send the output of logcat when the crash happens? That might tell the reason.

 

@Lerg

 

I tried to install Java Runtime and rebuild. The result is the same. I also tried to add ALL permission to my Android App to make sure that it has all access for the camera and storage but it doesn't help as well

 

Here is the function I used to call up the QR Scanner:

 

function openScanner(event)
 
local qrscanner = require('plugin.qrscanner')
 
local function listener(event)  
 print(urlencode(event.message))
end
 
local qrOptions = {
strings = {
title = _G.__uiText[_G.appLang]['lblQRCodeReader']
},
}
qrscanner.enableDebug()
qrscanner.show{listener = listener}
 
end
 
Whenever I called this function on my Android 10 (Nokia 7.1), it will crash. But it works on iOS and all other android device which are not in Android 10.
 
Below is the logcat:
 
03-25 10:50:37.065   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.101  2552  2552 I KeyButtonView: onTouchEvent() : ACTION_DOWN   mCode = 4
03-25 10:50:38.101  2552  2552 I KeyButtonView: sendEvent() : START mCode = 4
03-25 10:50:38.101  2552  2552 I KeyButtonView: Back button event: ACTION_DOWN
03-25 10:50:38.102  1467  4799 D WindowManager: hasSupportControlTorch() : result = false
03-25 10:50:38.103  2552  2552 I KeyButtonView: sendEvent() : End mCode = 4
03-25 10:50:38.104  1467  2468 V InputDispatcher: Asynchronous input event injection succeeded.
03-25 10:50:38.104  2552  2552 D CustomizeUtils: getConfig() : srsId = F_LONG_PRESS_BACK_TO_CONTROL_TORCH result = false type = bool pkg = android
03-25 10:50:38.104  2552  2552 D KeyButtonView: hasSupportControlTorch() : result = false
03-25 10:50:38.148  2552  2552 I KeyButtonView: onTouchEvent() : ACTION_UP   mCode = 4
03-25 10:50:38.148  2552  2552 I KeyButtonView: sendEvent() : START mCode = 4
03-25 10:50:38.148  2552  2552 I KeyButtonView: Back button event: ACTION_UP
03-25 10:50:38.149  2552  2552 I KeyButtonView: sendEvent() : End mCode = 4
03-25 10:50:38.149  1467  2468 V InputDispatcher: Asynchronous input event injection succeeded.
03-25 10:50:38.156  1467  4799 D ActivityTrigger: ActivityTrigger activityPauseTrigger 
03-25 10:50:38.166  1467 12738 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1649 android.content.ContextWrapper.bindService:705 android.media.IrisConfig.bindService:99 android.media.IrisConfig.setParameters:62 android.media.AudioManager.setParameters:2159 
03-25 10:50:38.171   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.175  1467 12738 W MediaServiceController: ColorManagerService is not Existed
03-25 10:50:38.176   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.176   577   577 I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@2.0::IIop/default in either framework or device manifest.
03-25 10:50:38.176  1467  2573 E ANDR-PERF-JNI: UXEngine Trigger - Returning null
03-25 10:50:38.188   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.191  2530  3073 I BtGatt.ScanManager: msg.what = 6
03-25 10:50:38.191 22250 22266 I android_os_HwBinder: HwBinder: Starting thread pool for getting: vendor.pixelworks.hardware.display@1.0::IIris/default
03-25 10:50:38.194 22250 22266 I android_os_HwBinder: HwBinder: Starting thread pool for getting: vendor.pixelworks.hardware.display@1.0::IIris/default
03-25 10:50:38.195   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.196 22250 22266 I android_os_HwBinder: HwBinder: Starting thread pool for getting: vendor.pixelworks.hardware.display@1.0::IIris/default
03-25 10:50:38.196  5200  5200 D PredictionService: onRequestPredictionUpdate
03-25 10:50:38.196  5200  5200 D PredictionService: update predictions
03-25 10:50:38.196  1467  4799 D CompatibilityInfo: mCompatibilityFlags - 0
03-25 10:50:38.196  1467  4799 D CompatibilityInfo: applicationDensity - 420
03-25 10:50:38.196  1467  4799 D CompatibilityInfo: applicationScale - 1.0
03-25 10:50:38.197   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.198 22250 22266 I android_os_HwBinder: HwBinder: Starting thread pool for getting: vendor.pixelworks.hardware.display@1.0::IIris/default
03-25 10:50:38.202 22250 22266 I chatty  : uid=1000(system) Binder:22250_1 identical 1 line
03-25 10:50:38.203 22250 22266 I android_os_HwBinder: HwBinder: Starting thread pool for getting: vendor.pixelworks.hardware.display@1.0::IIris/default
03-25 10:50:38.204   756   860 I IrisService: irisConfigureSet(258, 1, 2)
03-25 10:50:38.231  4268  4578 W ThreadPoolDumper: Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
03-25 10:50:38.241   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.257  1467  4792 D CompatibilityInfo: mCompatibilityFlags - 0
03-25 10:50:38.257  1467  4792 D CompatibilityInfo: applicationDensity - 420
03-25 10:50:38.257  1467  4792 D CompatibilityInfo: applicationScale - 1.0
03-25 10:50:38.258   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.259  4268  4542 I StreamController: registerScope: nowcards-15-7c71d67-b364
03-25 10:50:38.262   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.265   577   577 E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1467 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
03-25 10:50:38.370  4093 12688 D FileOperator: Mode change to WRITE_MODE!
03-25 10:50:38.436 10632 12217 D BluetoothAdapter: isLeEnabled(): ON
03-25 10:50:38.436  2530 26091 D BtGatt.GattService: stopScan() - queue size =4
03-25 10:50:38.437  2530  3073 I BtGatt.ScanManager: msg.what = 1
03-25 10:50:38.438  2530 26091 D BtGatt.GattService: unregisterScanner() - scannerId=8
03-25 10:50:38.438   747   747 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(992)] GATT_Deregister gatt_if=8
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(1083)] gatt_get_ch_state: ch_state=4
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(311)] gatt_is_app_holding_linkgatt_if= 8not found;
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(363)] gatt_update_app_use_link_flag: is_add=0 chk_link=1
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(329)] gatt_update_app_hold_link_status
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(342)] attempt to remove nonexisting gatt_if=8
03-25 10:50:38.438  2530  3243 V bt_stack: [VERBOSE1:connection_manager.cc(161)] on_app_deregistered : app_id 0x08
03-25 10:50:38.439 10632 12217 D BluetoothAdapter: isLeEnabled(): ON
03-25 10:50:38.439   747   747 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired 
03-25 10:50:38.439   747   747 I vendor.qti.bluetooth@1.0-ibs_handler: DeviceWakeUp: Writing IBS_WAKE_IND
03-25 10:50:38.439   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_ACK: 0xFC
03-25 10:50:38.440   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_IND: 0xFD
03-25 10:50:38.440   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Writing IBS_WAKE_ACK
03-25 10:50:38.440  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=1, availableSpace=7
03-25 10:50:38.440  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.441  2530 26091 D BtGatt.GattService: registerScanner() - UUID=2ba3accf-934e-444e-aedf-59bacb48a1f7
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(175)] bta_gattc_register: state:2
03-25 10:50:38.441  2530  3243 I bt_stack: [INFO:gatt_api.cc(949)] GATT_Register bd5c0fc5-d114-5da6-32b1-efaefd65cbbb
03-25 10:50:38.441  2530  3243 I bt_stack: [INFO:gatt_api.cc(969)] allocated gatt_if=8
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1079)] GATT_StartIf gatt_if=8
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_utils.cc(254)] gatt_find_the_connected_bda start_idx=0
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_utils.cc(262)]  bda :ea:13:b3:78:21:f2
03-25 10:50:38.441  2530  2666 D BtGatt.GattService: onScannerRegistered() - UUID=2ba3accf-934e-444e-aedf-59bacb48a1f7, scannerId=8, status=0
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_utils.cc(266)]  found=1 found_idx=0
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_utils.cc(254)] gatt_find_the_connected_bda start_idx=1
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:gatt_utils.cc(266)]  found=0 found_idx=7
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_main.cc(361)] bta_gattc_hdl_event: Event:BTA_GATTC_INT_CONN_EVT
03-25 10:50:38.441  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_main.cc(385)] Ignore unknown conn ID: 8
03-25 10:50:38.441  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=1, availableSpace=8
03-25 10:50:38.442  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.442 10632 10804 D BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=8 mScannerId=0
03-25 10:50:38.442  2530 26091 D BtGatt.GattService: start scan with filters. callingPackage: com.mtr.mtrmobile
03-25 10:50:38.443  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=1, availableSpace=9
03-25 10:50:38.443  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.443  2530  3073 D BtGatt.ScanManager: configureRegularScanParams() - queue=3
03-25 10:50:38.443  2530  3073 D BtGatt.ScanManager: configureRegularScanParams() - ScanSetting LE 1M Scan mode=1ScanSetting LE Coded Scan mode=1 mLastConfiguredScanSettingLE1M=2 mLastConfiguredScanSettingLECoded=2scanPhy=255
03-25 10:50:38.443  2530  3073 D BtGatt.ScanManager: configureRegularScanParams - scanInterval LE 1M = 4096configureRegularScanParams - scanWindow LE 1M= 1024configureRegularScanParams - scanInterval LE Coded= 4096configureRegularScanParams - scanWindow LE Coded= 1024
03-25 10:50:38.443  2530  2666 D BtGatt.GattService: onScanParamSetupCompleted : 0
03-25 10:50:38.445  2530  3073 I BtGatt.ScanManager: msg.what = 0
03-25 10:50:38.445  2530  3073 D BtGatt.ScanManager: handling starting scan
03-25 10:50:38.446  2530  3073 D BtGatt.ScanManager: isAptXLowLatencyModeEnabled: false
03-25 10:50:38.478  2530  2666 D BtGatt.GattService: onScanFilterEnableDisabled() - clientIf=8, status=0, action=1
03-25 10:50:38.478  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.478  2530  3073 D BtGatt.ScanManager: Available Filter size: 6
03-25 10:50:38.478  2530  2666 D BtGatt.GattService: onScanFilterConfig() - clientIf=8, action = 0 status = 0, filterType=0, availableSpace=0
03-25 10:50:38.478  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.478  2530  3073 D BtGatt.ScanManager: configureFilterParamter 500 10000 1 0, deliveryMode=0
03-25 10:50:38.480  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=0, availableSpace=8
03-25 10:50:38.480  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.481  2530  2666 D BtGatt.GattService: onScanFilterConfig() - clientIf=8, action = 0 status = 0, filterType=0, availableSpace=0
03-25 10:50:38.481  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.481  2530  3073 D BtGatt.ScanManager: configureFilterParamter 500 10000 1 0, deliveryMode=0
03-25 10:50:38.484  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=0, availableSpace=7
03-25 10:50:38.484  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.484  2530  2666 D BtGatt.GattService: onScanFilterConfig() - clientIf=8, action = 0 status = 0, filterType=0, availableSpace=0
03-25 10:50:38.484  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.484  2530  3073 D BtGatt.ScanManager: configureFilterParamter 500 10000 1 0, deliveryMode=0
03-25 10:50:38.486  2530  2666 D BtGatt.GattService: onScanFilterParamsConfigured() - clientIf=8, status=0, action=0, availableSpace=6
03-25 10:50:38.486  2530  2666 D BtGatt.ScanManager: callback done for scannerId - 8 status - 0
03-25 10:50:38.486  2530  3073 D BtGatt.ScanManager: configureRegularScanParams() - queue=4
03-25 10:50:38.487  2530  3073 D BtGatt.ScanManager: configureRegularScanParams() - ScanSetting LE 1M Scan mode=2ScanSetting LE Coded Scan mode=2 mLastConfiguredScanSettingLE1M=1 mLastConfiguredScanSettingLECoded=1scanPhy=255
03-25 10:50:38.487  2530  3073 D BtGatt.ScanManager: configureRegularScanParams - scanInterval LE 1M = 4096configureRegularScanParams - scanWindow LE 1M= 4096configureRegularScanParams - scanInterval LE Coded= 4096configureRegularScanParams - scanWindow LE Coded= 4096
03-25 10:50:38.487  2530  2666 D BtGatt.GattService: onScanParamSetupCompleted : 0
03-25 10:50:38.538   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
03-25 10:50:38.744  2530  3305 D Avrcp_ext: AudioManager Player: ID:23 -- type:android.media.SoundPool -- u/pid:10082/2552 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
03-25 10:50:38.744  2530  3305 D Avrcp_ext: AudioManager Player: ID:15 -- type:android.media.SoundPool -- u/pid:1000/1467 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
03-25 10:50:38.744  2530  3305 D Avrcp_ext: AudioManager Player: ID:31 -- type:android.media.SoundPool -- u/pid:1027/3985 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
03-25 10:50:38.744  2530  3305 D Avrcp_ext: AudioManager isPlaying: false
03-25 10:50:38.885  3938  3938 W libwatcher_bina: type=1400 audit(0.0:62328): avc: denied { read } for name="file-nr" dev="proc" ino=1896752 scontext=u:r:untrusted_app_27:s0:c150,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
03-25 10:50:39.497   747  3246 I vendor.qti.bluetooth@1.0-ibs_handler: DeviceSleep: TX Awake, Sending SLEEP_IND
03-25 10:50:39.498   747  3246 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK OFF
03-25 10:50:39.648   747  3081 D vendor.qti.bluetooth@1.0-wake_lock: Release wakelock is released 
03-25 10:50:40.649   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_IND: 0xFD
03-25 10:50:40.649   747  3241 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
03-25 10:50:40.651   747  3241 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired 
03-25 10:50:40.651   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Writing IBS_WAKE_ACK
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(1083)] gatt_get_ch_state: ch_state=4
03-25 10:50:40.652  2530  3243 I bt_stack: [INFO:gatt_main.cc(916)] gatt_data_process op_code = 27, msg_len = 5
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_cl.cc(620)] gatt_process_notification
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_auth.cc(364)] gatt_get_link_encrypt_status status=0x0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:3 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0003
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:4 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0004
03-25 10:50:40.652  2530  3243 E bt_btif : bta_gattc_process_indicate, ignore HID ind/notificiation
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:5 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0005
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:6 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0006
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:7 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0007
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:8 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0008
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:9 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x0009
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_utils.cc(346)] Notification registered!
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1212)] bta_gattc_proc_other_indication: check p_data->att_value.handle=23 p_data->handle=0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1216)] is_notify1
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:bta_gattc_act.cc(1309)] bta_gattc_cmpl_cback: conn_id:10 op:6 status:0
03-25 10:50:40.652  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(1268)] GATT_GetConnectionInfor conn_id=0x000a
03-25 10:50:40.692   747  3241 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
03-25 10:50:40.692   747  3241 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK OFF
03-25 10:50:40.844   747  3081 D vendor.qti.bluetooth@1.0-wake_lock: Release wakelock is released 
03-25 10:50:41.415  3938  3938 W libwatcher_bina: type=1400 audit(0.0:62329): avc: denied { read } for name="file-nr" dev="proc" ino=1896752 scontext=u:r:untrusted_app_27:s0:c150,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
03-25 10:50:42.443  2552  2552 D NetworkController.WifiSignalController: Change in state from: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi 5 Icons),activityIn=true,activityOut=true,rssi=-58,lastModified=03-25 10:50:36,ssid="PatchWork",wifiGenerationVersion=5,isReady=false,isTransient=false,statusLabel=null
03-25 10:50:42.443  2552  2552 D NetworkController.WifiSignalController: to: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi 5 Icons),activityIn=false,activityOut=true,rssi=-58,lastModified=03-25 10:50:36,ssid="PatchWork",wifiGenerationVersion=5,isReady=false,isTransient=false,statusLabel=null
03-25 10:50:43.186  4093 12688 D FileOperator: Mode change to WRITE_MODE!
03-25 10:50:43.995  3938  3938 W libwatcher_bina: type=1400 audit(0.0:62330): avc: denied { read } for name="file-nr" dev="proc" ino=1896752 scontext=u:r:untrusted_app_27:s0:c150,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
03-25 10:50:44.142  1467 19845 I BatteryService: shutdownIfLowCurrentLocked batteryLevel = 94 , hasChargingCurrent = true(isPowered=true,batteryCurrent=263,hardware=qcom) , hitShutdownVoltage = true(batteryVoltage=4330,mBatteryMinVoltage=-1) , isSystemReady = true
03-25 10:50:44.144  2552  2552 D BatteryController: mPluggedIn = true;mCharging =true; status=2; level=94
03-25 10:50:44.145  2552  2552 I BatteryView: updateShowPercent showPercent: 1 mUseSmallBatteryLevel: true mAllowShowPercentage: true
03-25 10:50:44.145  2552  2552 I BatteryView: updateShowPercent mLevel: 94 mCharging: true
03-25 10:50:44.145  2552  2552 I BatteryMeterDrawableBase: isHideWaring mHideWaring: false
03-25 10:50:44.146  2552  2552 I BatteryView: updateShowPercent showPercent: 1 mUseSmallBatteryLevel: true mAllowShowPercentage: true
03-25 10:50:44.146  2552  2552 I BatteryView: updateShowPercent mLevel: 94 mCharging: true
03-25 10:50:44.146  2552  2552 I BatteryMeterDrawableBase: isHideWaring mHideWaring: false
03-25 10:50:44.146  2552  2552 I BatteryView: updateShowPercent showPercent: 1 mUseSmallBatteryLevel: true mAllowShowPercentage: true
03-25 10:50:44.146  2552  2552 I BatteryView: updateShowPercent mLevel: 94 mCharging: true
03-25 10:50:44.146  2552  2552 I BatteryMeterDrawableBase: isHideWaring mHideWaring: false
03-25 10:50:44.147 28517 28517 I [BatteryProtectApp]: ACTION_BATTERY_CHANGED -> Temprature : 32.0
03-25 10:50:44.147 28517 28517 I [BatteryProtectApp]: DetectBatteryService: MaxTempShutDown : false
03-25 10:50:44.147 28517 28517 I [BatteryProtectApp]: DetectBatteryService: LowTempShutDown : false
03-25 10:50:44.149 28517 28517 I [BatteryProtectApp]: IS_SUPPORT_DECREASE_CHARGING : true
03-25 10:50:44.666 10632 12217 D BluetoothAdapter: isLeEnabled(): ON
03-25 10:50:44.666  2530  2548 D BtGatt.GattService: stopScan() - queue size =4
03-25 10:50:44.667  2530  3073 I BtGatt.ScanManager: msg.what = 1
03-25 10:50:44.667  2530  2548 D BtGatt.GattService: unregisterScanner() - scannerId=8
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_api.cc(992)] GATT_Deregister gatt_if=8
03-25 10:50:44.668   747   747 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(1083)] gatt_get_ch_state: ch_state=4
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(311)] gatt_is_app_holding_linkgatt_if= 8not found;
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(363)] gatt_update_app_use_link_flag: is_add=0 chk_link=1
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(329)] gatt_update_app_hold_link_status
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:gatt_main.cc(342)] attempt to remove nonexisting gatt_if=8
03-25 10:50:44.668  2530  3243 V bt_stack: [VERBOSE1:connection_manager.cc(161)] on_app_deregistered : app_id 0x08
03-25 10:50:44.668 10632 12217 D BluetoothAdapter: isLeEnabled(): ON
03-25 10:50:44.669   747   747 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired 
 


[TOPIC: post.html]
#382

kakula

[GLOBAL: userInfoPane.html]
kakula
  • Contributor

  • 112 posts
  • Corona SDK

  • try to declare the plugin outside the function at the top of the lua file (once)
local qrscanner = require('plugin.qrscanner')
  • try using a simpler code first like this without nested functions:
local function listener(event)
  if not event.isError then
        print(event.message)
  end
end

qrscanner.show{listener = listener}

if this works with you then your problem would be related to the way you are calling functions and events

 

if it does not .... it would be a compatibility issue with the phone you are using which is more likely since it is working on other phones

 

Regards,

Tariq



[TOPIC: post.html]
#383

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 91 posts
  • Corona SDK

It seems working now after I moved out the line of "required"




[topic_controls]
« Page 16 of 16 14 15 16
 
[/topic_controls]

Also tagged with one or more of these keywords: release, android, ios