Changing URL to point to my server
Posted in General by apen sela Wed Dec 09 2015 16:54:06 GMT+0000 (UTC)·5·Viewed 778 times
Hello,
Please how to I point android app to my own server.
And also do I have to open any port?
thanks
Aik Lok
Dec 10, 2015
Per Fabiano Sardenberg Kuss posted on Nov 20, 2015:
Alter endpoints in constructor in actor-platform/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/ActorSDK.java file
In ActorSDK.java, I notice this : tls://front1-mtproto-api-rev2.actor.im
I would assume this is the Actor's server, to be changed over ?
If so, thanks to Fabiano Sardenberg Kuss.
Aik Lok
Dec 11, 2015
Hi all, I spent all night all day trying to connect my ubuntu server. I did
#1: alter :
onConfigureActorSDK() {
ActorSDK.sharedActor().setDelegate(new ActorSDKDelegate());
ActorSDK.sharedActor().setPushId(209133700967L);
ArrayList<String> endpoints = new ArrayList<String>();
endpoints.add("my-ubuntu-ip");
endpoints.add("my-ubuntu-ip");
ActorSDK.sharedActor().setEndpoints(endpoints);
ActorStyle style = ActorSDK.sharedActor().style;
style.setMainColor(Color.parseColor("#529a88"));
}
#2: I too, altered, replaced tls://front1-mtproto-api-rev2.actor.im with my IP, in ActorSDK.java.
Tried all combinations, such as
- altered Application.java only, re-build APK.
- altered ActorSDK.java only, re-build APK
- alter both java files. re-build APK.
My andriod app fails to launch. As I am sure actor server starts ok.
Folks, anyone has idea ?
apen sela
Dec 14, 2015
As the support section states ,If you have not configured tls on your server then replace it with tcp.
https://actor.readme.io/docs/incorrect-endpoint-configuration
I have not tried it yet but you can try and let us know the outcome.
thanks
Ali
Aug 7, 2016
need help.
Ali
Aug 7, 2016
I am using Ubuntu 14.04 for setting up Actor Server. I performed every step mentioned in Actor-Bootstrap Documentation. When i add Public endpoint "tcp://192.168.1.101:9070" in my server.conf file and android client, they don't connect to each other.
When I debug the Actor Android Client App, it tries to connect to 192.168.1.101:9070 but fails to connect. I have tried disabling firewall in Ubuntu as well.
My Machine Ip is 192.168.1.101. I have started Actor Server but I used the NMap facility and all ports were blocked on machine while I was expecting port 9070 would be open.
PLEASE HELP