sergealagon / Immortalizer

Make apps stay in the foreground as you wish
GNU General Public License v3.0
44 stars 1 forks source link

[bugs] cant open other apps from an immortalized app #1

Open Hamzabdx opened 2 weeks ago

Hamzabdx commented 2 weeks ago

[bug] cant open other apps from an immortalized app then it suddenly opens once i leave tHe immortalized app also i had another bug where the keyboard would not show in sileo which i have it immortalized im on ios 16.2 iphone 14 pm dopamine 2 latest version

sergealagon commented 2 weeks ago

Can you tell me step by step on how to replicate the bug you’re experiencing?

For the second bug you mentioned, I tried immortalizing Sileo and the keyboard works just as fine for me.

Try disabling all your tweaks (except Immortalizer and its dependencies) to see if the issue is still there. If the issue disappears, tell me the list of your tweaks. I will check if they might have a conflict with Immortalizer.

Hamzabdx commented 2 weeks ago

The second bug isnt happening anymore the first one try immortalizing settings app then go to your tweaks preferences and try opening any of the links you have on the bottom they wont open in safari until you leave the settings app

Hamzabdx commented 2 weeks ago

I just figured out how to reproduce the second bug immortalize both settings app and sileo open settings app while sileo isnt in app switcher then open keyboard in settings app then without closing keyboard go back to homescreen then open sileo and try to open keyboard it will stay empty

Hamzabdx commented 2 weeks ago

It might be conflicting with some other tweak i have bcz i can reproduce now easily in sileo and whatsapp only in search bar the keyboard shows in conversations but not in the search bar i will try to find out what it it tomorrow

sergealagon commented 2 weeks ago

I tried replicating exactly like what you've describe, but I can't seem to trigger the bug you're experiencing. Immortalizing settings app and going to my tweak prefs to open one of the links works just as expected.

Even the second bug doesn't trigger for me. Leaving the keyboard on immortalized settings then opening sileo and opening keyboard works fine. It minimized the keyboard from settings when I use keyboard on sileo. And vice versa.

If you believe it might be conflicting with a tweak, try disabling all of them except Immortalizer, then enable your tweaks one by one, until you find the tweak affects it. Then let me know what tweak it is so I can make necessary fixes.

Hamzabdx commented 2 weeks ago

I just tested now using icleaner pro disabled every tweak but immortilizer the two bugs still exist the only thing i didnt tell you is i have alot of apps immortalized that could be the reason i dont know maybe its my ios version or jailbreak which are ios 16.2 and dopamine 2 jailbreak

sergealagon commented 2 weeks ago

I've tried immortalizing 10 apps all running at the same time. No issues on my end. I'm on 16.1.1 dopamine. Though I've released version 1.0.1 here that adds additional safety checks, maybe that will solve your problem. Try it and let me know

Hamzabdx commented 2 weeks ago

I just updated to this version and the not opening other apps while immortalized bug is fixed even when every other tweak is enabled but the keyboard bug is still there even when all other tweaks are disabled heres my tweaklist from sileo Tweaklist.txt

Hamzabdx commented 2 weeks ago

I just figured out a weird fix for this which is to pretend to go to homescreen but not go to homescreen and when i keep doing it for about 4 times the keyboard shows up

Hamzabdx commented 2 weeks ago

Heres a video of it

https://github.com/user-attachments/assets/ff0a6f73-98fd-4884-aad6-25a8021cacaf

Hamzabdx commented 2 weeks ago

Btw there another bug which existed for me in backgrounder thats why i didnt mention it which is when you go to settings for example open keyboard leave it open then switch to twitter for example there will be a ghost keyboard which hides ui as if the keyboard is open in twitter but it isnt open to fix it i have to close every immortalized app that has keyboard open

sergealagon commented 2 weeks ago

Good thing it has fixed the major bug for you.

However, I can’t still replicate that keyboard bug

https://github.com/user-attachments/assets/5795c1d0-5f24-4051-b1c8-edf1b50deb3c

It doesn’t happen to me. Maybe there’s a tweak that has changed in your files that makes the bug persist even if you have disabled all tweaks already. Since you also mentioned you're having bugs with backgrounder, it might really be a conflict with one of the tweaks you have/had. Because normally keyboard will only persist in one app. Like if you leave a keyboard opened on a certain app, then open another app and open the keyboard again, the keyboard on the previous app will detach regardless of its state and have the current have will have the priority on the keyboard itself, since it only allowed to have one keyboard instance opened. Something must've making it persist on the previous app, that's why its not showing on other apps.

Going back and forth with the homescreen/app switcher might seem to do the trick in your case, I think that's because it resets the entire view hierarchy, not sure.

Hamzabdx commented 2 weeks ago

No i disnt have this bug in backgrounder i had the ghost keyboard bug but not this i started getting this after installing immortilizer but maybe youre right

Hamzabdx commented 2 weeks ago

Also when i disable this tweak in the app the bug disappears

sergealagon commented 2 weeks ago

Oh I meant the ghost keyboard bug with backgrounder. What I'm trying to say is basically the bug you're experiencing on immortalizer and on backgrounder have something in common. It stops the keyboard view (or the its UI) from showing correctly. I had backgrounder as well before even making this tweak and I never experience ghost keyboard bug on that tweak either. I'm curious what's the culprit. It may be one of your installed tweaks.

Hamzabdx commented 2 weeks ago

Ok ill try to figure it out can you not make a fix for it to not happen? since you have an idea on what is happening thanks in advance

sergealagon commented 2 weeks ago

I may have an idea what's happening, but I won't be able to pinpoint the exact cause since I have no idea what tweak is causing the conflict. I'm trying some of your installed tweaks to see if I can replicate the bug. I won't be able to fix it if I can't replicate the bug. Let me see what I can do.

Hamzabdx commented 2 weeks ago

Ok thanks bro

Hamzabdx commented 2 weeks ago

Lol the bug immidiatly came back thats why i deleted that

sergealagon commented 2 weeks ago

Oh. Do you happen to have any keyboard-specific tweaks? Tried one of the keyboard tweaks you have (laetus) and theme packs. Keyboard still works perfectly. Do you have other keyboard tweaks aside from Laetus?

Hamzabdx commented 2 weeks ago

Yes laetus/keyboardplus/shortmoji2/emojifontmanager btw keyboardplus and shortmoj 2 will cause respring loops unless turned off from choicy global and turned on in specific apps that i want them turned on in and they require xinam1ne from cypwn to work you dont have to try to figure it out its ok 👍

sergealagon commented 2 weeks ago

Thanks. I really appreciate your understanding. I just want everyone to have a working copy of my tweak without any issues. I'd still try to investigate, and even try to do a rewrite if possible. I'll leave this open for the meantime.

Hamzabdx commented 2 weeks ago

Btw installing backgrounder15 cc on its own without auto state from cypwn fixed this bug and now im sure bcz i tested it alot image

Hamzabdx commented 2 weeks ago

Btw i posted this comment on your twitter “Great tweak can you add option that keeps a specific app alive even after closing it from app switcher also an option to have that app use the least amount of cpu gpu and ram possible thanks alot Can you also make it so it shows the indicators in app switcher too also can you add a control center switch where you can switch an app on or off from cc also switch the whole tweak on/off from the same cc button thanks in advance” id be willing to pay for a tweak like this basically a “bakgrunnr” clone you can make it and put it as paid in a different repo than havoc and cypwn wont crack it bcz they have a problem with havoc

sergealagon commented 2 weeks ago

That’s weird but an interesting discovery. Kinda weird since Immortalizer should work independently.

On bright side, I think I found the culprit. Will try to look into it further and fix this as soon as possible.

As for feature request, I will try to work on it too. For now I’ll mainly focus on fixing bugs :) I want you guys to have a fully working tweak with no bugs :)

Hamzabdx commented 2 weeks ago

Thanks bro