If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

Reply
New Contributor
maverick42
Posts: 5
Registered: ‎09-07-2013
My Device: BB 9300
My Carrier: Bouygues télécom

PHONEGAP and BES environment ajax call failed

Hi,

I develop an application with phonegap 2.9. 

 

When I install the application on a "clean" new device (OS 6.0 / OS 7.1) the ajax calls for my webservices works fine and perfectly.

But when I connect the BB device on the BES server of my company the ajax calls does not work with the message "error requesting ressource"

 

All works fine on android, iphone and all Blackberry simulators.

 

I don't find any phonegap parameter to resolve this problem.

 

Perhaps there is a policy rules on the BES server ?

 

Thanks you in advance

Frederik

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: PHONEGAP and BES environment ajax call failed


maverick42 wrote:

 

Perhaps there is a policy rules on the BES server ?

 

 


This could be the problem, but you would need to check with your BES admin to determine if it is the case.

 

Make sure you have appropriate permissions within your app, the URL you are trying to reach is accessible (test in the browser), and if using HTTPS ensure the certificate is installed and custom HTTPS connections are supported through your BES.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
maverick42
Posts: 5
Registered: ‎09-07-2013
My Device: BB 9300
My Carrier: Bouygues télécom

Re: PHONEGAP and BES environment ajax call failed

Hi,

 

I developed a "web app"lication (so not phonegap, just html5/javascript)  who calls the same web services. It work's fine on all devices (include all Blackerry terminal !). Also I don't need any APN parameters.

 

I don't use any HTTPS protocols.

 

Perhaps you could guide me to the parameters that must be adjusted on the BES server ??

 

Thanks

 

Frédérik

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: PHONEGAP and BES environment ajax call failed

Have you white-listed the URL in your app? 

Is the connection being routed through the BES?

 

It sounds like this issue is either app or BES related. For the app you would need to post to the WebWorks/HTML5 board. For BES support you would need to post to the BES board. But before going anywhere else you will need to isolate the component causing the issue.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
maverick42
Posts: 5
Registered: ‎09-07-2013
My Device: BB 9300
My Carrier: Bouygues télécom

Re: PHONEGAP and BES environment ajax call failed

>Have you white-listed the URL in your app? 

Yes. My app works fine on a clean BB device (without any BES connection)

 

Is the connection being routed through the BES?

> I read on different post that when you are connected to a BES server all HTTP traffic through it (this is probably why it does not work).

 

>you will need to isolate the component causing the issue.

Perhaps, parameters on the BES. but which ones? 

 

Frederik

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: PHONEGAP and BES environment ajax call failed

Your app can control which route it uses, BES, BIS, carrier etc. By default the app would be using the BES.

 

For further support I would recommend posting to the BES Support board. If the app is functioning properly then there's not much that can be done on the development board I'm afraid.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
maverick42
Posts: 5
Registered: ‎09-07-2013
My Device: BB 9300
My Carrier: Bouygues télécom

Re: PHONEGAP and BES environment ajax call failed

[ Edited ]

Your app can control which route it uses, BES, BIS, carrier etc. By default the app would be using the BES.

>oh good idea !

 

actually my config.xml

 

<rim:connection timeout="60000">
<id>BIS-B</id>
<id>TCP_WIFI</id>
<id>TCP_CELLULAR</id>
<id>MDS</id>
<id>WAP2</id>
<id>WAP</id>
</rim:connection>

 

 

Please use plain text.
New Contributor
maverick42
Posts: 5
Registered: ‎09-07-2013
My Device: BB 9300
My Carrier: Bouygues télécom

Re: PHONEGAP and BES environment ajax call failed

I tested with this config.xml

 

<rim:connection timeout="25000">
<id>TCP_WIFI</id>
<id>TCP_CELLULAR</id>
<id>WAP2</id>
<id>WAP</id>
<id>MDS</id>
<id>BIS-B</id>
</rim:connection>

 

Without any result on 3G test and WIFI test. Nevertheless, it was a great idea  

 

So, I'm desesperate .... :No:

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: PHONEGAP and BES environment ajax call failed

Have you checked your app's permissions? Is it able to render remote web pages other than the one used in the AJAX call? Can it render the page hosted in the AJAX call?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.