首页 > 解决方案 > 如何在谷歌登录对话框中自动检查谷歌日历范围

问题描述

我正在使用带有https://www.googleapis.com/auth/calendar范围和react-native-google-sign 的谷歌日历 api 。调用登录后,对话框会询问您是否要允许。在我附加的屏幕截图中,有没有办法自动检查最后一个选项(请参阅编辑共享和永久)?Google 登录对话框

这是我正在使用的配置:

GoogleSignin.configure({
  scopes: ['https://www.googleapis.com/auth/calendar'],
  offlineAccess: true, // what API you want to access on behalf of the user, default is email and profile
  webClientId:
    '', // client ID of type WEB for your server (needed to verify user ID and offline access)
});

我打电话后会显示对话框 GoogleSignin.signIn();

标签: javascriptreact-nativegoogle-calendar-api

解决方案


推荐阅读