- This topic has 18 replies, 6 voices, and was last updated 11 years, 7 months ago by PaulLeBlanc.
-
AuthorPosts
-
mreadeMemberTo Support & Everyone,
Can anyone provide me a working example of code that shows how to access the phone’s accelerometer values on iOS as well as Android?
I have visited the PhoneGap URL, but I just cannot get any action to happen.
I would appreciate any suggestions, coding examples, or assistance.
Thanks in advance.
mreade
support-octavioMemberHi mreade,
I’ve forwarded your request to Wayne since he has worked on it.
mreadeMemberThanks Octavio.
mreade
WaylandDavisMemberI got the demos working from the MobiOne site for the Accelerometer and GPS. I’ve attached them.
The “Custom” button on the geopositioningtest does nothing. These have to be tested on the device — I’m using
iPhone4s with iOS6.1.3(10B329)Hope it helps.
wildwex
Attachments:
You must be logged in to view attached files.
mreadeMemberMany thanks wildwex!
I’ll give this a shot.
mreade
mreadeMemberwildwex,
Just downloaded and opened the accelerometer test form you sent. However, it is just the form and there is no working code. Would you be so kind to send the custom.js form as well?
Thanks
mreade
WaylandDavisMemberSure,
Here are both zipped into respective files.
Attachments:
You must be logged in to view attached files.
mreadeMemberwildwex,
Many thanks!
mreade
mreadeMemberWell, I’ve tried both of these apps on my phone (iPhone 5) and neither app does anything after processing to through Mobione.
I’m sure I am missing some simple little thing.
Thanks wildwex, I will keep plugging away at this. If you have any other suggestions, please let me know.
Regards,
mreade
mreadeMemberSupport (Wayne)
If you have any working examples to get the phone’s accelerometer values, please let me know.
mreade
jimMemberThe accelerometer example works fine with android.
However the geolocation example does not.
support-michaelKeymasterWill share an example asap. Need to tidy up some code first.
mreadeMemberMany thanks Wayne,
I could not get either the accelerometer or gps examples to work on my iPhone 5.
regards,
mreade
support-michaelKeymaster>I could not get either the accelerometer or gps examples to work on my iPhone 5
which ones (link please)?
jimMemberOK, I now have the geoposition example working on Android. Something important that I forgot was to click GeoLocation in required services during the build.
-
AuthorPosts