Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdx-pay iOS crashes on iOS < 11.2 #230

Closed
1 of 5 tasks
keesvandieren opened this issue Sep 28, 2020 · 1 comment
Closed
1 of 5 tasks

gdx-pay iOS crashes on iOS < 11.2 #230

keesvandieren opened this issue Sep 28, 2020 · 1 comment

Comments

@keesvandieren
Copy link
Member

keesvandieren commented Sep 28, 2020

Please ensure you have given all the following requested information in your report.

Firebase reported crash with following message:

Unrecognized selector: introductoryPrice
The API used here is only available in iOS 11.2 and later. To avoid this crash on devices with older OS versions you must check the current version before calling it. See the second resource below for examples of how to do this.

Issue details, reproduction steps/code

Please provide the details of your issue

Version of gdx-pay and/or relevant dependencies

1.3

Stacktrace

5  IosLanguagesLauncher           0x6e0adf [J]org.robovm.objc.$M.object_objc_msgSend(Lorg/robovm/apple/foundation/NSObject;Lorg/robovm/objc/Selector;)Lorg/robovm/apple/foundation/NSObject;
6  IosLanguagesLauncher           0x6e28c9 [J]org.robovm.objc.$M.object_objc_msgSend_instance(Lorg/robovm/apple/foundation/NSObject;Lorg/robovm/objc/Selector;)Lorg/robovm/apple/foundation/NSObject; + 350 ($M.java:350)
7  IosLanguagesLauncher           0x6e002f [j]org.robovm.objc.$M.object_objc_msgSend_instance(Lorg/robovm/apple/foundation/NSObject;Lorg/robovm/objc/Selector;)Lorg/robovm/apple/foundation/NSObject;[clinit]
8  IosLanguagesLauncher           0x641fd7 [J]org.robovm.apple.storekit.SKProduct.getIntroductoryPrice()Lorg/robovm/apple/storekit/SKProductDiscount;
9  IosLanguagesLauncher           0x3a91a5 [J]com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple.convertToFreeTrialPeriod(Lorg/robovm/apple/storekit/SKProduct;)Lcom/badlogic/gdx/pay/FreeTrialPeriod; + 546 (PurchaseManageriOSApple.java:546)
10 IosLanguagesLauncher           0x3a915f [J]com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple.getInformation(Ljava/lang/String;)Lcom/badlogic/gdx/pay/Information; + 537 (PurchaseManageriOSApple.java:537)

Please select the affected platforms and payment service implementation

  • Amazon
  • googlebilling
  • googlepay
  • apple iosmoe
  • apple robovm
@keesvandieren keesvandieren self-assigned this Sep 28, 2020
MrStahlfelge pushed a commit that referenced this issue Oct 3, 2020
* #230 use logic available in iOS 11.2 and up only if available

* #230 use version 1.3.1 for bugfix release

Co-authored-by: Kees van Dieren <keesvandieren@squins.com>
@MrStahlfelge
Copy link
Member

Fixed with latest version 1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants