My app is in review and I am trying to implement monetization in my app. I am trying to display a banner that informs the user about the number of trial days they’ve left and a button for them to subscribe to a new plan which opens up the plan selection page.
Currently I’m able to display the banner and button and open the plan selection page, but I can’t what remember my app_plan_ids are so I can’t write logic around that. Is there a way to fetch that?
Secondly, I’m unable to create a mock subscription. I keep getting an Unauthorized error when I try.
This query returns an empty array.
query {
app_subscription {
billing_period
days_left
is_trial
plan_id
renewal_date
}
}
I will appreciate some help on this.