Expo In-App Purchase Break in Android after Upgrade to Expo SDK 45 (while iOS still works)

Please provide the following:

  1. SDK Version:45
  2. Platforms(Android/iOS/web/all):Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I used Expo In-App Purchase + EAS Build and worked well both in Android and iOS using Expo SDK44. But once upgraded to 45, Android part breaks with error message: [Unhandled promise rejection: Error: Encountered an exception while calling native method: Exception occurred while executing exported method purchaseItemAsync on module ExpoInAppPurchases: Attempt to invoke interface method ‘java.lang.String expo.modules.core.arguments.ReadableArguments.getString(java.lang.String)’ on a null object reference]

While, iOS IAP works fine in Expo SDK 45.

Please help! Thanks!

await purchaseItemAsync(item.id, {
        accountIdentifiers: {
          obfuscatedAccountId: '',
          obfuscatedProfileId: '',
        },
      });

EDIT: You need to pass the parameters above. The documentation is old.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.