Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOSとAndroidでExposureSummaryのattenuationDurationsの定義が異なる #140

Closed
2 tasks done
keiji opened this issue Jan 1, 2022 · 0 comments · Fixed by #141
Closed
2 tasks done

iOSとAndroidでExposureSummaryのattenuationDurationsの定義が異なる #140

keiji opened this issue Jan 1, 2022 · 0 comments · Fixed by #141
Assignees

Comments

@keiji
Copy link
Owner

keiji commented Jan 1, 2022

Legacy-v1(ENv1)固有の事象のためCOCOA2への影響はない。

事象としては #36 と同様。
ExposureSummaryのgetAttenuationDurationsInMinutesおよびattenuationDurationsが、iOSでは「秒単位」であるのに対して、Androidでは「分単位」と定義が異なる。

ExposureInformation
https://developers.google.com/android/reference/com/google/android/gms/nearby/exposurenotification/ExposureSummary#getAttenuationDurationsInMinutes()

ENExposureDetectionSummary.attenuationDurations
https://developer.apple.com/documentation/exposurenotification/enexposuredetectionsummary/3586985-attenuationdurations

An array that contains the duration, in seconds, at certain attenuations, using an aggregated maximum exposures of 30 minutes.

これらの違いを吸収する仕組みが現在のchinoに実装されておらず、iOSではAttenuationDurationsInMinutesと言う変数名で値を取得しているので、接触確認後の処理が共通化できない。

Android版

  "exposure_summary": {
    "AttenuationDurationsInMinutes": [
      30,
      0,
      0
    ],

iOS版

  "exposure_summary": {
    "AttenuationDurationsInMinutes": [
      1800,
      1560,
      0
    ],

Close条件

  • コードを修正する(ミリ秒単位に統一)
  • 修正版をリリースする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant