Hi Doug,
thanks for clarifying (and updating the docs already
).
My setup is:
- react-native app, “ejected expo mode”
- android sdk/linux build on an emulated android device
-
fidel-react-native
installed and linked
- and finally, I have a navigation screen that has a button that
onPress
loads the fidel ui
.
While using the snippet provided (having added additional log
statements for debugging purposes):
Fidel.openForm((error, result) => {
if (error) {
console.error(error);
} else {
console.info(result);
}
});
I am facing some peculiar behaviour with regards to the result
and I am unclear if I am doing something wrong.
- The
fidel ui
loads and I can see the banner of my choice in the background.
- Upon entering card details and linking I can see the grey
linking card/card already linked
grey popup
- The card I am linking indeed appears in the playground.
- Upon exiting the UI via the
X
button on the top left I immediately see LOG {"errorCode": "user_canceled", "message": "User canceled card linking."}
I cannot seem to be able to extract/return the result object
back to my app. I get an empty object that does not contain the “result json”.
LOG {}
Have I misunderstood your documentation / is this expected?
Thanks again,
Peter