Deploy latency on your Blackberry10 device

I am trying to run the Blackberry BlackBerry application on my Blackberry 10 device. I am getting the following error.

$ platforms/blackberry10/cordova $ ./build [INFO] Populating application source [INFO] Parsing config.xml [INFO] Generating output files [INFO] Package created: /Users/pavunkumar/BlackBerry/bb10/platforms/blackberry10/build/simulator/bb10app.bar [INFO] Package created: /Users/pavunkumar/BlackBerry/bb10/platforms/blackberry10/build/device/bb10app.bar [INFO] BAR packaging complete $ ./target add pavunkumar 169.254.0.1 -t device --password 0613 --pin 335921E0 $ ./run blackberry10 --target=pavunkumar --devicepass 0613 [INFO] Target pavunkumar selected [INFO] The existing debug token is valid [INFO] Deploying debug token to target "pavunkumar" [INFO] Error: Cannot connect: Connect to /169.254.0.1:443 timed out. Please check IP address settings for the target. You may have to reboot the target. An error has occurred 

I turned on development mode on my phone. But I can request the mentioned IP address and I can telnet in the direction of 169.254.0.1 443.

What is the reason?

Note

I can install a sample of my own application in my z10 using the Momentics IDE

+6
source share
1 answer

It's hard to understand your problem without all the details, but from my experience, the biggest problems with cordova communications are related to Cross Source Resource Sharing (CORS). In your config.xml file you need something like:

  <access subdomains="true" uri="169.254.0.1"/> 

On the server side, you also need to enable CORS, so the headers should include:

  Access-Control-Allow-Origin "*" Access-Control-Allow-Methods "POST,GET,DELETE,PUT,OPTIONS" Access-Control-Allow-Headers "origin ...." 
0
source

All Articles