Restoring transactions Android

Hey guys,

How to make information window “Restoring transactions…” that appears when user starts Android app?

I do NOT want to show native window that user must dismiss.
I have seen in many Android apps that they use such information bars/windows (usually black and white style).

Many thanks.
Ivan

Hi Ivan,

The easiest way to do this with native Corona objects would be:

  • add a rectangle that covers the entire scene (ie. your main menu scene).  Set it’s alpha to 0.01 so it is invisible to the user, and get it to intercept any touch / tap events so the objects below are ‘blocked’ from being touched (ie. by always returning true in the tap / touch event handlers).
  • add a bitmap or rectangle with text on top using Corona display objects to give your user the message “Restoring…”
  • initiate an IAP restore
  • after your restore is finished (or times out), remove the above

(The one thing I would say is that you would probably only want to do this the very first time the user opens the app, not every time.  The IAP restore function will not initiate any callback listeners if there are no products to restore - meaning the user will have to wait for your app to manually timeout).

Thank you happymongose! :slight_smile:
I will try to do something like that…

Ivan

Hi Ivan,

The easiest way to do this with native Corona objects would be:

  • add a rectangle that covers the entire scene (ie. your main menu scene).  Set it’s alpha to 0.01 so it is invisible to the user, and get it to intercept any touch / tap events so the objects below are ‘blocked’ from being touched (ie. by always returning true in the tap / touch event handlers).
  • add a bitmap or rectangle with text on top using Corona display objects to give your user the message “Restoring…”
  • initiate an IAP restore
  • after your restore is finished (or times out), remove the above

(The one thing I would say is that you would probably only want to do this the very first time the user opens the app, not every time.  The IAP restore function will not initiate any callback listeners if there are no products to restore - meaning the user will have to wait for your app to manually timeout).

Thank you happymongose! :slight_smile:
I will try to do something like that…

Ivan