From: nibha.sharma Date: Fri, 18 Aug 2017 10:28:30 +0000 (+0530) Subject: [TBT][PBAP,Push][NonACR][Added support for 5.x in push and added feature support... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af58d074e3b1191d12223a1bb9aca4f9b511f707;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][PBAP,Push][NonACR][Added support for 5.x in push and added feature support for PBAP requested by MCD] Change-Id: I9bb4374dd93cd07f1a5c94c91248eb2403d960b8 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 index bc9589c..1544331 100755 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 e518664..34373a7 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/model/tbt-list.c b/tbtcoreapp/src/model/tbt-list.c index fd84f7d..c8f9cab 100644 --- a/tbtcoreapp/src/model/tbt-list.c +++ b/tbtcoreapp/src/model/tbt-list.c @@ -537,7 +537,7 @@ static tbt_info tbtapps[] = .info = "Get All Phonebook vcards from PBAP Server", .result = 0, .required_features_count = 1, - .features_required = {FEATURE_NETWORK_BLUETOOTH} + .features_required = {FEATURE_NETWORK_BLUETOOTH,FEATURE_NETWORK_BLUETOOTH_PHONEBOOK_CLIENT} }, #endif diff --git a/tbtcoreapp/src/view/tbt-push-view.c b/tbtcoreapp/src/view/tbt-push-view.c index 7b78f73..d648372 100644 --- a/tbtcoreapp/src/view/tbt-push-view.c +++ b/tbtcoreapp/src/view/tbt-push-view.c @@ -622,7 +622,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;