Hi.
For android, every time when inaps are initialized, permanent purchases are restored.
When you create a product in the Google Developer Dashboard, you choose whether it will be a consumable item or a permanent one.
For example:
-Gold is consumable.
-No ads is permanent.
Do this and everything will be fine, there are no bugs tested by many applications.