-
Notifications
You must be signed in to change notification settings - Fork 121
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
Android not doing Payment Controller callback #56
Comments
I went through the slow, plodding journey from 0.25.2 to 0.29 and upgraded this xplat from 1.1.1 to 2.1.0 in the process(I didnt upgrade it until 0.28 or 0.29). I did one version at a time, and took these notes on errors I came across, in case anybody can use them. A lot of them are specific to my app and they're from the README I wrote. Once I got to 0.29 the callback for the nonce began firing on Android, though it sometimes still hangs on loading the form. Working on that now. UPGRADE NOTESThese are issues I had to ultimately correct as I went from version to version. Left here to help you debug any merge conflicts. Generally to upgrade, I would upgrade React-Native in package.json, then npm install. It would tell me if it needed a new version of React. I would then upgrade react. Then I would check out the release notes for this RN tag to see if there were any changes Then I would cd into ios folder and run Then I do a clean/build and fix any code errors(mostly _refreshControl), and try to do a checkout in iOS. Then I do a Sync Gradle 0.26LD Flags Issue
in project.pbxproj -lc++ is important, you can do through Xcode also: Project (Not Target) Settings > Other Linker Flags _refreshControlNeed to turn _refreshControl into refreshControl to compile 0.27Previous Changes Required Again
New Component SourceCan't import Component from react-native anymore, must use react's component Strict Mode IssueGot this error on android, "Strict mode does not allow function declaration", traced to here: To fix:
REPLACE WITH:
In /node_modules/react-native/Libraries/Utilities/UIManager.js:
REPLACE WITH:
In /node_modules/react-native/.../InitializeJavascriptAppEngine.js:
REPLACE WITH:
0.28Previous Changes Required Again
CSS ChangesNote: I didn't any all of these, but if you see Flex issues, this may be it. Updates to css-layout leading to many fixes but requiring some breaking changes: New MainApplication.javaNow you need to clean the gradle cache. ./gradlew clean inside the android folder. 0.29Previous Changes Required Again
props is undefined in _rootView call in AppDelegateNeed to remove props, place nil in there. undefined symbol _CPLogGet this on Xcode build for Codepush. Make sure to ensure that libPods-caradviseui.a is the first library in Link Binary with Libraries. Replace BTAnalyticsMetaData import with MetadataOnly in iOS. Data is not supposed to be capitalized on the import of the Braintree library, so you need to make that happen. Newer version of CodePushHad to change CodePush to 1.17 and change it's invocations in MainApplication.java. Refer to this chart: https://github.com/Microsoft/react-native-code-push#supported-react-native-platforms and this link: https://github.com/Microsoft/react-native-code-push/blob/master/docs/setup-android.md Newer version of XPLAT/Changing of ThisAlso upgraded braintree xplat to 1.2.0, involved this change in MainApplication.java:
Also need to use
everywhere instead of
|
I'm using your v1.1.1 because our project is on RN 0.25.1 and I lost 6 hours trying to upgrade it to 0.40+ and then to 0.39, to no avail. it's just too big a challenge to undertake right now. I've got your older xplat working perfectly with iOS, but in Android, it never does the callback to return the nonce. I've tried in Android Nougat and O, to no avail. It just closes the drop-in ui.
Do you have any idea why this might be happening?
My code is thus:
`
setupBraintree() {
}
`
The text was updated successfully, but these errors were encountered: