klarna / klarna-mobile-sdk

Klarna Mobile SDK for iOS
https://docs.klarna.com/mobile-sdk/ios/
Apache License 2.0
29 stars 12 forks source link

Can not use KlarnaOSMViewEventListener either OC or Swift #111

Closed hanorz closed 3 years ago

hanorz commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Device and version:

Merchant Name Please state the merchant's name and the application's name that is facing the issue using the SDK.

Impact Level What is the impact level of this bug on the merchant and its customers? Is it happening in production? Is it a blocking issue for development? etc.

Additional context Add any other context about the problem here.

sdk version:2.0.43

My project was base on OC, and I want to show KlarnaOSMView in my view. I want to get dynamic height by KlarnaOSMViewEventListener, but in oc, there is no delegate in KlarnaOSMView.

WeChat2fc66743c414dc6929310c514695bc47

WeChatbd94ef4bfffc4a995d2e4b64aca4d403

So I try swift, but shows error by KlarnaOSMViewEventListener.

WeChat03872c7516cddc8aecd724f7e77a398c urgent.

What can I do? it's

hanorz commented 3 years ago

I think there is no @objc to the delegate, so the oc can't recognize it?

polar133 commented 3 years ago

Hi @hanorz, thanks for informing us about this issue. Yes, the delegate property was not exposed as @ objc. We will fix it asap and release a new version during the day. We will let you know when it's ready.

hanorz commented 3 years ago

Hi @hanorz, thanks for informing us about this issue. Yes, the delegate property was not exposed as @ objc. We will fix it asap and release a new version during the day. We will let you know when it's ready.

Thank you

polar133 commented 3 years ago

Hi @hanorz we release version 2.0.44, please give a try and let us know how it did go.

hanorz commented 3 years ago

Hi @hanorz we release version 2.0.44, please give a try and let us know how it did go.

Trying.

hanorz commented 3 years ago

Hi @hanorz we release version 2.0.44, please give a try and let us know how it did go.

It fixed. Thank you.

polar133 commented 3 years ago

Hi @hanorz we release version 2.0.44, please give a try and let us know how it did go.

It fixed. Thank you.

Great. I will close the ticket and in case there are any other issue please let us know.