Help. Testing on Local Host
By dareme
at 2016-04-11
0 collector • 1155 pageviews
Anybody here testing it on localhost? i mean the android app .Does anyone help me on how.
Thank you guys.
- Requires Login
You can bind the LAN IP of Server as domain name for the API, such as 192.168.1.1.
Just like this.
Reply to #4 @dareme :
Your IP address.
Hey i just try to put it online and it's work the website, well of course the api and the mobile version i create a subdomain. But when i try in android app Toast message always Network error
APIAddress:
public static final String DOMAIN_NAME = "daremee.net.com" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "m.daremee.net.com" + WEBSITE_PATH; public static final String BASIC_API_URL = "api.daremee.net.com" + WEBSITE_PATH;
htaccess for API
#强制重定向到带www的顶级域名 RewriteEngine On RewriteCond %{HTTP_HOST} ^daremee.net.com$ [NC] RewriteRule ^(.*)$ http://www.daremee.net.com/$1 [L,R=301] #For SSL #RewriteCond %{HTTP_HOST} ^daremee.net.com/$ [NC] #RewriteCond %{SERVER_PORT} 80 #RewriteRule ^(.*)$ http://www.daremee.net.com/$1 [L,R=301] #RewriteCond %{HTTP_HOST} ^api.daremee.net.com$ [NC] #RewriteCond %{SERVER_PORT} 80 #RewriteRule ^(.*)$ http://api.daremee.net.com/$1 [L,R=301]
Reply to #6 @dareme :
public static final String DOMAIN_NAME = "http://daremee.net.com" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "http://m.daremee.net.com" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://api.daremee.net.com" + WEBSITE_PATH;
http://
Reply to #8 @dareme :
Have you resolve the API domain name?
Reply to #10 @dareme :
Try accessing the API domain name in your Android browser and take a screenshot.
when i go to my main domain and login. and go to api domain and enter my user and pass it wont log in me . my user and pass is correct but it said wrong password. and when i try to go in my mobile domain the style is just like website it not mobile style. and when i go to main domain my avatar is D stand for 'Dareme' but when i goto mobile site the avatar is letter K