Back

My website frontend is not working on mobile when appwrite provides data

  • 0
  • Self Hosted
  • Web
Manaberry_mac
6 Sep, 2023, 06:11

I just compiled my project, and setup a ng-serve ready container. It just loads the file and I have not setup anything else.

TL;DR
Issue: The website frontend is not working on mobile when appwrite provides data. Possible solution: - Check the CPU usage on localhost and the live website to see if there are any differences. - Add console.log() statements around the code to track down where the issue may be occurring. - Check for any infinite loops or high CPU usage that could be causing the problem. - Use remote chrome debugger/dev tools to see if there are any network logs or error messages. - Ensure that the appwrite calls being made from the app are working correctly. - Consider making the code open-source or sharing the source code with others who may be able
Manaberry_mac
6 Sep, 2023, 06:11

I went for the "lazy way"

safwan
6 Sep, 2023, 06:13

hahaha makes sense

safwan
6 Sep, 2023, 06:13

okay is your code open-source?

safwan
6 Sep, 2023, 06:14

maybe there's something up with the appwrite calls being made from the app

Manaberry_mac
6 Sep, 2023, 06:15

It's not open source but I can DM you the source

Manaberry_mac
6 Sep, 2023, 06:22

DMed the link

Manaberry_mac
6 Sep, 2023, 06:25

I'm running appwrite 1.3.8 btw

Drake
6 Sep, 2023, 18:14

any chance you can see if any errors are being thrown while on mobile?

Manaberry_mac
7 Sep, 2023, 03:33

I don't know how. I've tried with the inspecter tool of Chromium but it doesnt throw a thing. Very odd. @safwan got my source code. Not sure how it goes.

Drake
7 Sep, 2023, 03:40

So you're doing remote chrome debugger/dev tools?

Can you see the network logs to see what's loading?

Drake
7 Sep, 2023, 04:08

i think you might have an infinite loop or something on your app...maybe nothing loads on mobile because there aren't enouhg resources to do so

Drake
7 Sep, 2023, 04:08
Drake
7 Sep, 2023, 04:08

CPU usage on your page is 100%

Drake
7 Sep, 2023, 04:09

maybe that's why the page gets stuck

Drake
7 Sep, 2023, 04:09

it gets stuck on desktop too. i have a hard time closing the window

Drake
7 Sep, 2023, 04:11

infinite loop probably happens after data gets loaded which is why CPU isn't 100% on noapi:

Drake
7 Sep, 2023, 04:12

maybe you can add some console.log() around to try and see where the loop is

Manaberry_mac
7 Sep, 2023, 04:18

I just have some "accessing logs" form the docker container on angular. But nothing fancy sadly. Going to try some console.log thing. Thanks for suggesting. So odd to have that issue on mobile. Makes no sense to me : <

Manaberry_mac
7 Sep, 2023, 07:27

I have no issue loading on my localhost serve. But as soon as its the live website, the issue occurs

Drake
7 Sep, 2023, 17:53

did you check the CPU usage on localhost too?

safwan
7 Sep, 2023, 19:59

Alright so I've done ng serve for a dev server, and it worked perfectly fine

safwan
7 Sep, 2023, 20:00

When I do ng build and map the index.html to a live server, mobile has issues

safwan
7 Sep, 2023, 20:00

I have tried diagnosing the issue, but can't seem to figure it out

Manaberry_mac
8 Sep, 2023, 07:17

that's so strange

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more