Add permission dialog to get user consent

A permission dialog should be shown to user to select whether to grant application to requested permission, when system policy for requested permission is prompt.