Titanium JIRA Archive
Appcelerator Community (AC)

[AC-395] High CPU Usage when use Sinch module

GitHub Issuen/a
ResolutionNot Our Bug
Resolution Date2015-11-30T11:26:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
ReporterMikhail Beregovoi
AssigneeMostafizur Rahman


We are creating application that helps people find a great partner to spend evening together. First app version will be for iPhone. The important application feature – give users the ability to call without disclosing their real numbers. We have found Sinch SDK as a solution (https://www.sinch.com/docs/ios/user-guide/). We are trying to use Sinch SDK and Titanium (http://appcelerator.com/). We cannot found SDK for Titanium and have created Titanium module based on this https://github.com/ludolphus/rebtel-sdk-titanium. We have used latest SDK from sinch.com - 3.4.2. We can implement this solution for iPhones 5,6 – call quality is good. But if one of the callers has iPhone 4/4s – call quality is very bad. We have checked CPU usage on iPhone 4 (when calling), result is about 60% for Sinch+Titanium app, and about 25% for Sinch xcode sample app. We think this difference is a cause of our problem. Now we trying to find workaround for this. In our iPhone 5,6 is installed iOS8, this devices has high-performance vs. iphone 4 therefore we don’t have this problem. However if we test this case with two xcode app – call quality is good. Let us know if you have any ideas on it, thank you. Detailed problem description: Titanium and Sinch integration problem: call quality on iPhone 4s is very bad. Environment: - Titanium SDK 3.5.0, - Mac OS 10.9.4, - Xcode 6.1, - iPhone 4s with iOS 7.1.2. - Sinch SDK 3.4.2. How to reproduce this issue: - Start first app on simulator, connect to Sinch and play any music on your MAC. - Start second app on iPhone 4, connect to Sinch and call first app. - Answer call in first app, on iPhone you can hear sound from your MAC. Result: sound is interrupted, call quality is very bad Video example: http://youtu.be/nq8ztcNtiLc, also see attached logs. But if we use xcode sample from sinch.com sound is good, example: http://youtu.be/mTvcpAqfz3E If you follow link below you can found all sources for test app. The sources contain: Titanium test project, Sinch module in folder ModulesSrc and Sinch SDK 3.4.2. After build Titanium makes xcode project that contains in build folder. https://www.dropbox.com/s/we5reayb972kbev/emptyproject.zip?dl=0




  1. Jebun Naher 2015-11-30

    Hello, This is a module issue, not appcelerator's bug. Thanks.

JSON Source