From: nibha.sharma Date: Fri, 18 Aug 2017 11:43:44 +0000 (+0530) Subject: [TBT][Push][NonACR][Added support for 5.x in push as requested by MCD] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3f658c69cdaacfd99009bcaafad808d45665005;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Push][NonACR][Added support for 5.x in push as requested by MCD] Change-Id: I5705a1183eadce527173e6ee88702ef371304074 Signed-off-by: nibha.sharma --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk old mode 100644 new mode 100755 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 diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk old mode 100644 new mode 100755 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 diff --git a/tbtcoreapp/src/view/tbt-push-view.c b/tbtcoreapp/src/view/tbt-push-view.c index 034ed16..c1cd2a4 100644 --- a/tbtcoreapp/src/view/tbt-push-view.c +++ b/tbtcoreapp/src/view/tbt-push-view.c @@ -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;