简体   繁体   English

使企业应用程序在后台运行

[英]keep corporate app alive in background

I am developing a corporate app that will be publish on an internal store. 我正在开发将在内部商店发布的企业应用程序。 The app is just supposed to keep in memory some credentials but I can't store them on the device for security reasons. 该应用程序仅应在内存中保留一些凭据,但出于安全原因,我无法将其存储在设备上。

I want the app to stay in background as long as possible but I don't know what is the best solution knowing that I won't have to publish the app in the AppStore. 我希望该应用程序尽可能长时间地处于后台运行,但是我知道不必在AppStore中发布该应用程序,因此我不知道什么是最佳解决方案。

I read about the option in plist Required background modes , but I don't know which option is the most efficient for my situation. 我在plist Required background modes阅读了有关该选项的信息,但我不知道哪个选项对我的情况最有效。

Firstly , you don't need to keep running app in background, second you can store "those [secret] credentials" in keychain store with some encrypted format, SHA1 or MD5 or any other cryptographic hash functions can be use for this, third the benefit of this is you can access to them from your different apps as well (by using the same encryption key to decryption and accessing keychain store item), at last when you no longer need it, you can even delete it. 首先 ,您无需在后台运行应用程序; 其次,您可以使用一些加密格式将“那些[秘密]凭证”存储在keychain存储中, SHA1MD5或任何其他加密哈希函数都可以用于此目的, 第三是这样做的好处是,您也可以从不同的应用程序访问它们(通过使用相同的加密密钥进行解密并访问keychain存储项), 最后,当不再需要它时,甚至可以将其删除。 The only thing you need to keep secret is keychain store key (which you used to store credentials) and also your encryption key (to used with cryptographic hash function). 您唯一需要保密的是keychain存储密钥(用于存储凭据)以及加密密钥(与加密哈希功能一起使用)。

There's are several libraries available to easily manipulate data in keychain store, here's the one, and here's the solution to apply MD5 or SHA1 . 有几个库可用来轻松操纵keychain存储中的数据, 这是一个库, 这是 应用MD5或SHA1解决方案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当应用程序在后台时,如何在IOS应用程序中保持XMPP连接活动? - How to keep XMPP connection alive in the IOS App when app in background? 当应用程序进入后台时,如何保持HTTP网络正常运行? - How to keep http network alive when the app go into background? 当应用程序进入后台时如何保持GCKCastSession存活 - How to keep GCKCastSession alive when app goes to background 保持iOS BLE应用在后台运行的最佳实践方法 - best practice methods to keep an iOS BLE app alive in the background 当应用程序在iOS中处于后台时,如何保持活动的socket.io连接? - How to keep alive socket.io connection when app is in Background in iOS? 应用程序在后台模式下如何通过套接字保持活动连接到服务器? - How to keep alive connect to server via socket when app in background mode? 如何在iOS的后台模式下保持Alive PJSIP的生命 - How to keep Alive PJSIP alive in background mode for iOS 由于iOS不允许您在后台运行JS,是否有可能使您的应用程序(运行/运行)处于前列? - Since iOS does not allow you to run JS in the background, is it possible to keep your app (alive/running) in the foregound? iOS 应用程序如何在后台保持 TCP 连接无限期活动? - How can an iOS app keep a TCP connection alive indefinitely while in the background? 如何在后台保持 iOS 应用程序存活超过 10 分钟? - How to keep iOS app alive while in background, longer than 10 minutes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM