Phonegap developer app error - ios

I am developing an app using phonegap and their developer app to help me along the way. However, I cannot connect to the server after running the command
cordova serve
from the root directory. It serves it up on port 8000 (by default) and I set a static IP address on my macbook to be 10.0.0.129. So when I enter 10.0.0.129:8000 into the "Server Address" field in the developer app I get 'Error!' followed by 'Timeout!'
Could someone please provide an explanation of this and how to fix it?
Many thanks!

I think you need to create a .cordova directory in your project directory, then use phonegap serve, because cordova serve doesn't work with the app.

Related

How to set in meteor --mobile-server when using nginx

I have on digitalocean my meteor application running but when I try and test on my iphone the app I am not able to see the login screen.
I don't think it's version dependent and I therefore do not list them. I am happy to provide all the config files if this helps but want to make sure that I am not missing anything conceptually.
My setup is that on my digitalocean (not real URL: https://ABC123.com) server I run the meteor app and the app works fine at the URL. The meteor application has been deployed a while back and is a different release from what I am testing now locally. Source code is quite similar though and it never worked on the iphone. nginx is used to forward the URL domain to
proxy_pass http://127.0.0.1:3100;
Here is the issue now:
I run from my local mac:
meteor run ios-device --mobile-server https://ABC123.com
and run from xcode on the simulator or my iphone and get the attached screenshot. You can see that there is no login prompt which I believe is caused that I do not connect to the server on digitalocean.
It's a also surprising that with the command meteor runs on localhost:3000 as well. But it's probably not the issue.
The way it should look is the below which is taken from the web page:
Thanks already in advance for any responses.
This is resolved. Using Safari as a debugger I noticed that the connection to the server failed due to a non AC SSL certificate. So, after I fixed the SSL certificates it does connect now.

Test XCode app running on physical device with local server

I have searched high and low for a solution to this which I am sure must exist but I have failed to find one that works.
I am running XCode 7.3 and iOS 9.2 on an iPhone.
I have a test server running on 127.0.0.1:8000
I cannot get my app running on the iPhone to connect to either 127.0.0.1:8000 or 192.168.1.200:8000 (which is the local ip address of my server).
There must be a way to give the iPhone app access to the local server if only I knew how!
The best solution to this problem, that many app developers have, is to download ngrok which acts as a proxy website.
ngrok is insanely easy to use:
Download from https://ngrok.com/
Run: ngrok http 8000 in terminal (where 8000 is your port)
Cut and paste the displayed ngrok url (e.g. http://a021v2tc.ngrok.io) into your app
So simple. And works!
Check if iPhone connect the same wifi with your server.
You can use Fiddler as iPhone agent to get the detail error message.
There is the link how to capture traffic from IOS device.
here

Meteor JS Can connect to compose.io on everything except iOS device?

I have been working on an application and using compose.io as my database platform. I am able connect to compose in web browser and iOS simulator with:
MONGO_URL="mongodb://myUsername:myPassword#aws-us-east-1-portal.6.dblayer.com:11111/dbName" meteor (run , run ios)
However when I try the same process with run ios-device --mobile-server, or ios-device --mobile-server -p 127.0.0.1:3000 it just keeps creating a local database instance. In Meteor documentation it says may need developer account, but I am assuming that was outdated as of Xcode 7 testing on your own device was free, unless this does not count for database connections.
Any ideas, is my command line string incorrect, or is a developer account required? Maybe something else.
Thanks!
I was able to solve my issue by disabling my cellular network, so that my mobile device(iPhone) and local machine(Mac) were using the same network(Wifi) guaranteed. Be to delete any exiting instance your Meteor app your device before running the following while the device and local machine are on the same network.
MONGO_URL="mongodb://myUsername:myPassword#aws-us-east-1-portal.6.dblayer.com:11391/dbName" meteor run ios-device

meteor cordova build vs production server (no hot code push)

can't get my head around hot code push in my setup:
on server A (osx with xcode and add-platform ios) i built a meteor cordova app with
meteor run ios-device --mobile-server https://productionserver.com
(when i point my cordova app at my localhost:3000 hot code push is working just fine).
on server B (linux, nginx, some meteor instances on port 808x) i run
meteor --port=127.0.0.1:8080
server B runs without add-platform ios (linux), but i found an interesting discussion from slava here and did:
meteor add-platform firefoxos
and thought that hot code push would trigger with this stub.
when i change the code (client directory) on server B, the change is reflected when i call the web interface.
But in my cordova app no change is happening even after app restart.
can you please point me in the right direction?
how is the code push happening behind the scenes?
how should i set up my build/prod environment the make hot code push working?
thanks for your help
I got my app working. The problem was that I had removed android from the platforms list. I'm guessing you still have ios in your platforms.
Your Meteor setup strikes me as a little odd:
1. you say you have multiple Meteor instances on port 8080?
2. Also starting Meteor on a specific port uses command meteor --port 8080 and not the IP.
3. Does the app actually connect to the server? As in databases get synced and new information gets sent across?

Blackberry Connection refused when deploying Phonegap app to device

)
I want to deploy my app that is created with Phonegap to my BlackBerry Z10 device.
I created some Hello World basic app with Phonegap, then in the terminal (Mac OS Lion) I ran following command:
/Users/macbook/Documents/BB10APP/cordova/run BBZ10
Everythings seems to work fine, but in the end I get a connection error:
[BUILD] BAR packaging complete
Error: Error: Cannot connect: Connection to https://169.254.x.x:443 refused. Please check IP address settings for the target. You may have to reboot the target.
What could be the problem with the connection?
And is there some other tools that I can use to just send the app via USB to the device like on Android?
Thanks :-)
I found a solution if anyone wants to know:
You have to use the device IP address and not the developer IP that is found in the developer settings on the device (where you see your developer token).
And then it will work (don't ask me what the developer ip is for, just annoying to lead developers in a wrong direction).
The device ip can be found in some settings entry on the device (I don't remember in which unfortunately, but it is there). Just dont use the ip from the developer menu that wont work :-)
There are two IPs in Blackberry
IP that is appearing on bottom part of Controller EX. ( 192.168.139.129)
IP that is configured in Blackberry simulator (Security and Privacy -> Development Setting)
EX. ( 169.254.0.1)
Using Controller IP "Network connection problem" issue will be solved
D:\bbndk\hello\platforms\blackberry10\cordova>target.bat add mydevice 192.168.139.129 -t device --password 0000 --pin 00000000

Resources