My app wont open AppStore

Discussion in 'iOS Programming' started by iLoveDeveloping, Dec 29, 2009.

  1. iLoveDeveloping macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #1
    Hey,

    I just wanted to know is it possible to get my app to open the AppStore onto the page with ALL of my Apps, NOT JUST ONE! I have the code to open it on any application i want..

    Code:
    - (IBAction)openSafari {
    	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/us/app/TestApp/id331562254?mt=8"]];
    	
    }
    I simply copied my link from iTunes and pasted it into my program. BUT when i copy the link to me as a developer (i want the user to be able to click a button and be taken to an app store page with all my apps on it) it doesn't work, it opens up iTunes, not the App store and says can not finish your request or something like that..

    Can anyone help me? Is it possible to link to a developer and not just individual Apps and how can i do this?

    Thanks..
     
  2. StevenHu macrumors member

    Joined:
    Sep 3, 2009
    Location:
    Southern CA
    #2
    I don't know if that is possible. However, I am advising people to simply enter my name in the Search box to see all the apps available.

    Regards,
    Steve
     
  3. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #3

    But i have seen apps that did it.... I no its out there, i mean why couldn't you do it, seems logical! All that changes in the link is, from your App name to your developer name, and it stops working...

    I hope someone can find the answer?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    If you're getting this issue when running in the simulator, realize that there is no App Store on the simulator.
     
  5. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #5
    OF COURSE im running it on my iPhone! I'm not that much of a newb.. :) I am fully aware of the limitations of the simulator, i very rarely use that to test.. Did you understand my question right? I am not looking to go to an App. I am looking to go to my App"s" page, like in iTunes (on a desktop) you click your name and it gives all the apps by you... I want to link to that page...
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    I think I did. Just wanted to clarify. Because you didn't seem to be exactly sure what the issue was ("or something like that"). Anyways, I use the following URL to get to my 'developer's page': @"http://itunes.com/robertdejong". You might also want to try @"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=xxx"
     
  7. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #7
    oh cool, thanks! i will give it a try now..
     
  8. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #8
    No that didn't work either.... It open iTunes on my iPhone NOT the AppStore!


    This is what happens..



    No Appstore...... :(
     
  9. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    And?... what was the trick?
     
  11. iLoveDeveloping thread starter macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #11
    I simply went into iTunes (on my mac) searched for me, right clicked on "view all" copied the link, and for some reason that works perfect... :apple:
     
  12. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #12
    And what did that URL end up looking like? (So we all learn from this).
     
  13. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #13
    Code:
    - (IBAction)appStoreLink
    {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=[I][COLOR="Red"](yourID)[/COLOR][/I]"]];
    }
    
    perhaps this?
     

Share This Page