iPhone developer certification?

10 views
Skip to first unread message

rcwhitejr

unread,
Dec 15, 2008, 8:42:09 PM12/15/08
to phonegap
I apologize if this is a stupid question, but what does buying the
iPhone developer certification enable me to do? I am trying to get a
simple demo up and running, and I am wondering if it's failing because
of I don't have the certificate. This is all on the emulator, not a
real phone.

I am slightly confused because running the phonegap demo from my
iphone simulator works, however when I copy the source code from
phonegap.com/demo and run it on my local webserver, I can't seem to
get it to work.

If this is not a certificate problem, I will post my code.

Thanks very much.

rcwhitejr

Shoaib Raza

unread,
Dec 15, 2008, 9:42:16 PM12/15/08
to phon...@googlegroups.com
rcwhitejr this is not certificate problem.

rcwhitejr

unread,
Dec 16, 2008, 7:09:52 PM12/16/08
to phonegap
I thought not. I apoligize for posting the following code, because it
is very basic, however I would really like to get this working. So
with that, here are the steps I followed.

I downloaded the phonegap project and opened it Xcode. I set the url
to point localhost:3000/demo.htmt in the Xcode project. Demo.html
includes gap.js. I know this is working because when I visit demo from
a regular browser it states that phonegap is not supported.

I am only trying to get this to run on an emulator.

The one step I did not follow from the Getting Started With PhoneGap
tutorial on the wiki, was to change the bundleidentifier provided by
Apple.

If anyone could help that would be great. I will also provide any
other info needed.



Thanks a lot
Rcwhitejr


DEMO.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Location testing</title>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-
scale=2.0;"/>
<link rel="stylesheet" href="styles.css" type="text/css"
charset="utf-8">
<script src="gap.js" ></script>

<script>

<script>

initGap = function() {
Device.init();
Device.Location.callback = updateLocation;
}

updateLocation = function(lat,lon) {

document.getElementById('lat').innerHTML = lat;
document.getElementById('lon').innerHTML = lon;
}
</script>

</script>
<body onload="initGap();">
<div id="container">
<div id="lat">

...
</div>
<div id="lon">
...
</div>

<a href="#" onclick="Device.Location.init();">Update</a>




</div>
</body>
</html>

Jeff McFadden

unread,
Dec 16, 2008, 10:38:26 PM12/16/08
to phonegap
Rcwhitejr,

I would start by looking into how to do testing on location-gathering.
I would guess that the simulator isn't give any location to the app,
and thus you're not getting a result output.

I haven't done any location-aware apps, so I can't offer a quick
solution, but search the apple dev guides and I'd bet you find your
answer.

-- Jeff

Moe Tun

unread,
Dec 16, 2008, 10:54:43 PM12/16/08
to phon...@googlegroups.com, phonegap
You can run location update with simulator. You will get Apple HQ
coordinates instead.


Sent from my iPhone

On Dec 16, 2008, at 9:38 PM, Jeff McFadden <jeff.m...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages