[PR #129] [MERGED] Allow "Open In App" for Apps inside LiveContainer & Remove Data Folder after Uninstalling #1065

Closed
opened 2026-03-03 15:38:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LiveContainer/LiveContainer/pull/129
Author: @hugeBlack
Created: 8/18/2024
Status: Merged
Merged: 8/30/2024
Merged by: @khanhduytran0

Base: mainHead: main


📝 Commits (7)

  • 7c8a532 user can input url
  • b443e88 almost working
  • 8cc56af allow open web page with url schemes.
  • f5bad50 fix not working at first launch
  • 91529ad Allow deleting data folder when uninstalling. Removed some debug NSLog.
  • ef77c1a fix some url handling logic
  • 65557d2 allow other actions reach guest app

📊 Changes

15 files changed (+437 additions, -18 deletions)

View changed files

📝 LCSharedUtils.h (+1 -1)
📝 LCSharedUtils.m (+4 -0)
📝 LiveContainerUI/LCAppDelegate.m (+12 -0)
📝 LiveContainerUI/LCAppInfo.h (+3 -2)
📝 LiveContainerUI/LCAppInfo.m (+26 -1)
📝 LiveContainerUI/LCAppListViewController.h (+1 -0)
📝 LiveContainerUI/LCAppListViewController.m (+117 -1)
📝 LiveContainerUI/LCTabBarController.h (+3 -0)
📝 LiveContainerUI/LCTabBarController.m (+5 -1)
LiveContainerUI/LCWebView.h (+11 -0)
LiveContainerUI/LCWebview.m (+150 -0)
📝 LiveContainerUI/Makefile (+1 -1)
📝 TweakLoader/UIKit+GuestHooks.m (+86 -11)
📝 UIKitPrivate.h (+1 -0)
📝 main.m (+16 -0)

📄 Description

I sometimes need to open a link to an app inside LiveContainer, a Spotify album for example, and it's a pain that "Open In App" button doesn't work for apps inside LiveContainer. https://github.com/khanhduytran0/LiveContainer/issues/119

In this PR, I implemented the feature that users can share a Safari page or link to LiveContainer. LiveContainer will open a WKWebView to show these pages and users can click "Open In App" button to open specific apps inside LiveContainer. LiveContainer will intercept that navigation, open the specific app and pass URL scheme to that app.

What's more, I added a link button on the top left corner so users can manually input the URL of a web page or a URL scheme.

I made a Shortcut to accomplish the Safari sharing feature, you can download and have a try: https://www.icloud.com/shortcuts/44ea82ce7ed8469ea24198c375db09a0

P.S. I'm pretty new to Objc so please forgive my dumb code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/LiveContainer/LiveContainer/pull/129 **Author:** [@hugeBlack](https://github.com/hugeBlack) **Created:** 8/18/2024 **Status:** ✅ Merged **Merged:** 8/30/2024 **Merged by:** [@khanhduytran0](https://github.com/khanhduytran0) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (7) - [`7c8a532`](https://github.com/LiveContainer/LiveContainer/commit/7c8a5320ba22a0c5d884c156dad0223da218276f) user can input url - [`b443e88`](https://github.com/LiveContainer/LiveContainer/commit/b443e88c0ed6a2544a4b24573765088feb5a370e) almost working - [`8cc56af`](https://github.com/LiveContainer/LiveContainer/commit/8cc56af27801a2a3d2d8f3a35794e8656547614c) allow open web page with url schemes. - [`f5bad50`](https://github.com/LiveContainer/LiveContainer/commit/f5bad5003db28fe30958da3415131ba0b4dafdd8) fix not working at first launch - [`91529ad`](https://github.com/LiveContainer/LiveContainer/commit/91529ad7fb5bc9111acd4a3a0853c21d0e029a36) Allow deleting data folder when uninstalling. Removed some debug NSLog. - [`ef77c1a`](https://github.com/LiveContainer/LiveContainer/commit/ef77c1ab8d673157018ad3bedf543100fa4ebb02) fix some url handling logic - [`65557d2`](https://github.com/LiveContainer/LiveContainer/commit/65557d2276ba69fcd3178dcf53a634a23fc7e9b7) allow other actions reach guest app ### 📊 Changes **15 files changed** (+437 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `LCSharedUtils.h` (+1 -1) 📝 `LCSharedUtils.m` (+4 -0) 📝 `LiveContainerUI/LCAppDelegate.m` (+12 -0) 📝 `LiveContainerUI/LCAppInfo.h` (+3 -2) 📝 `LiveContainerUI/LCAppInfo.m` (+26 -1) 📝 `LiveContainerUI/LCAppListViewController.h` (+1 -0) 📝 `LiveContainerUI/LCAppListViewController.m` (+117 -1) 📝 `LiveContainerUI/LCTabBarController.h` (+3 -0) 📝 `LiveContainerUI/LCTabBarController.m` (+5 -1) ➕ `LiveContainerUI/LCWebView.h` (+11 -0) ➕ `LiveContainerUI/LCWebview.m` (+150 -0) 📝 `LiveContainerUI/Makefile` (+1 -1) 📝 `TweakLoader/UIKit+GuestHooks.m` (+86 -11) 📝 `UIKitPrivate.h` (+1 -0) 📝 `main.m` (+16 -0) </details> ### 📄 Description I sometimes need to open a link to an app inside LiveContainer, a Spotify album for example, and it's a pain that "Open In App" button doesn't work for apps inside LiveContainer. https://github.com/khanhduytran0/LiveContainer/issues/119 In this PR, I implemented the feature that users can share a Safari page or link to LiveContainer. LiveContainer will open a WKWebView to show these pages and users can click "Open In App" button to open specific apps inside LiveContainer. LiveContainer will intercept that navigation, open the specific app and pass URL scheme to that app. What's more, I added a link button on the top left corner so users can manually input the URL of a web page or a URL scheme. I made a Shortcut to accomplish the Safari sharing feature, you can download and have a try: https://www.icloud.com/shortcuts/44ea82ce7ed8469ea24198c375db09a0 P.S. I'm pretty new to Objc so please forgive my dumb code --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:38:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LiveContainer#1065
No description provided.