[TBT][Push][NonACR][Added support for 5.x in push as requested by MCD] 45/144945/1
authornibha.sharma <nibha.sharma@samsung.com>
Fri, 18 Aug 2017 11:43:44 +0000 (17:13 +0530)
committernibha.sharma <nibha.sharma@samsung.com>
Fri, 18 Aug 2017 11:43:44 +0000 (17:13 +0530)
Change-Id: I5705a1183eadce527173e6ee88702ef371304074
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 6ba3935..f445ee3
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 e5a6042..5f02fb3
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;