22
Views
7
Comments
Solved
[Health & Fitness Plugin] Health Fitness Plugin Remove/Add Permission (Android)
health-fitness-plugin
Mobile icon
Forge asset by OutSystems

Hello,

I would like to ask if there's anyone here able to submit their application to Google Play and pass the review with the Health Fitness Plugin?
We are currently having hard time to complete the declaration because of the permssions in the manifest that we currently dont use.


on the other hand, is there a way we can exlcude these permissions and just selects what we really using? as i have tested it and checked that when you reference the Health Fitness Plugin it will include all the permissions at once by default?.

Any help would be much appreciated.

Cheers!

2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

Hey Ali, thanks for the clarification.


You can also configure which health variables the hook will inject as permissions into the manifest, and whether you want read and write permissions, or just one of them. You need to declare all the variables you want to use in the extensibility configurations.

The docs have a section on that topic: https://success.outsystems.com/documentation/11/integration_with_external_systems/mobile_plugins/health_and_fitness_plugin_using_healthkit_and_health_connect/#optional-configuring-which-health-connect-data-types-you-wish-to-access-android-only 


Hope it helps.

2023-05-24 10-18-39
Ali Akmad

Hi Pedro,

I have tried it and this works like magic.

Will mark this as a solution. 

Thank you so much!!

Cheers!
Ali

2023-03-13 10-26-05
Sriyamini

Hi Ali,

You can try you can clone the Health Fitness Plugin instead of modifying the APK manually,  in OutSystems, override the manifest file by edit the Extensibility Configurations in the plugin properties and remove unnecessary permissions. This way, only the required permissions are included. you can refer below document. it may helps you. 

Still you are facing the issue like If Google Play still flags the permissions, you may need to submit a declaration form explaining their presence, even if they are not used.

Hope its helps your problem. 

Thanks,

Sriyamini J

2023-05-24 10-18-39
Ali Akmad

Hello Sriyamini ,

I have tried altering the manifest from extensibility but seems not working as i have found that the permissions were injected to the manifest through hooks. 

And yeah the last option i can think of is to clone it and modify the plugins hook. But as much as possible i dont want to do that so i post here in case i have another options.
Thanks anyway for your response appreciate it.

Cheers!

Ali

2023-03-13 10-26-05
Sriyamini

Hi,

Oh ok, If the permissions are injected through the hook, it may not be sufficient to change the manifest through the Extensibility Configurations.

If you’re looking to avoid cloning the plugin, maybe check if there’s a way to override or disable those hooks within the plugin settings. In addition, have you tried to reach OutSystems Support or Plugin maintainers? They may have best practice to deal with such a problem.

If you get a solution, tell me it would be very good to know how it is solved.

Thanks,

Sriyamini.J

2025-01-10 11-40-52
Pedro Gustavo Bilro

Hey Ali. Are you referring to removing permissions related to background jobs on Android, which are added as a hook by the Plugin?


If so, you can use the "DisableBackgroundJobs" preference in the Extensibility Configurations.


More info in the Plugin's documentation here: https://success.outsystems.com/documentation/11/integration_with_external_systems/mobile_plugins/health_and_fitness_plugin_using_healthkit_and_health_connect/#optional-opt-out-of-permissions-for-background-jobs-android-only


2023-05-24 10-18-39
Ali Akmad

Hi Pedro, 

Thanks for the response, Though I am not referring to the background jobs, the permissions i need to remove are the health variable permissions which we dont use. 

I believed this is outsystems maintained plugin and it would be good if they could just expose some option to cofigure the hook where we can choose which permissions we want to add. In this way it would be more flexible because like in my situation not all the health permission was used in our applications and Google detected those permissions declared in the manifest we dont use and we need to explain why it was there when we are not using it. 


For the interim solution, we are able to pass the google play review by modifying the plugin hook and just includes permissions  we used and removed we dont, unfortunately we need to clone the plugin to do so which for us not ideal, so maybe outsystems team would consider my suggestion above.


Im going to make this as a solution hopefully we could get a better solution in the future around this matter. :)

Cheers!
Ali

2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

Hey Ali, thanks for the clarification.


You can also configure which health variables the hook will inject as permissions into the manifest, and whether you want read and write permissions, or just one of them. You need to declare all the variables you want to use in the extensibility configurations.

The docs have a section on that topic: https://success.outsystems.com/documentation/11/integration_with_external_systems/mobile_plugins/health_and_fitness_plugin_using_healthkit_and_health_connect/#optional-configuring-which-health-connect-data-types-you-wish-to-access-android-only 


Hope it helps.

2023-05-24 10-18-39
Ali Akmad

Hi Pedro,

I have tried it and this works like magic.

Will mark this as a solution. 

Thank you so much!!

Cheers!
Ali

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.