・2020/06/06
「コロナ濃厚接触通知アプリ」と同じ技術の Bluetooth方式の Googleの Nearbyライブラリを使ってみる
(Androidと iOSに対応した Bluetooth方式の「近接通知システム」を自作する方法、リスク通知への応用も)
Tags: [Android開発]
●本物の新型コロナウイルス接触確認アプリ(COCOA)の元になったソースリスト
Covid-19Radar/Covid19Radar
COVID-19Radar 新型コロナウイルス接触確認アプリ(COCOA)
COVID-19 Contact-Confirming Application
●「コロナ濃厚接触通知アプリ」と同じ技術の Bluetooth方式の Googleの Nearbyライブラリを使ってみる
Androidと iOSに対応した Bluetooth方式の「近接通知システム」を自作する方法、リスク通知への応用も
Googleの提供する Nearbyライブラリを使う事で Bluetooth方式の「近接通知システム」を自作できます。
Nearbyライブラリは下記の Android版のサンプルでも使用されています。
●参考資料
新型コロナウイルス感染症の対策として Androidと iOSに対応した Bluetooth方式の「濃厚接触の追跡システム」の構築を各国の政府が進めています。
下記の資料を参考にすれば「濃厚接触の追跡システム」の実装が可能です。
なお、開発した「濃厚接触の追跡」のアプリを公式アプリストアで公開できるのは公衆衛生当局だけです。
厚生労働省の新型コロナウイルス感染症対策テックチームは、接触確認アプリとそのシステムに関わる仕様を公開しました。
接触確認アプリ及び関連システム仕様書 - 政府CIOポータル
techteam_20200526_01.pdf
● AppleとGoogleが共同で提供する Exposure Notification Framework(略称 AGF)
AppleとGoogle、新型コロナウイルス対策として、濃厚接触の可能性を検出する技術で協力
詳細情報
1.接触通知アプリ関連のポータル
https://www.google.com/covid19/exposurenotifications/
Exposure Notifications: Using technology to help public health authorities fight COVID‑19
https://www.apple.com/covid19/contacttracing/
Privacy-Preserving Contact Tracing
2.開発者に向けたコードの公開
Google Androidは Google Play servicesの Nearbyを使います。
https://developers.google.com/nearby
https://developers.google.com/nearby/messages/ios/get-started
https://github.com/google/exposure-notifications-android
Exposure Notifications Android Reference Design
play-services-nearby-18.0.2-eap.aar
※ Android版の Exposure Notifications 濃厚接触サンプルアプリは Nearbyライブラリを組み込んでいます。
Apple iOS iPhoneは ExposureNotificationを使います。
対応機種が iOS 13.5以上となっています。
● iOS 13.5以上の対応機種
機種名 | 発売日 |
iPhone 6s以降 | 2015年9月発売 |
iPad 第5世代 | 2017年3月発売 |
iPad Air 2 | 2014年10月発売 |
iPad mini 4 | 2015年9月発売 |
iPad Pro | |
iPod touch 第7世代 | 2019年5月発売 |
https://developer.apple.com/documentation/exposurenotification
ExposureNotification
Implement a COVID-19 exposure notification system that protects user privacy .
SDK iOS 13.5+
Building an App to Notify Users of COVID-19 Exposure
Building an App to Notify Users of COVID-19 Exposure
Inform people when they may have been exposed to COVID-19.
iOS 13.5+
Xcode 11.5+
3.ユーザーインターフェースのサンプル画像
(リンク切れ)
● Exposure Notification FAQ
Exposure Notification FAQ
● Android Nearbyライブラリのサンプル
https://github.com/googlearchive/android-nearby
https://github.com/android/connectivity-samples
サポート ライブラリ パッケージ
android-nearbyを動かす事で、Bluetoothの近接通知を体感できます。
Google Developer Console
Nearby Messages API
Credentials Create new key API key
Failed to resolve: com.google.android.gms:play-services-nearby:9.0.0
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
compile 'com.google.android.gms:play-services-nearby:17.0.0'
Failed to resolve: com.android.support:appcompat-v7:28.0.0
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
maven { url 'https://maven.google.com' }
● iPhone iOS Nearbyライブラリのサンプル
https://github.com/googlesamples/ios-nearby
Tags: [Android開発]
[HOME]
|
[BACK]
リンクフリー(連絡不要、ただしトップページ以外は Web構成の変更で移動する場合があります)
Copyright (c)
2020 FREE WING,Y.Sakamoto
Powered by 猫屋敷工房 & HTML Generator
http://www.neko.ne.jp/~freewing/android/android_ios_nearby_library_build_risk_alert/