Skip to content

Android - Some devices unable to get product info, unable to place orders. #1613

Description

@EEETA

Hi, @j3k0

I'm migrating my plugin from v11.x to v13.11.1 due to Google Play requirements (upgrading Play Billing from v4 to v7). I modified my old code based on the migration doc after upgrading the plugin library.

Observed behavior

For iPhone, product info can be obtained normally. However, for Android devices, some are able to get the info while others cannot.

Project environment:

> node: v20.14.0
> angular: "1.7.9",
> cordova-ios: "^5.1.1",
> cordova-android: "^12.0.1",
> cordova-plugin-purchase: "^13.11.1",

Devices info and issues:

In China, phones cannot use Google services without rooting. But rooting may also remove some features and not be as full-featured as the original system.

  • 2 of 4 Android devices can get info normally but Redmi k50 gets undefined (Redmi Note9 can't use Google Play so ignore)
  • Redmi k50 can't get product from Play so can't place order in Android or do sandbox pay, but worked in v11.

image

image

I confirmed using same apk and product IDs. I don't understand why on the same phone(Redmi k50), the old version using the plugin v11 could get product and support placing orders, while the migrated new version can't get product info. If it's about product registration failure, then why the other two Android phones can get products normally?

Code

Pasted Graphic 4
image
image
image

This issue has puzzled me for days. Please offer your help and answer my questions.Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions