Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

PhoneGap app not sending request to server

$
0
0
Hi,

I saw similar posts and tried their solutions but I was not making any progress so I was wondering if there is something in the way I am trying to send the request that's causing the problem.

I am using SmartGWT Pro 5.0p. And Cordova v 5.1.1.

My app is packaged as a phonegap app to run on android. The client makes a request using this code but I don't see anything reaching the server.

Code:

// added this line of code based on another thread in the forum
RPCManager.setActionURL("http://192.168.2.104:8080/MyApp/myapp/sc/IDACall");
               
DataSource ds = DataSource.get("person");
ds.setDataURL("http://192.168.2.104:8080/MyApp/myapp/sc/IDACall");

// prepare request               
Criteria crit = new Criteria();
crit.addCriteria("caller", "ft_mobile_login");
crit.addCriteria("email_id", uid);
crit.addCriteria("password", password);

DynamicForm df = new DynamicForm();
df.setDataSource(ds);

// send request to server
df.fetchData(crit, new DSCallback() {
        @Override
        public void execute(DSResponse response, Object rawData, DSRequest request) {

...

In PhoneGap's config.xml file the access parameter is set as follows. I left it that way.

Code:

<access origin="*" />
LogCat shows this output. The eglCodecCommon error shows up a lot even when there is no interaction with the app.

Code:

08-25 11:54:41.171: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)
08-25 11:54:41.171: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)
08-25 11:54:41.175: E/eglCodecCommon(2254): glUtilsParamSize: unknow param 0x00000b44
08-25 11:54:41.179: E/eglCodecCommon(2254): glUtilsParamSize: unknow param 0x00000bd0
08-25 11:54:41.189: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)
08-25 11:54:41.189: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)
08-25 11:54:41.446: I/chromium(2254): [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.", source: file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)
08-25 11:54:41.661: E/eglCodecCommon(2254): glUtilsParamSize: unknow param 0x00000b44
08-25 11:54:41.661: E/eglCodecCommon(2254): glUtilsParamSize: unknow param 0x00000bd0
08-25 11:54:41.675: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)
08-25 11:54:41.675: E/eglCodecCommon(2254): **** ERROR unknown type 0x0 (glSizeof,72)


Viewing all articles
Browse latest Browse all 4756

Trending Articles