diff --git a/manifest.webapp b/manifest.webapp index 5037871..3175fa7 100644 --- a/manifest.webapp +++ b/manifest.webapp @@ -1,5 +1,5 @@ { - "version": "3.1.0", + "version": "3.1.1", "name": "Cache-on-Kai", "subtitle": "Geocaching for the rest of us", "description": "Go geocaching with KaiOS! Developed by a geocaching community member and officially authorized by geocaching.com through the Geocaching Authorized Developer program.", diff --git a/src/app.js b/src/app.js index 145d119..9b99ea7 100644 --- a/src/app.js +++ b/src/app.js @@ -82,7 +82,30 @@ if (app.useProduction == false) { // ======================================================================= // ======================================================================= // insert API details here... +if(app.useProduction == false) { + //=============================== + // Staging server details + app.rootAPIurl = "https://staging.api.groundspeak.com/v1/"; + app.rootSiteURL = "https://staging.geocaching.com"; + + // Authorization server details + app.config = { + client_id: "11BA3E15-D061-4AC7-A39A-F0BF8A8FBEC3", + client_secret: "2B6726F6-5B9B-4FF8-A01D-4C877BD30C2A", + redirect_uri: "https://caching-on-kai.com/", + authorization_endpoint: "https://staging.geocaching.com/oauth/authorize.aspx", + token_endpoint: "https://oauth-staging.geocaching.com/token", + requested_scopes: "*" + }; + + //================================ +} else { + //=============================== + // Production server details + + //================================ +} // ======================================================================= @@ -1936,7 +1959,7 @@ function firstRunSetup() { //console.log(`from first run: ShowCachesOnLoad = ${ShowCachesOnLoad}`); if(myUserAgent.search("Nokia") > 0) { - alert("A special note if you use any of the Nokia phones (8110, 6300, 8000, probably 2720): the 4G antenna interfers with the A-GPS ability to obtain an accurate lock on your location. Use the 'Phone Data Settings' button under the 'Settings' screen to jump over to the phone's settings and turn off 4G when you require an accurate GPS lock."); + //alert("A special note if you use any of the Nokia phones (8110, 6300, 8000, probably 2720): the 4G antenna interfers with the A-GPS ability to obtain an accurate lock on your location. Use the 'Phone Data Settings' button under the 'Settings' screen to jump over to the phone's settings and turn off 4G when you require an accurate GPS lock."); } if (ShowCachesOnLoad == "YesLoadCaches") {