Fetch api only work on simulator #108
Replies: 3 comments 4 replies
-
I think official zepp developers won't gonna answer this because mi band 7 is not an official zepp os device. |
Beta Was this translation helpful? Give feedback.
-
I can't understand the problem but if official developers helped you so and if it would work flawlessly so give me the correct code of I also wanted to try |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the long wait, this may be a bug in the fetch API.
For example: ctx.response({
data: { result: typeof res.body === 'string' ? JSON.parse(res.body) : res.body },
}) |
Beta Was this translation helpful? Give feedback.
-
Hi, my problem is when i call an api in the simulator it works great but in the device always return undefined. Here are some pictures:
Band 7 in simulator
Log in simulator
My band 7
Log in my smartphone
This is the code:
index.js in app-side:
index.js in page:
Result of the api:
My smartphone run android 10 and device is band 7 system version: 1.10.58.1
Beta Was this translation helpful? Give feedback.
All reactions