Closed kanhucd closed 3 years ago
@kanhucd your cms block content should be valid JSON data, check more in the setup instructions https://github.com/troublediehard/magento-react-native#-setup
@troublediehard Have updated the JSON as suggested by you and getting few other errors now. The banner page is visible now but the other Errors are still appearing. Have followed the steps and have given the access to ALL for the INtegration user as given in the documentation.
Here is wrong value for icon name ios-arrow-dropright
.
You are trying access API endpoint which you don't have access to.
The banner page is visible now but the other Errors are still appearing.
I don't see a banner on your screenshots. Hi,
The categories are not showing up though may be because the category Ids filter doesnot work for me some how. Have marked them in yellow in the below screenshot. I have set the Categories 11 and 20 to be displayed in the Homepage under the Banner. And I have access to ALL in the Integration settings.
and what is the response to the following requests?
Thanks for the insight, I was giving the root category ids. Its loading all the images for me now.
However, the icons donot load for my properly. the arrows on the navigation and the icon at the bottom. Could you please guide me on this.
I've cloned the project from Github and try to build on the android. I don't see this issue on my end.
The error you see on the screenshot points you that something wrong with react-native-vector-icons
library. Check if you have the same version as in the git repository "react-native-vector-icons": "6.6.0",
@troublediehard Thanks for the icons version. It worked.
I am getting Authorization error while signup mostly for the "/rest/default/V1/customers/me" it seems. Could you please help me on this. But the Integration API created has got access to ALL.
hi @kanhucd this is API endpoint used customer token, not the admin token that you created for integration. Check it's lifetime settings https://docs.magento.com/user-guide/configuration/services/oauth.html. You have to increase lifetime settings or create reuath logic for the logged customers.
Hi @troublediehard ,
I tried to increase the lifetime settings but no luck. Hope I am not missing anything.
@kanhucd it's hard to say without actual debugging code, but just in case
@troublediehard I am getting this issue while I signup as a new customer.
@kanhucd also issue can be on the Magento side. And the most straightforward way to find out why the issue happened to debug the backend and see why customer token isn't authorized.
Getting the below errors after the app has stared. Not sure if its because of Magento. If you could help. The content I have put in the MobileHomePage is only "HomePage". Still getting a JSON parse error. And the content of Block "19" doesnot get displayed on the App may be because of the JSON parse Error may be.
[Thu Nov 19 2020 18:11:37.112] LOG {"active": true, "content": "Homepage", "creation_time": "2020-11-19 05:22:18", "id": 19, "identifier": "MHP", "title": "Mobile Homepage", "update_time": "2020-11-19 12:30:59"} [Thu Nov 19 2020 18:11:37.113] LOG {"active": true, "content": "Homepage", "creation_time": "2020-11-19 05:22:18", "id": 19, "identifier": "MHP", "title": "Mobile Homepage", "update_time": "2020-11-19 12:30:59"} [Thu Nov 19 2020 18:11:37.114] LOG [SyntaxError: JSON Parse error: Unexpected identifier "Homepage"]
Steps to Reproduce Please provide detailed steps for reproducing the issue.
Smartphone (please complete the following information):