[TBT][Push][NonACR][Added support for 5.x in push as requested by MCD] 32/144932/1
authornibha.sharma <nibha.sharma@samsung.com>
Fri, 18 Aug 2017 10:50:04 +0000 (16:20 +0530)
committernibha.sharma <nibha.sharma@samsung.com>
Fri, 18 Aug 2017 10:50:04 +0000 (16:20 +0530)
Change-Id: I2da5347b5f71e670b9e8df186a918932a0bebb1f
Signed-off-by: nibha.sharma <nibha.sharma@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk [changed mode: 0644->0755]
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk [changed mode: 0644->0755]
tbtcoreapp/src/view/tbt-push-view.c

old mode 100644 (file)
new mode 100755 (executable)
index 54a08b8..0e09fe5
Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ
old mode 100644 (file)
new mode 100755 (executable)
index feffa99..223e461
Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ
index 034ed1603b7d82052a7b8b6829e640cd095168e9..c1cd2a4842a2eae3c7b8a25c2b8eaf676d2932a9 100644 (file)
@@ -1088,7 +1088,25 @@ static char* push_service_get_server_address(char* reg_id)
        } else if (strncmp(reg_id, "06", 2) == 0) {
                server_address =
                                "https://apchina.push.samsungosp.com.cn:8090/spp/pns/api/push";
-       } else {
+       } else if (strncmp(reg_id, "50", 2) == 0) {
+               server_address =
+                               "https://useast.gateway.push.samsungosp.com:8090/spp/pns/api/push";
+       }else if (strncmp(reg_id, "52", 2) == 0) {
+               server_address =
+                               "https://apsoutheast.gateway.push.samsungosp.com:8090/spp/pns/api/push";
+       }else if (strncmp(reg_id, "53", 2) == 0) {
+               server_address =
+                               "https://euwest.gateway.push.samsungosp.com:8090/spp/pns/api/push";
+       }else if (strncmp(reg_id, "54", 2) == 0) {
+               server_address =
+                               "https://apnortheast.gateway.push.samsungosp.com:8090/spp/pns/api/push";
+       }else if (strncmp(reg_id, "55", 2) == 0) {
+               server_address =
+                               "https://apkorea.gateway.push.samsungosp.com:8090/spp/pns/api/push";
+       }else if (strncmp(reg_id, "56", 2) == 0) {
+               server_address =
+                               "https://apchina.gateway.push.samsungosp.com.cn:8090/spp/pns/api/push";
+       }else {
                DBG("REG_ID has a wrong prefix");
        }
        return server_address;