Config loading on android
Posted: 05 Jul 2016, 11:31
Hey everyone! We have been working on an android game for some time and have recently started compiling the builds. Unfortunately we cant load SmartFox config on our devices for some reason. We use the usuall
This has been causing us some troubles, i have redirected the connect to
but for some reason we still have certain problems at some parts of the code (our client side sfs code was written by another developer on our team)
So my Question is: How do i load config file on an android? And is there a way to bypass it? (like making a config object then assigning it)
Note that sfs.LoadConfig(); returns a null reference (shouldnt it create a default or something?)
Code: Select all
"sfs.LoadConfig (Application.dataPath + "/" + remoteConfigFile);" Code: Select all
void OnConfigFail(BaseEvent e) { sfs.Connect("xxx.xxx.xxx.xxx", xxxx); }So my Question is: How do i load config file on an android? And is there a way to bypass it? (like making a config object then assigning it)
Note that sfs.LoadConfig(); returns a null reference (shouldnt it create a default or something?)