mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
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:
@@ -45,7 +45,7 @@ import android.util.Log;
|
||||
* AppEngine client. Handles auth.
|
||||
*/
|
||||
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_TOKEN_TYPE = "ah";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "__MSG_app_name__",
|
||||
"description": "__MSG_app_desc__",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"default_locale": "en",
|
||||
"icons": {
|
||||
"16": "icon_16.png",
|
||||
|
||||
@@ -26,10 +26,11 @@ if (deviceRegistrationId == undefined || deviceRegistrationId == null) {
|
||||
// use javascript console
|
||||
var host = localStorage['c2dmHost'];
|
||||
if (host == undefined) {
|
||||
// This won't work very well, there is a cert validation issue (cert
|
||||
// is for *.appspot.com ), workaround is to open the URL in the browser
|
||||
// and accept the cert warnings.
|
||||
host = "9.chrometophone.appspot.com";
|
||||
// This won't work very well if the URL is x.chrometophone.appspot.com,
|
||||
// there is a cert validation issue (cert is for *.appspot.com ),
|
||||
// workaround is to open the URL in the browser and accept the cert
|
||||
// warnings.
|
||||
host = "chrometophone.appspot.com";
|
||||
}
|
||||
var baseUrl = 'https://' + host;
|
||||
var sendUrl = baseUrl + '/send?ver=' + apiVersion;
|
||||
|
||||
Reference in New Issue
Block a user