iOS In-App Purchase

We finally decided to implement In-App Purchase in our applications. And what a journey ! The Apple documentation is as brief as usual …. So I gather here the posts that helped  me to go through that :

  1. a step-by-step post by Troy here : it is not up to date but I found it really useful.
  2. a post pointing some tricky points by Cocoanetics.
  3. a complete kit to include in app : MKStoreKit with the associated blog.
  4. for auto-renewable subscriptions, you have to write Privacy-Policy for your application. I found an example of privacy-policy on this website .
  5. If you work with a server side and want to verify receipt sent by Apple after a purchase : the receipt have to be encoded in 64 bytes. Don’t do it on the server in php code but encode it in the application and then send it to your server. Their is  NSData+base64.h/m files in MKStoreKit which provide functions to do that.
  6. Test of auto-renewable subscription in Sandbox environnement :”1 month subscriptions auto-renew every 5 minutes. So far so good. They auto-renew 5 times and then they stop, so after 25 minutes you’ll get the 21006 error. However even when repurchasing the same subscription it will NOT auto-renew again on the same test account since it has already auto-renewed 5 times. So if you want to test renewal and you have been messing with these subscriptions for a while you need to create a new itunes connect test user. This is very annoying honestly and it would be a lot easier if we could just reset the entire purchase history of a test user account.”
  7. a point that wasn’t described nowhere : to restore purchase for user who are re-installing application :

 you should provide a “Restore Purchases” button (or similar) which calls 
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];

Assuming you’ve added a transaction observer already, and implemented the protocol including a case to handle a restored transaction (with state SKPaymentTransactionStateRestored) this will work.

Posted in app development, iOS, iPhone, mac | Tagged , , , | Leave a comment

Twitter Weekly Updates for 2012-05-13

  • “@lemondefr: Pôle emploi envisage d'adapter son suivi au profil des chômeurs http://t.co/yriMsGlU” ah parce qu'ils ne le font pas déjà ???? #
  • Just receive my ltd starter kit ;-) http://t.co/GEVYTyWj #
  • “@mattgemmell: There's a kilt and a sword in the sketch of my #ullconf talk (inevitably?)" I thought you were wearing them ;o) #
  • “@koreus:“@AlbertZennou: La passation de pouvoir entre #Hollande et #Sarkozy aura lieu mardi 15 mai.”Hell is coming >> hell is behind us ;o) #

Powered by Twitter Tools

Posted in Récréation | Leave a comment

De la lecture Android

J’ai gracieusement reçu récemment en “avant-première” le dernier livre de Reto Meier “Professional Android 4 Application Development”. Merci à Reto et sa maison d’édition !

Ce livre est une mine d’or pour qui veut développer des applications pour Android. Le pré-requis est quand même une expérience dans le développement logiciel.

L’enchainement des chapitres permet au débutant comme au développeur expérimenté de trouver toutes les informations nécessaires : de où télécharger les outils de développement (Eclipse, SDK, etc…) à quelles fonctionnalités du téléphone sont intégrables dans l’application (Appareil photo, GPS, NFC, WiFi, etc…) en passant par une indispensable explication du fonctionnement de Android avec Davilk Virtual Machine et l’architecture des applications.
Il aborde également l’utilisation des bases de données avec SQLite, le partage d’information entre les applications.
Le livre intègre également un chapitre dédié au développement de Widget et aux fonctionnalités qui permettent une interaction directe de l’utilisateur depuis l’écran d’accueil du téléphone (Live Wallpaper, Quick Search Box).

Chacune de ces fonctionnalités n’est pas simplement abordée d’un point de vue théorique : on progresse dans les chapitres en développant des applications qui intègre ces fonctionnalités. Le code source est d’ailleurs disponible en téléchargement sur le site de l’éditeur.

J’ai appris le développement Android avec la première version de ce livre, nul doute que celle-ci vous permettra de bien débuter ou d’intégrer de nouvelles fonctionnalités dans vos applis !

Bon bien sûr ce livre est en anglais (à quand la traduction Reto ?) mais ça ne peut pas être un obstacle car je ne pense pas possible de développer des applications android (ou autres d’ailleurs) sans parler anglais : la majorité de la documentation est en anglais, les forums de developpeurs sont en anglais et la population des développeurs anglophones est beaucoup plus active sur le net !

Allez Hop on fonce sur amazon : Professional Android 4 Application Development

Bonne lecture !

Posted in android, app development | 1 Comment

Twitter Weekly Updates for 2012-05-06

Powered by Twitter Tools

Posted in Récréation | Leave a comment

For us ?

I really like this interior design. It’s the kind I would like to have in my house ! Perhaps…. one day…..

More pictures of the entire project here.

Posted in design | Leave a comment

Twitter Weekly Updates for 2012-04-29

Powered by Twitter Tools

Posted in Récréation | Leave a comment

Tree house again !

I would like to see this house in our garden as our new office ! This concept called EcoPerch is bye BlueForest.

Posted in design | Leave a comment

Twitter Weekly Updates for 2012-04-22

  • A voté http://t.co/Yy5yp8eT #
  • “@embruns: J'ai plein d'amis qui votent pour une blonde…” toutes les blondes ne sont pas pareils… #
  • @mrboo et c'est pas fini avec les législatives… in reply to mrboo #
  • @mrboo Ah chez nous c'est plutôt le petit Nicolas qui l'emporte….. in reply to mrboo #
  • iOS dev: did you notice that if you renew your dev program in advance, next year your program will terminate earlier and thus you loose fees #

Powered by Twitter Tools

Posted in Récréation | Leave a comment

Twitter Weekly Updates for 2012-04-15

  • @irishstu Mac Donald Cashle in reply to irishstu #
  • make your own music : http://t.co/Vi0Ira0p #
  • OMG ! an eggs cardboard contains ….. eggs ! http://t.co/FMObpL7Y #
  • Mark Zuckerberg had a big news to share : https://t.co/3OpILxnk
    Facebook bought Instagram….. #
  • RIP Easter Rabbit :-) http://t.co/2drf9iwL #
  • Did I miss something : a sync of my iPad with iTunes and I've got all Apps for iPhone installed :o ( bug or what ? #
  • “@Bouletcorp: #TweetPrécédent Boule & Bill, donc. Avec Dubosc, et j'espère bien un joli Bill en 3D dégueulasse.”c'est des boulets ;o) #
  • je ne sais pas si c'est les journalistes mais vu d'ici la campagne électorale ressemble à une bataille de coqs http://t.co/eQZ1w2Mq #

Powered by Twitter Tools

Posted in Récréation | Leave a comment

Tree house…

The dream of a childhood !

Lost at a minor.

Posted in design | Leave a comment