通过代码进行电子邮件和 Android 邮件帐户设置
有没有办法在 android 和 ios 上创建/更改来自源的电子邮件帐户?我们希望为客户提供一种在应用程序中将邮件帐户添加到 Android 和 iOS 设备的方法。
我已经查看了 Android 帐户管理器,但我仍然不确定是否可以使用它添加系统邮件帐户(例如..?):(
对于 IOS 到目前为止我还没有发现什么了:(
Is there a way to create/change an email account from source at android an ios? We would like to provide our customer a way for adding their mail accounts to android and ios devices within in an app.
I've already taken a look at the Android Account Manager but I'm still not sure if I can add System-Mail Accounts with it(example..?) :(
For IOS up to now i haven't found anything :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 iO,您必须使用 适用于 Mac OS X 的 iPhone 配置实用程序 或 < a href="http://support.apple.com/kb/DL926" rel="nofollow">适用于 Windows。基本上这些都是 XML/Plist 文件——只有一些内容被混淆了(比如密码)。但是,如果您不包含密码,则可以在应用程序中修改此 xml 内容,那么您应该能够创建本地 NSURL 并调用 UIApplication 的 openURL。如果这不起作用,您将不得不从网络服务器部署您的配置 - 有一个 指南。在这种情况下,您必须创建一个 http-NSURL 并将其传递给 openURL。
For iOs you will have to create a configuration profile using the iPhone Configuration Utility for Mac OS X or for Windows. Basically those are XML/Plist-Files - only some content is obfuscated (like passwords). But if you don't include passwords you can modify this xml content in your app then you should be able to create a local NSURL and call UIApplication's openURL. if that doesn't work you'll have to deploy your configurations from a webserver - there is a guide for that. In that case you have to create a http-NSURL and pass that to openURL.