We’ve got an app that requires push notifications, bluetooth and usage of location services acceptance from the user in order to work properly. It’s essential for us, because without Bluetooth enabled user can’t connect to our tracking devices. We know, that we can’t block user on the screen when he doesn’t agree to push notifications, because that’s what App Store Review Guidelines states. The question is: can we block user on the screen until he turns on location and bluetooth?
Asked
Active
Viewed 50 times
1
-
1`block user on the screen until he turns on location and bluetooth` sounds like a threat – user2807083 Apr 13 '16 at 05:35
-
I meant show him screen that says something like "turn on bluetooth" without a chance to go further – user4842075 Apr 13 '16 at 05:44
1 Answers
1
You need to implement your logic based on your requirements.
However you can check for different conditions for specific services enabled or not.
For Push Notifications:
[[UIApplication sharedApplication] isRegisteredForRemoteNotifications]
For Location services:
if (![CLLocationManager locationServicesEnabled] && [CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied)
{
// your code...
}
For Bluetooth:
You can refer this link
-
I know how to check those things, but I asked if my app will be rejected if I don't give access to the content of the app to the user who doesn't agree to location service usage or bluetooth – user4842075 Apr 13 '16 at 06:03
-
In that case, if such things are necessary then you can restrict application features, i.e If you disable the location services, then `Tinder` won't allow you to use the application. – Vatsal K Apr 13 '16 at 06:06