# New Android app not working with on-prem installation

**URL:** <https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608>\
**Category:** Community Support\
**Created:** [April 20, 2018, 11:50am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608 "2018-04-20T11:50:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![teecee](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@teecee](https://forums.rocket.chat/u/teecee)\
**Post date:** [April 20, 2018, 11:50am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/1 "2018-04-20T11:50:11Z")

</div>

The old Rocket.Chat+ Android-app had no issues connecting to my rocket.chat server installed on-prem, version 0.63.0.  
The new version gives me this error right after pressing “Connect”, before providing username/password:  
`ERROR Use JsonReader.setLenient(true) to accept malformed JSON at path $`

I see the same error message in this issue here: [https://github.com/RocketChat/Rocket.Chat.Android/issues/1057](https://github.com/RocketChat/Rocket.Chat.Android/issues/1057)

Anyone have any tips on this?

---

<div class="post-metadata">

**Author:** ![rafael.kellermann](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rafael.kellermann/32/783_2.png) [@rafael.kellermann](https://forums.rocket.chat/u/rafael.kellermann)\
**Post date:** [April 20, 2018, 12:01pm UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/2 "2018-04-20T12:01:22Z")

</div>

@teecee Thanks for opening the issue!

This is because the version of your server is too old and you’re not using the latest version of our Android app.

Here’s what you can do to solve it:

1. Update your server to 0.63.3;
2. Make sure you’re running latest version of the Android app (2.0.2 now); You can check the version of the app going to Settings -\> About under the left sidebar menu;

Let me know if that works for you please.

---

<div class="post-metadata">

**Author:** ![teecee](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@teecee](https://forums.rocket.chat/u/teecee)\
**Post date:** [April 20, 2018, 1:17pm UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/3 "2018-04-20T13:17:23Z")

</div>

@rafael.kellermann I just updated to 0.63.3 now, and I’m running the latest version from Play Store (2.0.2), and I still have the issue.

I’m running the server on OpenShift with a custom Docker-image, building from source. It’s behind reverse-proxy with https.

---

<div class="post-metadata">

**Author:** ![teecee](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@teecee](https://forums.rocket.chat/u/teecee)\
**Post date:** [April 20, 2018, 1:27pm UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/4 "2018-04-20T13:27:06Z")

</div>

Never mind… It’s mod\_security blocking… I have removed 5 rules by now, and it’s still firing new rules… Mostly “SQL injection anomaly”

---

<div class="post-metadata">

**Author:** ![rafael.kellermann](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rafael.kellermann/32/783_2.png) [@rafael.kellermann](https://forums.rocket.chat/u/rafael.kellermann)\
**Post date:** [April 20, 2018, 8:12pm UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/5 "2018-04-20T20:12:38Z")

</div>

@teecee I’m glad you found a way out… can we close this issue now?

---

<div class="post-metadata">

**Author:** ![teecee](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@teecee](https://forums.rocket.chat/u/teecee)\
**Post date:** [April 23, 2018, 6:48am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/6 "2018-04-23T06:48:20Z")

</div>

Yeah, it’s working now.

However, you guys should take a look at how it works behind mod\_security. It’s firing a lot’s of rules in the likes of “SQL Injections”.

---

<div class="post-metadata">

**Author:** ![jaco](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jaco](https://forums.rocket.chat/u/jaco)\
**Post date:** [April 25, 2018, 12:13pm UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/7 "2018-04-25T12:13:58Z")

</div>

Server upgrade to version 0.63.3 worked for us regarding the error mentioned above.

On some devices I had to reset application data and reconnect to the server for this to work.

---

<div class="post-metadata">

**Author:** ![zlc](https://avatars.discourse-cdn.com/v4/letter/z/7bcc69/32.png) [@zlc](https://forums.rocket.chat/u/zlc)\
**Post date:** [April 27, 2018, 8:13am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/8 "2018-04-27T08:13:03Z")

</div>

I have just downloaded the latest Android app. I could not figure out how to start a video call nor can I accept a video call from the app. Is it the case that the current version does not support video call? If not, is this feature going to be supported at some stage in the roadmap?

---

<div class="post-metadata">

**Author:** ![rafael.kellermann](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rafael.kellermann/32/783_2.png) [@rafael.kellermann](https://forums.rocket.chat/u/rafael.kellermann)\
**Post date:** [April 30, 2018, 11:46am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/9 "2018-04-30T11:46:17Z")

</div>

Currently mobile application doesn’t support video/audio calls. They’re in the roadmap to our Q3 at the moment.

---

<div class="post-metadata">

**Author:** ![shubham](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shubham](https://forums.rocket.chat/u/shubham)\
**Post date:** [January 11, 2019, 7:00am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/10 "2019-01-11T07:00:52Z")

</div>

can you please tell me the procedure how to do it

---

<div class="post-metadata">

**Author:** ![teecee](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@teecee](https://forums.rocket.chat/u/teecee)\
**Post date:** [January 14, 2019, 6:35am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/12 "2019-01-14T06:35:12Z")

</div>

Edit: Reply to prev. post  
I was looking in the error-log for the apache site. There I found out what rule IDs that where triggered, and compiled a rule like this (don’t think this is the complete list of rules though):

```
SecRule REQUEST_HEADERS:Host "chat.example.com" \
"id:'000001', \
phase:1, \
t:none, \
ctl:ruleRemoveById=960015, \
ctl:ruleRemoveById=960904, \
ctl:ruleRemoveById=958291, \
setvar:'tx.allowed_request_content_type=application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain', \
nolog, \
pass"
```

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [March 29, 2019, 6:04am UTC](https://forums.rocket.chat/t/new-android-app-not-working-with-on-prem-installation/608/13 "2019-03-29T06:04:06Z")

</div>

> [@zlc](#):
>
> I have just downloaded the latest Android app. I could not figure out how to start a video call nor can I accept a video call from the app. Is it the case that the current version does not support video call? If not, is this feature going to be supported at some stage in the roadmap?

This is now implemented FYI 🙂
