Developers

Android Mobile App targeted area message character limit ?

Comments

3 comments

  • Avatar
    Gary Silvers

    There is no character limit on Android, the bottom sheet should contain the entire content and just scroll.  I've tested locally with a similarly long message but have not been able to recreate the truncation yet.  

  • Avatar
    Vitalijus Rudzinskas (Edited )

    Hi Gary,

    I have just created a test method to test if the mobile app truncates text:

    ```

    private void longTextTest(WebhookEvent webhookEvent)
    {
    String a="";

    String b ="\\nRetrieved on: 07-06-2018 09:30:58.531";
    for (int i =0;i<700;i++)
    {
    a = a+ "\\n"+i+""+b;
    }

    createTargetedMessage(webhookEvent, "", a , null);
    }


    ```

    This was invoked with /command and has created an app message on desktop app, ending with line 699.

    Also trying to set int i to 800 makes the message not being displayed in desktop app.

    Would it be possible to know the steps you took to reproduce the issue on your side? If you can share the code snippet it would be perfect. I just want to compare my approach with yours.

    Thanks!

  • Avatar
    Vitalijus Rudzinskas

    Hi guys, me again, just checked again, it is reproducible, the whole text in targetedMessage (lower screen AF app window) on mobile gets truncated to about 70-90 lines of text, when I try to set the text to about 1400 lines using code like this:

    private void longTextTest(WebhookEvent webhookEvent)
    {
    String a="";

    String b ="\\n \\nline of text";
    for (int i =0;i<700;i++)
    {
    a = a+ "\\n"+i+""+b;
    }

    createTargetedMessage(webhookEvent, "", a , null);
    }

    Were you guys able to reproduce it ?

    Because I just tested it again and I saw myself how the text on android mobile got truncated and there was no way to scroll down to see the full text. 

Please sign in to leave a comment.