Azure Communication Services (ACS) library file size too big (120MB)

GenixPRO 121 Reputation points
2022-03-08T23:42:46.187+00:00

Hi Team,

We’re using the sample code below.
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-teams-interop?pivots=platform-android

We have added below mentioned library:

implementation 'com.azure.android:azure-communication-calling:2.0.0'

  1. The Azure Communication Services (ACS) features that our native Android & iOS app need are - 1. Video for live classes and 2. Group + 1:1 Chat communication (along with user management & room handling as supported by Microsoft Teams)
  2. Adding above mentioned library increases our APK size from 20MB to nearly 140 MB (120 MB added from library). Google Playstore has a 150 MB APK file size limit. This library size (120MB) will severely restrict our current & future prod. development & release cycles. We'll have no space left to add new features.
  3. Comparable platforms (Twilio, Agora, Zoom) libraries are between 20-50 MB and do not limit our prod. development as severely.
  4. We want to remain in MS ecosystem and be able to integrate ACS/MS Teams video & chat support for online meetings.

Is the video & chat library really 120MB? What are we missing? This file size will restrict most apps from Playstore. Appreciate your feedback in identifying a workable solution.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,256 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2022-03-14T07:20:50.897+00:00

    @GenixPRO ,

    Just following from my comments’, to summarize the answer.

    1.2.3 - It looks like you’re building the application as AAB file and uploading that AAB to Play Store instead of uploading APK file.

    One of our engineers has written a script which demonstrates how to build debug variant AAB artifact, and then install application to local device from AAB.
    Kindly check it out here

    The core Android Calling SDK is around 50MB. This sample seems to include several dependencies which are increasing the size.

    Thanks for your interest in your ACS and taking time to share your valuable feedback.


    To benefit the community find the right answers, please do mark the post which was helpful by clicking on Accept Answer’ & ‘Up-Vote’.

    0 comments No comments

  2. GenixPRO 121 Reputation points
    2022-03-17T04:28:53.363+00:00

    Hi @Anonymous

    Thanks for your reply. We've tried AAB and that brings the size down to ~70MB (20 MB our app + 50MB library). APK size is ~140MB thus a limitation.

    1. We'd like to add video + audio + chat (group & 1:1). Are you able to direct us to the right libraries to support these functionalities for both Android & iOS?
    2. Are you able to share links of apps built on ACS/MS Teams that offer online meetings + chat function. Would like to explore how such apps are managing file size limitations with library implementation.

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.