Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I want to register an app that will use the V2.0 API here: http://stackapps.com/apps/oauth/register. However, the app will run on a mobile phone so I cannot enter a domain name.

What can I possibly do? Enter a fake domain name?

share|improve this question
add comment

1 Answer 1

You can register apps that aren't web apps.

This page: http://api.stackexchange.com/docs/authentication, gives details for registering a Desktop Application. A mobile phone app comes under the category of a desktop application.

You should use the implicit flow, so check the box at the bottom of registration form, and for the OAuth domain use: stackexchange.com/oauth/login_success (note the lack of https://).

This is also the value you should use for the redirect_uri parameter (although with the https://). Then in your app you need to check for when the web browser loads stackexchange.com/oauth/login_success page.

It probably should be clearer on the registration page.

share|improve this answer
1  
Also, if you're developing on Windows Phone 7 you're likely screwed since the WebBrowser control eats everything after a # in the URL. –  Anna Lear Jan 2 '12 at 4:12
    
@AnnaLear, I don't know about Windows Phone, but I do think the hash is a bit "flimsy", and it could be passed in a better way. –  Jonathan. Jan 2 '12 at 12:51
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .