Get Already Purchased Product Data From App Store

Have you ever wanted to get previously brought product data(in app purchase) from app store while developing iPhone applications ??? Well, I wanted once. The application contained several products. And we needed to get those product details in a case user moves to a new device or he has couple of devices (iPhone, iPad) having the same app.

The answer is as follows, first you need to use the function

– (void)restoreCompletedTransactions

in SKPaymentQueue class. But your products need to be configured as non-consumable in app store.

After the transactions are delivered, the payment queue calls the observer’s

– (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

method. If an error occurred while restoring

– (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error

will be called.

After that you can check

@property(nonatomic, readonly) SKPaymentTransaction *originalTransaction

for each transaction and get the product id.

Google Doodles – super cool

“Google doodles, recently made me amazed couple of times. To a regular internet user the word “doodle” is not a  mystery. Anyway I will give a definition Doodles are the decorative changes made to the google logo in their search home page to celebrate special days, events all over the world. Over the last years they were just arts or static drawings that made the google home more memorable. But recently they seems like have new wings, more alive and dynamic. The best example was Les Paul doodle. Anybody imagined a playable guiter as a doodle?? Yeah, they did that. not only playing it but also recording a 30 seconds play.

This was a hit within entire world and guess, users has spent 10.7 million hours playing this doodle. Yeah you see the impact now 😀 So certainly it deserves the honour to have a permenant space in the web. If you wanna play it again , try http://www.google.com/logos/2011/lespaul.html

Before this Pac man doodle was also a hit. It made you possible to play pac man game in google home page. Well if you missed it, then here it is http://www.google.com/pacman/

If you have some time don’t forget to try these too, Jules vern doodle and martha graham doodle. They are cool, aren’t they. Just a reminder, don’t get over excited because  most amazing ones are yet to come. 

FINGERS CROSSED 😀 “

Why I started blogging????

Hi all !!!!.I’m Sameera Hasitha Bandara, an undergraduate of University of Moratuwa. This is the first blog post of my blogging life and I thought to share you with a nice story which  got from an e-mail.

Both the Sea of Galilee and the Dead Sea receive their water from river Jordan . And yet, they are very, very different.

Unlike the Dead Sea, the Sea of Galilee is pretty, resplendent with rich, colorful marine life. There are lots of plants. And lots of fish too. In fact, the sea of Galilee is home to over twenty different types of fishes.

Same region, same source of water, and yet while one sea is full of life, the other is dead. How come?

Here apparently is why. The River Jordan flows into the Sea of Galilee and then flows out. The water simply passes through the Sea of Galilee in and then out – and that keeps the Sea healthy and vibrant, teeming with marine life.

But the Dead Sea is so far below the mean sea level, that it has no outlet. The water flows in from the river Jordan , but does not flow out. There are no outlet streams. It is estimated that over a million tons of water evaporate from the Dead Sea every day. Leaving it salty. Too full of minerals. And unfit for any marine life.

The Dead Sea takes water from the River Jordan , and holds it. It does not give. Result? No life at all.

Think about it.

Life is not just about getting. Its about giving. We all need to be a bit like the Sea of Galilee .

We are fortunate to get wealth, knowledge, love and respect. But if we don’t learn to give, we could all end up like the Dead Sea . The love and the respect, the wealth and the knowledge could all evaporate. Like the water in the Dead Sea .

I want to be a Sea of Galilee :). So I will be sharing my knowledge, both technical and non technical here after.