Prepare for server push; bump extension version number (note that 2.2.0 of extension

never launched; now extension and Android app version in sync - should keep it this
way in future)
This commit is contained in:
burke.davey
2011-05-12 20:43:35 +00:00
parent b6ddd2925a
commit 40b3b2667d
3 changed files with 7 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ import android.util.Log;
* AppEngine client. Handles auth. * AppEngine client. Handles auth.
*/ */
public class AppEngineClient { public class AppEngineClient {
static final String BASE_URL = "https://9.chrometophone.appspot.com"; static final String BASE_URL = "https://chrometophone.appspot.com";
private static final String AUTH_URL = BASE_URL + "/_ah/login"; private static final String AUTH_URL = BASE_URL + "/_ah/login";
private static final String AUTH_TOKEN_TYPE = "ah"; private static final String AUTH_TOKEN_TYPE = "ah";

View File

@@ -1,7 +1,7 @@
{ {
"name": "__MSG_app_name__", "name": "__MSG_app_name__",
"description": "__MSG_app_desc__", "description": "__MSG_app_desc__",
"version": "2.2.0", "version": "2.3.0",
"default_locale": "en", "default_locale": "en",
"icons": { "icons": {
"16": "icon_16.png", "16": "icon_16.png",

View File

@@ -26,10 +26,11 @@ if (deviceRegistrationId == undefined || deviceRegistrationId == null) {
// use javascript console // use javascript console
var host = localStorage['c2dmHost']; var host = localStorage['c2dmHost'];
if (host == undefined) { if (host == undefined) {
// This won't work very well, there is a cert validation issue (cert // This won't work very well if the URL is x.chrometophone.appspot.com,
// is for *.appspot.com ), workaround is to open the URL in the browser // there is a cert validation issue (cert is for *.appspot.com ),
// and accept the cert warnings. // workaround is to open the URL in the browser and accept the cert
host = "9.chrometophone.appspot.com"; // warnings.
host = "chrometophone.appspot.com";
} }
var baseUrl = 'https://' + host; var baseUrl = 'https://' + host;
var sendUrl = baseUrl + '/send?ver=' + apiVersion; var sendUrl = baseUrl + '/send?ver=' + apiVersion;