简体   繁体   English

Fusion Tables权限:如何限制,以便Android应用只能添加新条目?

[英]Fusion tables permissions: how to restrict so that android app can only add new entries?

I'm writing an (Android) app (probably a website too) that logs some data from the user when they click a button. 我正在编写一个(Android)应用程序(可能也是一个网站),该应用程序会在用户单击按钮时记录用户的一些数据。 I'm currently playing with storing this data in a Google Fusion Table. 我目前正在将这些数据存储在Google Fusion Table中。 How can I configure the permissions so that the app (or the website) is allowed to add an new entry to the table, and view it, but not change existing data? 如何配置权限,以便允许应用程序(或网站)向表中添加新条目并进行查看,但不能更改现有数据?

I imagine I could do this by running a service in the middle that takes the data from the phone, and is auth'ed to write to the table, but would rather a simpler solution. 我想我可以通过在中间运行一个服务来实现此目的,该服务从电话中获取数据,并经过授权可写入表中,但是宁愿是一个更简单的解决方案。

I think what you want is not possible, as there is no "INSERT only" permission, if you are the editor of a table you actually can edit and insert data. 我认为您想要的东西是不可能的,因为没有“仅插入”权限,如果您是表的编辑者,则实际上可以编辑和插入数据。

Maybe you can do something similar when using views, so a user can update this view, but not all the other data. 使用视图时,也许您可​​以执行类似的操作,因此用户可以更新此视图,但不能更新所有其他数据。 Maybe you can hide the data from the editable view right after a user inserted it. 也许您可以在用户插入数据后立即将其从可编辑视图中隐藏。 Of course, this must be considered as a hack or workaround. 当然,必须将其视为黑客或解决方法。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM