facebook

Accessing iPhone Accelerometer/GPS (Working Code Ex.)

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #336832 Reply

    mreade
    Member

    To 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

    #336947 Reply

    Hi mreade,

    I’ve forwarded your request to Wayne since he has worked on it.

    #336948 Reply

    mreade
    Member

    Thanks Octavio.

    mreade

    #336954 Reply

    WaylandDavis
    Member

    I 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.
    #336955 Reply

    mreade
    Member

    Many thanks wildwex!

    I’ll give this a shot.

    mreade

    #336956 Reply

    mreade
    Member

    wildwex,

    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

    #336967 Reply

    WaylandDavis
    Member

    Sure,

    Here are both zipped into respective files.

    Attachments:
    You must be logged in to view attached files.
    #336969 Reply

    mreade
    Member

    wildwex,

    Many thanks!

    mreade

    #336975 Reply

    mreade
    Member

    Well, 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

    #336977 Reply

    mreade
    Member

    Support (Wayne)

    If you have any working examples to get the phone’s accelerometer values, please let me know.

    mreade

    #337062 Reply

    jim
    Member

    The accelerometer example works fine with android.

    However the geolocation example does not.

    #337082 Reply

    support-michael
    Keymaster

    Will share an example asap. Need to tidy up some code first.

    #337085 Reply

    mreade
    Member

    Many thanks Wayne,

    I could not get either the accelerometer or gps examples to work on my iPhone 5.

    regards,

    mreade

    #337088 Reply

    support-michael
    Keymaster

    >I could not get either the accelerometer or gps examples to work on my iPhone 5

    which ones (link please)?

    #337106 Reply

    jim
    Member

    OK, I now have the geoposition example working on Android. Something important that I forgot was to click GeoLocation in required services during the build.

Viewing 15 posts - 1 through 15 (of 19 total)
Reply To: Accessing iPhone Accelerometer/GPS (Working Code Ex.)

You must be logged in to post in the forum log in