Is it possible to limit my custom app to one specific server?

Is it possible to limit my custom app to one specific server? I want the user to automatically connect to a specific server and be redirected to the login screen, without having to enter the servers adress. I read in a post from 2018 that this is not possible, but since a lot has changed since then, i wanted to ask if this is a possibility now.
Thanks :slight_smile:

Are you talking about customized mobile apps? If yes, you need to use the “single-server” branch as mentioned in the whitelabelling doc: https://docs.rocket.chat/guides/developer/mobile-apps/whitelabeling-mobile-apps

The drawback is that this is not following the dev branch, so you’re tied to the last version where the “single-server” was created …

Yes, we are using the single-server branch, but in the whitelabeling doc it is not mentioned how to restrict the app to one server. Currently when launching the app the standard screen where you can enter the server url comes up

Did you make the entries in app.json before compiling?

No, what entry do i have to add?

It should look like this:

{
“name”: “RocketChatRN”,
“share”: “ShareRocketChatRN”,
“displayName”: “RocketChatRN”,
“server”: “https://myserverdomain.de”,
“appGroup”: “group.chat.rocket.myappgroup”,
“appStoreID”: “1272915472”
}

“server” is the URL to your Rocket Chat server, appGroup must be exactly the app group you’ve compiled the app for. appStoreID seems to be optional …

1 Like