eswick / appcenter

Add apps as pages in Control Center
Other
34 stars 8 forks source link

Added basic LockScreen support for unlocked devices. #36

Closed nathanaccidentally closed 7 years ago

nathanaccidentally commented 7 years ago

This adds support for using App Center and running applications on the LockScreen while the device is in an unlocked state. It's kinda buggy right now but it works well enough.

I mainly tried this because I figured it might work with Xen, but so far that hasn't been the case (Xen doesn't handle CC changes on the LS very well so it crashes into Safe Mode.)

nathanaccidentally commented 7 years ago

Any info on why this was closed?

eswick commented 7 years ago

I don't mean to offend you, but the code quality wasn't really up to this project's standards, sorry :/

%@ isn't working. Are you unlocked? Not fond of that :/

if(true) { // Just need a boolean to fill this..

if (isDeviceUnlocked) { // Should ignore lockstate.
    [self reloadForUnlock];
} else {
    [self reloadForUnlock];
}

We're both really busy with handling other bugs right now, give us about a week and we'll be able to start looking into this :)

Also, we're planning on adding a preference pane to choose which apps can be viewed on the lock screen, and which cannot.

nathanaccidentally commented 7 years ago

Ah ok cool thanks. I did this in about 20 minutes just to get this working for me, but I just wanted a reason why. I hope you guys come up with a solution! :)

eswick commented 7 years ago

Thank you very much! I had a question though; did you test this out yourself and verified that apps work on the lock screen?

nathanaccidentally commented 7 years ago

Yeah I tested it. I posted a video here on twitter:

https://twitter.com/clichewow/status/834993710609883136

Also, would this work?

[UIView animateWithDuration:0.25 animations:^{ self.appIconImageView.alpha = 1.0; self.hostView.alpha = 1.0; [self stopSendingTouchesToApp]; // Should be good! App acess enabled on LockScreen. [self performSelector:@selector(startSendingTouchesToApp) withObject:self afterDelay:0.6]; } }]; }); }]; }

I can't test because I'm at school with no theos. I am pretty new to Obj C so it's a little confusing how things work. Thanks!