Skip to content

Inconsistent subscription ID between Android and iOS SDKS using the new google subscription model #692

Description

@TarekTolba1

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • Output of flutter doctor
  • Version of purchases-flutter
  • Testing device version e.g.: iOS 15.5, Android API 30, etc.
  • How often the issue occurs- every one of your customers is impacted? Only in dev?
  • Debug logs that reproduce the issue
  • Steps to reproduce, with a description of expected vs. actual behavior
    Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

purchases-flutter = 5.0.0-beta.2

Steps to produce:

  • Subscribe to pro_membership:monthly(subscription:baseplan) product in Android.
  • Calling getCustomerInfo() in Android would return a subscription with id pro_membership:monthly
  • Calling getCustomerInfo() in iOS would return a subscription with id pro_membership

Expected:

  • Returned id should be consistence between iOS & Android (pro_membership:monthly in my case)

The returned id of an active subscription that was configured according to the new subscription model is not consistent between Android & iOS sdks.
I wanted to use the id to identify the subscription period (month, 3 months, yearly) since this type of info isn't returned anywhere else.

Additional context

Android:
image
iOS:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions