Re-add background refresh (correct Info.plist)#7
Merged
Conversation
Brings back opportunistic background refresh (BGAppRefreshTask) so block/config changes can notify without opening the app — the modern equivalent of what AltStore (also sideloaded) does. Key difference from the earlier attempt that broke install: the Info.plist is now a faithful superset of the working generated plist (adds CFBundleDevelopmentRegion that was missing) plus only the two background keys (UIBackgroundModes=[fetch], BGTaskSchedulerPermittedIdentifiers=[com.happwn.refresh]). Background fetch needs no entitlement, so it installs on a paid cert. - Restore BackgroundRefresh (register/schedule/cancel), happwnApp wiring, Settings background toggle + interval (default on). - Refresh now runs in background + on launch + pull-to-refresh. - Bump to 1.0.5 (build 6).
Long-press a config row to copy just the server address (host/IP) separately from the full URI. ConfigEntry.host parses the scheme://[userinfo@]host:port form (vless, trojan, ss…) and the vmess base64-JSON 'add' field; handles IPv6 literals. Tap still copies the full config. Tests cover vless/trojan/ss/vmess/IPv6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings back opportunistic background refresh so config/block changes notify without opening the app — like AltStore (also sideloaded) does.
Why it should install now (unlike the first attempt): the Info.plist is a faithful superset of the working generated plist — it restores the previously-missing
CFBundleDevelopmentRegionand adds only the two background keys (UIBackgroundModes=[fetch],BGTaskSchedulerPermittedIdentifiers=[com.happwn.refresh]). Background fetch needs no entitlement, and AltStore proves a sideloaded app can ship it.BackgroundRefresh(BGAppRefreshTask), app wiring, Settings background toggle + min-interval (default on).If this still fails to install, background itself is the cause (plist is now complete) and we revert; otherwise the earlier break was the malformed manual plist.