Had PhoneGap working on iPhone - Now it isn't
laurels19031048 Jun 9, 2016 9:10 PMReally hard simplifying my question without putting in a lot of detail
Basically - I had working examples (tutorial and own example) using my iPhone and laptop, and now I can't get any working examples
Also I sat with a friend and tried to get working examples with his iPhone and laptop and we couldn't manage to do that either.
.... Details
This is my laptop setup
* A few months back (maybe January or February?) I downloaded and installed PhoneGap Developer on laptop
(Desktop Version PhoneGap v0.2.0)
and the Phonegap app on my iPhone (can't find anything that indicates a version number)
I used these two tutorials to install
http://docs.phonegap.com/getting-started/1-install-phonegap/desktop/
http://docs.phonegap.com/getting-started/2-install-mobile-app/
* Then, using the following tutorials, I learned how to create a sample project, and also do a little html editing and get another project working. These first tests were successful
http://docs.phonegap.com/getting-started/3-create-your-app/desktop/
http://docs.phonegap.com/getting-started/4-preview-your-app/desktop/
* In mid-May, still using the same desktop - Desktop Version PhoneGap v0.2.0 - and iPhone versions , I was successful in loading a sample app that I had created and tested on my browser, as I've been learning to work with JavaScript, CSS and HTML5. This test was somewhat successful. The app connected and ran, one of the buttons worked and I was able to click on and change some images as I had on my laptop version.
This was a sample app that I had also put into a posting on Blogger. I had external file links working for my images and my java script code. I was pretty pleased!
I went back to working on just learning these new-to-me languages
* This last week I had another sample app working on my laptop, and via Blogger. I went to test it on my iPhone. I was still using the same desktop (Desktop Version PhoneGap v0.2.0 ) and iPhone versions, with which I'd previously had success. I haven't done any new software installations on my laptop that I can recall.
* I got this alert on my iPhone
Of course I did a lot of retrying, triple and quadruple checking of the local url I need to connect to, quitting and restarting apps, restarting my laptop, my iPhone. I restarted our in home wifi.
I tried it again the next day. The problem continued.
* I then attempted to recreate a project from the original tutorial links (shown above). I got the same error.
* I consulted this faq
When I got to the ping stage, I got suspicious. Sitting down with the troubleshooting faq list above, and a friend at a Starbucks, we made sure that both our laptops and iPhones were using the same network. We used the 'Google Starbucks' network shown in the screenshot below.
We then tried pinging both of our iPhones, as directed by the faq. Though we were able to ping DNS and the Router, we were not able to ping either of our phones using the IP Address shown in our WiFi views (WiFi settings view below)
We searched and found out that we should not expect to be able to ping our iPhones
http://stackoverflow.com/questions/9863333/is-there-a-way-to-ping-an-iphone-to-see-if-its- turned-on
At this point we realized that the faq we were using for resolving PhoneGap problems was oriented towards Windows machines. Succeeding suggestions refer to Windows.
*We then tried downloading the current version of PhoneGap -ver 0.3.3 - and each had unsuccessful Installations. I went back to my old version. My friend just got disgusted!
*AT this point he suggested I'd be better off considering using a different UI Framework!
However we both like what we've learned about PhoneGap so far, and I'm suspicious that there is something obvious and basic that we are both not realizing we should be doing.
Ideas?
(*Ping Logs shown below)
PhoneGap Desktop ver 0.3.3 - newer one
* pinging google server - DNS server
Laurels-MacBook-Pro-2:~ laurelshimer$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=13.045 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=13.209 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=13.225 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=13.316 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=14.086 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=54 time=10.847 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=54 time=12.943 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=54 time=13.224 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=54 time=13.334 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=54 time=13.843 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=54 time=10.724 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=54 time=12.992 ms
^C
--- 8.8.8.8 ping statistics ---
12 packets transmitted, 12 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.724/12.899/14.086/0.998 ms
Laurels-MacBook-Pro-2:~ laurelshimer$
ping 172.31.98.1
Laurels-MacBook-Pro-2:~ laurelshimer$ ping 172.31.98.1
PING 172.31.98.1 (172.31.98.1): 56 data bytes
64 bytes from 172.31.98.1: icmp_seq=0 ttl=63 time=3.588 ms
64 bytes from 172.31.98.1: icmp_seq=1 ttl=63 time=1.077 ms
64 bytes from 172.31.98.1: icmp_seq=2 ttl=63 time=3.701 ms
64 bytes from 172.31.98.1: icmp_seq=3 ttl=63 time=3.744 ms
64 bytes from 172.31.98.1: icmp_seq=4 ttl=63 time=3.760 ms
64 bytes from 172.31.98.1: icmp_seq=5 ttl=63 time=7.891 ms
64 bytes from 172.31.98.1: icmp_seq=6 ttl=63 time=0.922 ms
^C
--- 172.31.98.1 ping statistics ---
7 packets transmitted, 7 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.922/3.526/7.891/2.137 ms
Laurels-MacBook-Pro-2:~ laurelshimer$
Laurels-MacBook-Pro-2:~ laurelshimer$
Trying laurels phone (again)
Laurels-MacBook-Pro-2:~ laurelshimer$ ping 172.31.98.197
PING 172.31.98.197 (172.31.98.197): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
^C
--- 172.31.98.197 ping statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
Laurels-MacBook-Pro-2:~ laurelshimer$
NOW TRYING D'R'S phone - it does not respond either
8 packets transmitted, 0 packets received, 100.0% packet loss
Laurels-MacBook-Pro-2:~ laurelshimer$ ping 172.31.98.217
PING 172.31.98.217 (172.31.98.217): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
Request timeout for icmp_seq 8
^C
--- 172.31.98.217 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss
Laurels-MacBook-Pro-2:~ laurelshimer$
