give app permission(Bluetooth, GPS) before launching the application

hi,

I'm installing my application from the third party service, it can be MDM server or other services/library,

I want to give all permission like GPS, Bluetooth before launching the app so that I'll not see any permission dialogue.

please give me a suggestion on how can I achieve this feature.
or
is there any other possibility to achieve this task.

Thanks
When your installed app, then open Settings, found your app then in app settings, you can check this
Jarvisit i want to do it automatically.
I think it's not possible since, you need to show the alert to the user can accept or don't allow you to use this such features; if the user don't allow this, you can't show the alert again, and the user will need to allow these at your app settings, a possible workaround for this is to check if the permission was not allowed when the user try to use this; if not was allowed, you can show an alert saying: go to settings and enable access to X.
For privacy reasons Apple wont allow it.
Apple documentation clearly states "Request personal data only when your app clearly needs it." and I don't think that's the case before one starts the app itself.

Maybe this helps you, but as people already mentioned here it is not possible inside the iOS environment for good reasons:
https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/requesting-permission/
Hi UmerHamid!

As others in this thread have pointed out, this is not possible on iOS.
The only way to get permissions for these types of technologies inside of your application is by presenting the permissions prompt.
It helps preserve your customer's privacy and security by giving them control over which technologies are used by which applications.
give app permission(Bluetooth, GPS) before launching the application
 
 
Q