Skip to content

Commit

Permalink
Update API URL to circumvent block in Egypt
Browse files Browse the repository at this point in the history
It appears that subdomains of onesignal.com are not blocked by the Egyptian ISP TE Data (also known as WE)

Fixes OneSignal#919, OneSignal#883, OneSignal#859, OneSignal#855, OneSignal#849, OneSignal#847
  • Loading branch information
Muhannad Ajjan committed Jan 13, 2020
1 parent 645a699 commit 318a82d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void onFailure(int statusCode, String response, Throwable throwable) {}
static final String CACHE_KEY_GET_TAGS = "CACHE_KEY_GET_TAGS";
static final String CACHE_KEY_REMOTE_PARAMS = "CACHE_KEY_REMOTE_PARAMS";

private static final String BASE_URL = "https://onesignal.com/api/v1/";
private static final String BASE_URL = "https://api.onesignal.com/v1/";

private static final int THREAD_ID = 10000;
private static final int TIMEOUT = 120_000;
Expand Down Expand Up @@ -285,4 +285,4 @@ public void run() {
private static HttpURLConnection newHttpURLConnection(String url) throws IOException {
return (HttpURLConnection)new URL(BASE_URL + url).openConnection();
}
}
}

0 comments on commit 318a82d

Please sign in to comment.