How to ask to user open bluetooht and gps

Hey there. I m using gps for google map and bluetooth for ibeacons. If i open my bluetooth and gps they are working great. But when i dont active them it s not asking permisson like “i m gonna use your bluetooth your your gps so do u accpet it”. How can i do this ?