简体   繁体   English

Dialogflow:每次调用应用程序时都需要询问用户权限吗?

[英]Dialogflow: Need to ask user permissions every time app is invoked?

My Dialogflow app calls app.askForPermission() to have the user grant permission so that my app can get his location. 我的Dialogflow应用程序调用app.askForPermission()获得用户授予权限,以便我的应用程序可以获取他的位置。

Do I need to ask the user for this permission every time he launches the app? 每次用户启动应用程序时,我是否需要向用户征求此权限? I am hoping I only need to ask a given user once. 我希望只问一次给定的用户。

Currently, yes you will need to request the permission each time you want to access that value. 当前,是的,每次您要访问该值时都需要请求权限。 However, you can cache the result that you get between steps of a conversation using the JSON object app.data . 但是,您可以使用JSON对象app.data缓存会话之间的结果。 You can also cache the result that you get between sessions using the JSON object app.userStorage . 您还可以使用JSON对象app.userStorage缓存会话之间的结果。 In these cases you should make sure the user is aware that you are caching this data in your app and in your privacy policy. 在这些情况下,您应该确保用户知道您正在将这些数据缓存在应用程序和隐私策略中。

app.userStorage.lastLocation = <location result>

Then you can use it the next time the user starts your app. 然后,您可以在用户下次启动您的应用程序时使用它。

This can be not ideal in certain circumstances depending on the use case of the app and the level of granularity you are seeking. 在某些情况下,这可能并不理想,具体取决于应用程序的使用情况和您正在寻找的粒度级别。

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

相关问题 询问Facebook应用的权限 - Ask permissions for facebook app IONIC 2-每当应用打开时,地理位置请求或许可 - IONIC 2 - GeoLocation ask or permission every time when app open iOS OneDrive(skydrive)应用程序每次运行时都会显示权限对话框 - iOS OneDrive (skydrive) app displays permissions dialog every time it runs 如何向 flutter 中的用户请求多个权限? - How to ask multiple permissions from user in flutter? Android-如何使用PermissionsDispatcher一次请求多个权限? - Android - How to ask for multiple permissions at a time with PermissionsDispatcher? Facebook应用程序在开始时是否需要征求用户权限? - Do Facebook apps have to ask for user permissions at the start? 是否有其他方法可以发布到用户的墙上并请求权限? - Are there different ways to post to user's wall and ask for permissions? 在 iphone sdk 中向有效用户 session 请求扩展权限 - Ask for extended permissions with a valid user session in iphone sdk Facebook不要求我的iPhone应用程序中的用户权限 - Facebook doesn't ask permissions of users in my iPhone app 如何在混合应用程序中请求权限(没有AndroiManifest,只有config.xml)? - How to ask for permissions in an hybrid app (no AndroiManifest, only config.xml)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM