自定义键盘扩展程序可以以任何方式识别我的配套应用程序的用户吗? [英] Can a custom keyboard extension identify a user of my companion application in any way?

查看:180
本文介绍了自定义键盘扩展程序可以以任何方式识别我的配套应用程序的用户吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自定义键盘应用扩展程序是否可以根据随播应用中的设置/凭据/标识机制检测特定用户的身份?通过识别特定用户,我的意思是在我自己的应用程序/服务/品牌的上下文中,而不是他们设备上的个人/电话数据。

Can a custom keyboard app extension detect a specific user’s identity based on settings/credentials/identification mechanism in the companion app or otherwise? By "identifying a specific user", I mean in the context of my own application/service/brand, not personal/phone data on their device.

或者它总是一个静态键盘,总是无法确定使用它的用户/手机?

Or is it always a static keyboard, always unable to determine the user/phone using it?

推荐答案

我认为你应该可以。在您的随播应用中,在 NSUserDefaults 中放置您想要的任何标识符,然后让键盘在其 UIInputViewController 子类。

I think you should be able to. In your companion app, put whatever identifier you want in the NSUserDefaults, and let the keyboard pick that stuff up in its viewDidLoad of its UIInputViewController subclass.

如果有效,请告诉我。

这篇关于自定义键盘扩展程序可以以任何方式识别我的配套应用程序的用户吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆