I am implementing auto renewable subscription in my iOS application. Monthly subscription auto renews after 5 mins in sandbox mode. I have added transaction observer in appDelegate. So when app restarts updated transaction method gets called and i m getting following logs.
payment store product purchased il_pkg1_1month_2 payment storee product purchased transaction id Optional("1000000792969469") payment store product purchased il_pkg1_1month_2 payment storee product purchased transaction id Optional("1000000792972183") payment store product purchased il_pkg1_1month_2 payment storee product purchased transaction id Optional("1000000792976003") payment store product purchased il_pkg1_1month_2 payment storee product purchased transaction id Optional("1000000792978690") payment store product purchased il_pkg1_1month_2 payment storee product purchased transaction id Optional("1000000792982052")
My questions are
1)This method is not getting called when app is open and transaction is renewed. is this correct behaviour?
- I am planning to implement verification of receipt when this Method is called (on server side). So Suppose when i open app and transaction is auto renewed multiple times.Do i need to implement verify receipt for each transactions or the latest one only? How to verify receipt if app is open and transaction is auto renewed?
3)I have 3 kind of plans in same subscription group. I am not able to upgrade/downgrade in sandbox mode, is it possible to test upgrade/downgrade in sandbox mode?
4)After subscription has expired, if i renew subscription from manage subscription page updated transaction method is called but i m getting same transaction as before renewal.Even transaction expiry date is same as before renewal. Is this correct behaviour, do i need to do any additional things.
Any help would be appreciated.