Skip to content
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

Userscripts with old iPhone #266

Closed
ghost opened this issue Jun 3, 2022 · 10 comments
Closed

Userscripts with old iPhone #266

ghost opened this issue Jun 3, 2022 · 10 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2022

Dear Developer,

One problem I'm having is that Userscripts don't work well on Apple devices.
Specifically, on my iPhone 12 Pro Max, Userscripts works extremely stable. But by my iPhone 7 session, Userscripts are almost unstable.
I need friends who are using old iPhones to confirm this problem :((

@ghost
Copy link
Author

ghost commented Jun 3, 2022

Scripts already in Userscript work unstable on iPhone 7, Userscripts sometimes loads scripts and sometimes doesn't. I don't know if other devices have the same problem as me.

@quoid
Copy link
Owner

quoid commented Jun 3, 2022

@longthinh

I am sorry to hear it is unstable on older phones. I personally have an iPhone 8 and it seems somewhat stable, however I do sometimes experience scripts not loading. It seems random and I have not been able to figure out what causes it, but it could be performance related, and does not seem exclusive to Userscripts extension as I experience it with other extensions as well.

I understand this might be frustrating for you (or your friend), but we need more information and way to reproduce the problem(s) in order to address.

"General Instability" is hard to address unless I have the device you are speaking about and I do not. Is there a reproducible issue you can share?

@ghost
Copy link
Author

ghost commented Jun 3, 2022

Thank you for viewing my thread and replying to me!

Hmm, it's quite a problem to deal with when you don't have all the iPhone devices and I get this. Scripts not loading on my iPhone 7 is persistent at all times and every Scripts that I use. I got confused and I tried testing it with another app called Macaque and surprisingly it worked perfectly. My guess is that the main cause of the instability is that your Userscripts are being remote from a MacOS and relatively weak Apple devices like my iPhone 7 will be affected. I hope from this information you will find a fix to help all other users using old iPhone devices. I'll probably have to ditch the iPhone 7 and just use the iPhone 12 that I'm using. Hahaha

If you need me to provide anything more detailed to help you optimize for Userscripts, I'm available.

@quoid
Copy link
Owner

quoid commented Jun 3, 2022

Thanks for the reply. I thought the issue was the extension sometimes not being reliable but it sounds like it simply does not work on the iPhone 7.

That could be a different issue.

Can you please provide the hardware details for the iPhone 7? The ones that are asked when you open an issue?

Can you also tell me what "doesn't work" looks like on the device? Does the pop up show an errors? Are the scripts present but not executing? What are the symptoms?

If it works on your iPhone 12 but not 7 and they are both running the required iOS version, it could be a setup problem.

Like I said, I have an iPhone 8 which is a quite old device and 95%+ of the time the extension functions as intended, I would expect the same from a 7, however I'm not running the same userscripts as you.

@ghost
Copy link
Author

ghost commented Jun 4, 2022

Sorry for my delay

I'll give you a link to a video where I recorded my error with Userscripts on my iPhone 7 device. Hope you can figure out and understand everything while watching the video.
https://dl.dropbox.com/s/q4k8o2f0t4zw7ro/RPReplay.MP4

A few hardware details of my iPhone 7 are: Apple A10 Fusion (16 nm), RAM 2GB and ROM 32GB

Looks like Userscripts failed to load the Scripts and execute reading it

@quoid
Copy link
Owner

quoid commented Jun 5, 2022

@longthinh

Thank you very much for the video, I really appreciate your time.

In order to figure out exactly what is causing the issue would take a couple more steps, if you feel up to more debugging.

The first thing to try is to attempt to load a test script and nothing else. This will tell us if there is something with the userscripts that is causing the issue. There's a test script that is included in every issue, but for the sake of ease, here is a simple one:

// ==UserScript==
// @name        iosTest
// @description for testing on ios
// @match     <all_urls>
// @run-at document-start
// @noframes
// ==/UserScript==

alert("iosTest");

If you add that userscript to a new folder in the Files app, and select that new folder as your source directory within Userscripts, and then visit https://example.com - does the popup load and/or does the script execute?

@ghost
Copy link
Author

ghost commented Jun 8, 2022

Hello,

I'm really sorry for my delay.

I went through work on a big project and forgot about you.
Well, of course I tested a simple script to see if it works or not, but it didn't work at all. The results returned are the same as the video you have watched

@quoid
Copy link
Owner

quoid commented Jun 9, 2022

@longthinh no need to apologize for any delay, I appreciate you taking the time to help clarify the issue

The results returned are the same as the video you have watched

Considering that, the only way to further figure out what is going on would be to dig into the developer tools and console.app of the iphone 7 and to check for error messages or warnings. There's some direction in this thread on how to do that, but it is quite involved I understand if you do not wish to.

@ghost
Copy link
Author

ghost commented Jun 9, 2022

Hi friend,

Application bug reporting is a part of helping developers to improve the product and I love this work because I have user products myself and I can't find them by myself. out all the remaining errors.

It's okay! I understand your difficulty and I don't feel disgusted with you. If we were in the same country I would gladly send you my iPhone 7 for you to study :).

Although for now my iPhone 7 can't use Userscripts but I have iPhone 12 and it's perfect. I will report to you as soon as I find a new bug.

@quoid
Copy link
Owner

quoid commented Oct 11, 2022

Closing due to inactivity.

I think that resolving other issues, like #278 will help with older phone usage.

@quoid quoid closed this as completed Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant