Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Would somebody with an iPad run an app for me?

I know the whole ad hoc process is tedious but I can't afford the real thing.

I have an iPad app just arrived in the app store, it works perfectly in the simulator but my first customer says it does not work on his iPad.

Basically I have tried to crudely reproduce the original Ti Contact Picker because the current one is broken and they don't seem in any hurry to fix it.

The customer says absolutely nothing happens when he presses the button which should bring up a Contact List.

There is no point in me posting code here because it works every time for me in the simulator.

(I have withdrawn the app from sale pending a fix, but of course it will have to go through the whole lengthy review process again)

regards,

JH

— asked June 4th 2010 by John Holman
  • ad
  • contacts
  • hoc
  • ipad
  • simulator
4 Comments
  • Is the code available somewhere?

    — commented June 4th 2010 by Kevin Whinnery
  • Just the offending part as a zipped standalone test project is at:
    holman.id.au/bugs/Contacts_Test.zip
    You will have to forgive me my kindergarten Javascript…

    — commented June 4th 2010 by John Holman
  • Hi man, i think i might figured out your problem. If the contact obj has blank field (in your code you have c.lastName or c.firstname), tableview will not load. So i trapped those fields and assign them to some value if blank or null and it's now working on iPad simulator and device.

    You can duplicate the problem on the iPad simulator, try create a contact with just last name, leave the first name empty for example.

    good luck.

    — commented June 7th 2010 by Daniel Lim
  • Hi Daniel, thanks a lot for spending time on this. Unfortunately when I do this everything continues to work just fine on both the iPad and iPod simulators AND my real iPod Touch. Contact just shows up as "null noName 1234567' in the expected index position. I just rebuilt and reinstalled afresh on the Touch as well.

    Thanks again!
    Regards,

    JH

    — commented June 7th 2010 by John Holman

8 Answers

  • Accepted Answer

    I'll be happy to.

    — answered June 4th 2010 by Daniel Lim
    permalink
    1 Comment
    • Thanks Daniel - can you send me your email? mail at holman.id.au
      Actually, see response to Kevin above.

      — commented June 4th 2010 by John Holman
  • Hit me up at cobrainc (at) gmail, I'll test it for you.

    — answered June 4th 2010 by Sj Singh
    permalink
    1 Comment
    • Thanks! Email on its way, big time difference as I am in Australia.

      — commented June 4th 2010 by John Holman
  • How could I mark the best answer - they are all great answers.

    Thanks folks.

    JH

    — answered June 4th 2010 by John Holman
    permalink
    0 Comments
  • Actually it was just dumb of me to upload a whole 13 megabyte partial project.

    Here is the whole source code and images in 560 KB - you just need to make a new project and put these files in the Resources folder (and the Resources/iphone folder for the splash screen and icons.)

    holman.id.au/bugs/BuggySMS.zip

    You will need the account:

    username: reviewer
    password: review

    All the watchers are welcome to this code too, bearing in mind that I get my Javascript skills from Google…

    regards,

    JH

    — answered June 4th 2010 by John Holman
    permalink
    0 Comments
  • Your user is correct. Nothing happens when I click on contacts. But the same happens in the simulator. While testing ur "Test Contact" prj that you sent me, I did get an error on this line: "contacts = contacts.sort(sortNames);" stating that sort is not a function, so I'm guessing this is where your problem lies. I'm currently short on time, else I would have tested more but let me know if you want me to test anything else.

    Which mobile sdk are you using btw?

    — answered June 4th 2010 by Sj Singh
    permalink
    2 Comments
    • I am using the 1.3 sdk and can run both this test app and the full app without issues in the simulator. Have you applied the 4.0 patch as advised? I wonder if that could be causing a problem? I am going to try and revert back to the unpatched sdk and see what happens. Thanks for the prompt help,
      regards,
      JH

      — commented June 5th 2010 by John Holman
    • Update: the unpatched Titanium 1.3.0 sdk also works perfectly well for me. I am using the simulator that comes with iPhone OS 3.2 final. I don't understand why the same code would work in my simulator but not yours?

      The sort function seems to be standard Javascript available all over the place, and my Contacts sort alphabetically just fine.

      regards,
      JH

      — commented June 5th 2010 by John Holman
  • I have tested that sort function and watched every step of it using info, and Titanium seems to support it with no problems.

    The same code installs and runs without any problems on my iPod Touch.

    Is there nobody except me who can get this code working?

    JH

    — answered June 5th 2010 by John Holman
    permalink
    0 Comments
  • Hi man, i think i might figured out your problem. If the contact obj has blank field (in your code you have c.lastName or c.firstname), tableview will not load. So i trapped those fields and assign them to some value if blank or null and it's now working on iPad simulator and device.

    You can duplicate the problem on the iPad simulator, try create a contact with just last name, leave the first name empty for example.

    Good luck.

    — answered June 7th 2010 by Daniel Lim
    permalink
    0 Comments
  • Hey Daniel I'm an idiot. I was leaving the first name field blank, of course I'm sorting on the last name field. When I leave out the last name, I get the dead-button syndrome too.

    Now I'm embarrassed at sounding off against Titanium, but I guess they'll get over it.

    Although I tested it with a large Contact list, I just happen to be one of those people who always puts in the full name.

    And for what it's worth, Apple's tests aren't as draconian as people think :)

    Regards and thanks again,

    JH

    — answered June 7th 2010 by John Holman
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.