Git Product home page Git Product logo

Comments (20)

StephenJosey avatar StephenJosey commented on July 30, 2024 1

Thank you both. In that case I will escalate to our react native plugin team. I'll follow up once I have more info!

from react-native-square-reader-sdk.

koshovnik avatar koshovnik commented on July 30, 2024 1

@rahamin1
Sorry for misunderstanding, I meant that I do not use it.

Looking forward for fix

from react-native-square-reader-sdk.

gallidev avatar gallidev commented on July 30, 2024 1

@rahamin1 no I do not use in-app-payments-react-native-plugin.
So you might want to upgrade your react-native version as from 0.60.0 they have separated the WebView
https://github.com/facebook/react-native/releases/tag/v0.60.0

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024 1

As @gallifilo wrote above, the problem doesn't exist in newer react-native versions. I tested it in 0.62.2.

from react-native-square-reader-sdk.

AngeloMateus avatar AngeloMateus commented on July 30, 2024

Was just about to release an app with the SDK and got ITMS-90809 as well, is there a workaround to this?

UPDATE: App is still in review but it uploaded fine after upgrading SquareReaderSDK.framework to latest as well as react-native-square-reader-sdk to 1.3.1

I'm not using in-app-payments-react-native-plugin

from react-native-square-reader-sdk.

StephenJosey avatar StephenJosey commented on July 30, 2024

This should be resolved in the latest version of ReaderSDK - are you folks using the latest version?

Also, just to clarify, this definitely should not be happening with In-App Payments SDK

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

@StephenJosey

  • As I wrote above, the problem seems to be in both react-native-square-reader-sdk and in-app-payments-react-native-plugin (see https://bit.ly/2XGuk7Y)
  • I am using version 1.3.1 of both packages

@AngeloMateus

  • Do you also use in-app-payments-react-native-plugin?
  • Which version of react-native are you using?

from react-native-square-reader-sdk.

StephenJosey avatar StephenJosey commented on July 30, 2024

In the script you have you're printing every package (echo $fname), it seems, it does not mean it's in each package. It looks like the reference was removed in 1.3.7 for ReaderSDK (https://developer.squareup.com/docs/changelog/mobile-logs/2020-02-26), so you need to update to at least that version (although 1.3.8 is the latest).

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

Thanks Stephen.

I will try the latest commits of both packages.

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

The latest version in npm is 1.3.1 for both packages, so I have replaced the relevant lines in package.json with:

"react-native-square-in-app-payments": "git://github.com/square/in-app-payments-react-native-plugin.git#c4eebc7d65e3ba5f32cbfbdf5354e78c4f50df30",
"react-native-square-reader-sdk": "git://github.com/square/react-native-square-reader-sdk.git#d13aa44b55bcbf9c2f1ff21d580649278b9b571a",

I am still getting the same errors as in #120 (comment).

from react-native-square-reader-sdk.

StephenJosey avatar StephenJosey commented on July 30, 2024

Sorry, I think we're referring to different things. You're talking about the react native plugin version, I'm talking about the iOS ReaderSDK version - which the react native plugin uses. You should be installing the iOS SDK as per Step 5: https://github.com/square/react-native-square-reader-sdk/blob/master/docs/get-started.md#step-5-install-reader-sdk-for-ios, which will install the latest version. You can see further instructions for reinstalling the iOS SDK here: https://developer.squareup.com/docs/reader-sdk/upgrade-reader-sdk#install-a-new-version-of-the-framework

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

Thanks Stephen.

I followed https://developer.squareup.com/docs/reader-sdk/upgrade-reader-sdk#install-a-new-version-of-the-framework and the command

ruby <(curl https://connect.squareup.com/readersdk-installer
) install --app-id {APP_ID} --repo-password {REPO_PASSWORD} —-version  1.3.8

Prints the installed version.

But the App Connect error remains:

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

And

for framework in Frameworks/*.framework; do
  fname=$(basename $framework .framework)
  echo $fname
  nm $framework/$fname | grep UIWeb
done

Still prints

CorePaymentCard
SquareCore
SquareInAppPaymentsSDK
SquareReader
SquareReaderSDK

from react-native-square-reader-sdk.

koshovnik avatar koshovnik commented on July 30, 2024

Same issue using:
react-native-square-reader-sdk 1.3.1
SQUARE SDK 1.3.8

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

@koshovnik

Since you are using this plugin I have two questions not related to the problem reported in this thread:

  • Do you also use in-app-payments-react-native-plugin?
  • Which version of react-native are you using?

from react-native-square-reader-sdk.

koshovnik avatar koshovnik commented on July 30, 2024

Do not use in-app-payments-react-native-plugin
react-native 0.62.2

from react-native-square-reader-sdk.

koshovnik avatar koshovnik commented on July 30, 2024

@rahamin1
The issue occurs even in the empty project with react-native-square-reader-sdk installed only

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

@koshovnik

Do not use in-app-payments-react-native-plugin
Why?

from react-native-square-reader-sdk.

gallidev avatar gallidev commented on July 30, 2024

For me it works and I was able to submit now by updating the iOS ReaderSDK from 1.3.1 to 1.3.8
with
react-native: 0.61.5
square-sdk-react-native: 1.3.1
square-sdk-ios: 1.3.8

from react-native-square-reader-sdk.

rahamin1 avatar rahamin1 commented on July 30, 2024

Thanks @gallifilo. Strange. I will try again (I am currently using 0.59.9 and I have other problems, so I am trying to migrate to 0.62.2 first, so it will take some time).

BTW, Do you also use in-app-payments-react-native-plugin?

I am asking since I am using it as well, and I have problem in iOS build.

from react-native-square-reader-sdk.

koshovnik avatar koshovnik commented on July 30, 2024

I confirm. Was able to push a build to test flight with:
{
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-square-reader-sdk": "^1.3.1"
}
and square-sdk-ios: 1.3.8

I do not use in-app-payments-react-native-plugin.

from react-native-square-reader-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.