Skip to main content

匯出至行事曆 App

使用 add_2_calendar 實作,細節可參考原專案

caution

若未設定此頁面會影響以下功能

限制

此功能只支援,默認相關功能會不顯示

  • Android
  • iOS

設定

Android

從 Android 11 (API 級別 30) 開始,Android 系統要求應用程式在 AndroidManifest.xml 設定。

android/app/src/main/AndroidManifest.xml 增加相關權限設定

AndroidManifest.xml
<queries>
<intent>
<action android:name="android.intent.action.INSERT" />
<data android:mimeType="vnd.android.cursor.item/event" />
</intent>
</queries>

iOS

ios/Runner/Info.plist dict 中加入

Info.plist
  <key>NSCalendarsUsageDescription</key>
<string>Feature calendar would be add schedule to calendar app</string>

字串中的說明為取得權限時會出現的文字說明,可根據你的 App 語言做修改