Update change log and spec for wrt-plugins-tizen_0.4.54
authorDongjin Choi <milkelf.choi@samsung.com>
Sat, 13 Jul 2013 14:40:49 +0000 (23:40 +0900)
committerDongjin Choi <milkelf.choi@samsung.com>
Sat, 13 Jul 2013 14:40:49 +0000 (23:40 +0900)
[model] REDWOOD
[binary_type] PDA
[customer] OPEN

[Issue] N/A
[Problem] frequent launch error in RSA.
[Cause] appcontrol timeout.
[Solution] retry mechanism addision.

[Issue] TDIS-6899
[Problem] sent message can not be seen and no confirmation message on Chatter
[Cause] use connection_get_type for network state check
[Solution] use connection_get_cellular_state for network state check

[team] WebAPI
[request] N/A
[horizontal_expansion] N/A

UnitTC passed.

packaging/wrt-plugins-tizen.spec
src/DataControl/SqlDataControlConsumer.cpp
src/Messaging/Sms.cpp

index 6f58449..bb524f3 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       wrt-plugins-tizen
 Summary:    JavaScript plugins for WebRuntime
-Version:    0.4.53
+Version:    0.4.54
 Release:    0
 Group:      Development/Libraries
 License:    Apache License, Version 2.0
index 0f719d8..1c30f06 100644 (file)
@@ -1149,7 +1149,19 @@ void SQLDataControlConsumer::SendAppControlLaunchToProvider(void* event)
                        ThrowMsg(WrtDeviceApis::Commons::PlatformException, "no type request type");            
                }
 
-               int pid = appsvc_run_service(passData, reqId, sqldataControlCommonCallback, (void*)NULL);
+               int pid = 0;
+
+               for (int index = 0; index < 3; index++)
+               {
+                       pid = appsvc_run_service(passData, reqId, sqldataControlCommonCallback, (void*)NULL);
+                       
+                       if (pid >= 0) 
+                               break;
+
+                       usleep(300 * 1000);
+                       LoggerD("Launch Retry" << (index + 1));
+               }
+
 
                if (pid < 0) 
                {
index deea5d7..e98b951 100644 (file)
@@ -368,12 +368,12 @@ bool Sms::getCellularOn()
     auto cellularOn = true;
     void* connectionHandle;
     if (CONNECTION_ERROR_NONE == connection_create(&connectionHandle)) {
-        connection_type_e connectionType;
-        if (CONNECTION_ERROR_NONE == connection_get_type(connectionHandle,
-                                                         &connectionType)) {
-            if (CONNECTION_TYPE_CELLULAR != connectionType) {
+        connection_cellular_state_e cellularState;
+        if (CONNECTION_ERROR_NONE == connection_get_cellular_state (connectionHandle,
+                                                         &cellularState)) {
+            if (CONNECTION_CELLULAR_STATE_OUT_OF_SERVICE  == cellularState || CONNECTION_CELLULAR_STATE_FLIGHT_MODE == cellularState) {
                 cellularOn = false;
-                LoggerW("Cellular connection is not active. GSM features off.");
+                LoggerW("Cellular State Error" << cellularState);
             }
         } else {
             LoggerE("Can't obtain state of cellular connection");