I'm building a new application that should contain in app purchases.
I follow the XCode Tutorial: In-App Purchase (by simple sdk) video at youtube. The tutorial is about downloading an audio file, but my project is based on executing a HTTP request. Can you help me set up methods to do this?
Note: Apple improved purchasing when download is complete, but in my case there is no download. So how to make Apple improve that purchasing is complete.
Verify that a payment has been made.
Use the 'hidden' command to show a button. You tube will have many examples on how to hide and show buttons.
Lastly, have an action for this button
that when tapped it executes your HTTP request ..
No one will write your code for you here. But here is a great tutorial: http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/
Try it and if you have questions you can ask them here.
Related
I need to integrate in-app purchase for downloadable content in my app. I am trying to display list of different player characters which can be downloaded or unlocked after purchasing the character from in-app purchase module.
Can you guys point me to proper tutorial or provide me any possible hint?
You can have a pretty good base here:
http://www.raywenderlich.com/21081/introduction-to-in-app-purchases-in-ios-6-tutorial
You can also check the Apple's documentation whenever you need. :)
I've been researching the latest ways to integrate Twitter into my app and it appears the best (most painless) approach is to use the MGTwitterEngine, and the best tutorial I could find to implement this is a 3-part series. If all I need to do is allow the user to login to their twitter account and post a single tweet that's always the same, is there an easier way to do that than following the tutorial I linked to?
Thanks so much for your wisdom. If the alternatives aren't much easier, no problem, I'm not so lazy that I can't follow a tutorial, I was just wondering if there's a quicker way that I didn't see.
Create a button that opens a UIWebView when clicked. Build the URL using details here: http://twitter.com/about/resources/tweetbutton. Simple - about 10 lines of code.
I'm a big fan of st3fan's (Stefan Arentz) https://github.com/st3fan/iphone-twitter project. It's very easy to integrate and includes whole views that you can just use, easily customizable too.
Plan your Twitter implementation ahead - with an iPhone project you will want to use xAuth authentication which does not require a round trip to the web browser.* You have to first register your app and then request permission for your application to use this method. Check the Twitter developer pages for more details.
*or not. But I hate leaving the app to post tweets.
I saw in this article you can run some javascript in a UIWebView:
http://iphoneincubator.com/blog/windows-views/how-to-inject-javascript-functions-into-a-uiwebview
It would be great if I could inject some business logic into my app based on a few parameters I have or be able to customize it on the fly via the web by downloading updated code that would become part of the app.
has anyone done this or is this even a possibility?
I would advise you to avoid doing it. Any app that downloads code will get rejected on the App Store.
From the App Store Review Guidelines:
2.7 Apps that download code in any way or form will be rejected
I will be publishing an App in a few days. Initially I don't want to add advertisements, but can change my mind anytime, so I've thought this. Add a WebView to application and set its image to a dynamic web content. If no ads; I will display a simple logo, but when ads are available, replace the content with them. So there will be no modification to iPhone compiled binary.
Do you think it is allowed by Apple, and a good approach?
If you follow that approach, you will need to at least explain to Apple when you submit the app for review that ads may be enabled via a webservice.
Apple won't like it if you don't tell them that you might modify the apps feature set or behaviour after its approval.
You should be OK as long as you tell them about it.
I'm building an app that will allow the user to send a status update to twitter about something they have done in the app.
What is the easiest way to authenticate the user in the settings and have the app update their status when they tap a button?
Any help/ sample code is greatly appreciated.
-GVG
PHP/ iPhone SDK Developer
http://gilesvangruisen.com/
I think a lot of people use the source code from Matt Gemmell:
http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa
That should be a good starting point.