dariosalvi78 / cordova-plugin-health

Cordova plugin for the HealthKit and Google Fit frameworks
MIT License
179 stars 130 forks source link

sourceBundleId with Android 10. #345

Open BenLaKnet opened 1 week ago

BenLaKnet commented 1 week ago

Hi @dariosalvi78 ,

I will try to use this to manage synchronization, but it returns undefined or package name of my app.

sourceBundleId: the identifier of the app that produced the data
sourceName: (only on iOS) the name of the app that produced the data (as it appears to the user)
sourceDevice: (only on Android) the device where the data came from manufacturer and model

I do not understand why because I synchronize with "Samsung Health" (health datas activities) and blood_glucose with my app (bluetooth).

With iOS, sourceBundleId seems to be correctly implemeted and sourceName too.

Is there a cordova plugin to show logo of a BundleId app?

Many thanks.

dariosalvi78 commented 7 hours ago

do you get a sourceBundleId for any of those apps on Android?

BenLaKnet commented 1 hour ago

Undefined for all apps with Android. It is running only for my app with my bundleId.