Subraveti Suraj
Subraveti Suraj

Reputation: 163

App permissions for services

When an application calls a service through an intent, will the permissions that the app has, hold for the service as well? Do I need to explicitly check if permissions are granted and request permissions separately in the service again? I'm using the Permiso library to handle runtime permissions for me/

Upvotes: 2

Views: 65

Answers (1)

Venkatesh Selvam
Venkatesh Selvam

Reputation: 1412

You should always Check the permissions before you used it.

  1. if the permission given, Just go forward.
  2. Otherwise, Stop the service (or) Intimate the requirement of permission to the App User.

Upvotes: 1

Related Questions