iOS:从主屏幕上的书签启动自定义应用程序

发布于 2024-11-27 11:34:45 字数 599 浏览 0 评论 0原文

目标:

在 iOS 主屏幕上创建一个链接/书签,用于启动具有自定义 URL 方案的应用程序。 URL 的内容指定了我的应用程序的行为。我将在主屏幕上放置 6-8 个这样的书签。

我希望任何人都可以就如何实现这一点提出一些建议。谢谢!

背景:

我的应用程序使用大型用户数据数据库(客户端记录:50000+),该数据库在有 WiFi 连接时持续同步。我还没有找到在应用程序之间共享核心数据内容的方法,因此这给我留下了以下两种情况:

  1. 大型应用程序要求用户始终启动该应用程序,然后选择要执行的任务。缺点:用户无法使用主页按钮返回主屏幕。我希望主页按钮能够将我带到一个中心位置,从那里我可以随时启动应用程序来执行我下一步想做的一项任务。

  2. 有许多应用程序,每个应用程序都有自己的任务。缺点是我需要下载并同步所有这些应用程序中的用户数据。由于数据量很大,我无法 100% 确定每个应用程序是否会完全下载并同步所有用户数据。

  3. 制作虚假应用程序,使用指定其行为的 URL 方案直接启动我的主应用程序。该主应用程序是唯一包含和管理用户数据的应用程序。缺点是用户会看到两个应用程序直接相继启动,这可能会令人困惑。

Goal:

Create a link/bookmark on the iOS home-screen that launches an app with a custom URL scheme. The contents of the URL specify the behavior of my app. I will have 6-8 of these bookmarks on the home-screen.

I hope that anyone has some suggestions on how to make this possible. Thanks!

Background:

My apps use a large database of user data (client records: 50000+) that is synced continuously while there is a wifi connection. I have not found a way to share a Core Data contents between apps so this leaves me with either:

  1. A large app that requires the user to start that app always, then select the task to perform. Downside: users cannot use the home button to bring them back to the home-screen. I want the home button to bring me to a central place from where I can always start the app that does the one task I want to do next.

  2. Have many apps, each for its own task. Downside is that I need to download and sync the user data in all of these apps. Since it is a lot of data I can not be 100% sure in each app if all user data will be downloaded and synced completely.

  3. Make bogus apps that directly launch my main app with a URL scheme that specifies its behavior. This main app is the only one that contains and manages the user data. Downside is that the user sees both apps starting directly after one another which might be confusing..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

预谋 2024-12-04 11:34:45

我希望主页按钮能够将我带到一个中心位置
始终启动执行我下一步想做的一项任务的应用程序。

这违反了人机界面指南。用户会期望点击主页按钮退出应用程序。

您可以使用自定义 URL 方案执行您想要的操作,但我认为除了 safari 之外,没有任何应用程序可以添加到主屏幕的链接。为了解决这个问题,我认为您必须在 Safari 中打开一个网页,然后将其配置为使用自定义 URL 方案保存主屏幕链接。我不确定苹果对此有何感想。

我相信你想多了。创建复杂的、非标准的用户界面很少有回报。如果没有解释,任何最终用户都不会理解所有组件是如何组合在一起的,这本身就是一个很大的警告标志,表明界面设计不好。您的应用程序的行为将与所有其他应用程序不同,他们每次使用它时都必须停下来思考。

移动用户总是很匆忙。不要让他们不得不停下来思考。

I want the home button to bring me to a central place from where I can
always start the app that does the one task I want to do next.

That violates the Human Interface Guidelines. User will expect that hitting the home button exits the app.

You could do what you want with a custom URL scheme but I don't think that any app except safari can add links to the home screen. To get around that, I think you would have to open a webpage in Safari and then configure it to save a home screen link with the custom url scheme. I'm not sure how Apple would feel about that.

I believe you are over thinking this. Creating elaborate, non-standard UIs rarely pays off. No end user is going to understand how all the components fit together without explanation and that in itself is a big warning flag indicating a bad interface design. You app will behave differently from all others and they will have to stop and think every time they go to use it.

Mobile users are always in a hurry. Don't make them have to stop and think.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文