Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Smartlook.start() freezes app functions for 2 seconds #81

Open
wif70068 opened this issue May 21, 2024 · 3 comments
Open

[Android] Smartlook.start() freezes app functions for 2 seconds #81

wif70068 opened this issue May 21, 2024 · 3 comments
Assignees

Comments

@wif70068
Copy link

With Capacitor 5 on Android, executing Smartlook.start() causes certain native functions, such as native HTTP requests (e.g., via CapacitorHTTP) or the initialization of the OneSignal SDK, to freeze for 2 seconds.

During this time, logcat repeats the following for the entire 2 seconds:

05-21 02:25:27.702 879 879 I vendor.qti.hardware.servicetracker@1.2-service: bindService is called for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJob and for client system 05-21 02:25:27.702 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJobare :1 05-21 02:25:27.702 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for client : systemare :24 05-21 02:25:27.706 879 879 I vendor.qti.hardware.servicetracker@1.2-service: unbindService is called for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJob and for client system 05-21 02:25:27.721 879 879 I vendor.qti.hardware.servicetracker@1.2-service: bindService is called for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJob and for client system 05-21 02:25:27.721 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJobare :1 05-21 02:25:27.721 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for client : systemare :24 05-21 02:25:27.732 879 879 I vendor.qti.hardware.servicetracker@1.2-service: bindService is called for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJob and for client system 05-21 02:25:27.732 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJobare :1 05-21 02:25:27.733 879 879 I vendor.qti.hardware.servicetracker@1.2-service: total connections for client : systemare :24 05-21 02:25:27.738 879 879 I vendor.qti.hardware.servicetracker@1.2-service: unbindService is called for service : com.test.app/com.smartlook.android.job.worker.session.UploadSessionJob and for client system

This is observed as a 2-second delay on app startup because Smartlook is called at deviceready.

@wif70068
Copy link
Author

is this repository still active?

@c0mtru1se
Copy link
Collaborator

Hi! Thanks for the report and sorry for the delayed response, we've been busy with our Cisco integration stuff.
If this is still persisting for you, could you please kindly try to update to a newly release version, 2.0.6? It uses our latest Android SDK with a lot of fixes & improvements.
Feel free to ping me here should the issue still persist and we can take it from there.
Thank you!

@c0mtru1se c0mtru1se self-assigned this Jul 17, 2024
@c0mtru1se c0mtru1se added this to the SDK 2.x.x Cordova support milestone Jul 17, 2024
@wif70068
Copy link
Author

doesn't seem to be an issue anymore with the new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants