A slightly different take on the "activation" of your webapp idea is to store a unique ID in a cookie instead of localStorage. That should require less coding and make it available automatically in every HTTP Request. The problem with both is that they can "lose" their ID when/if they clear local data, so you'll need to provide some way for the user to "re-activate" if somehow their ID got cleared.
In my experience, it's best to keep this sort of code/process light and simple. As long as it's not obviously easy to work around, most people will be honest -- sort of a "keeping honest people honest" approach. It's usually not worth the hassle to make it 100% bulletproof just to keep out the 1% of users who are going to dig into your code to try to find a way around it... -- peter rust -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jesse MacFadyen Sent: Monday, June 21, 2010 12:01 AM To: [email protected] Cc: [email protected] Subject: Re: Getting a hardware ID in JavaScript? The deviceid is definitely NOT exposed via mobile safari. This would be a huge security risk, imagine if every web advertiser could identify you uniquely. Cheers, Jesse Sent from my iPhone On 2010-06-19, at 9:28 PM, Remi Grumeau <[email protected]> wrote: > I think you can't. > The only thing you can do is to tell your user to user their iPhone > on first activation process, and store a variable on it (like a hash > of the username+password) using localStorage databases. If the > account is tagged as activate on your server-side and no databases > key for it are stored on the phone, then it's not the same phone... > > But no way to get the device ID using JS that i know of > > R. > > Le 19 juin 2010 à 16:27, Anthony Papillion a écrit : > >> This is my second question: does anyone know how to get a hardware ID >> from the iPhone in JavaScript? >> My webapp will be monetized and I need to make sure only one device >> is >> logging into a particular account. >> >> Any ideas? >> >> -- >> Anthony Papillion >> >> Lead Developer, ADCL, Inc. >> 1600 W. 12th St >> Miami, OK 74354 >> >> Office: (918) 919-4624 >> Mobile: (918) 533-9699 >> >> "Quality software development and IT services" >> >> -- >> You received this message because you are subscribed to the Google >> Groups "iPhoneWebDev" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to [email protected] >> . >> For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en >> . >> > > -- > You received this message because you are subscribed to the Google > Groups "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to [email protected] > . > For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en > . > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
