A user can activate or deactivate the system haptics under iOS Settings / Sounds and Haptics. I would like to read the value here.
Post
Replies
Boosts
Views
Activity
The use case is that the dialogues are to be replaced by the haptic feedback. So instead of showing a dialogue, there should be success as vibration. If the vibration is not available, the dialog must be displayed. Therefore, in my case, I would have to know whether this switch is on or off.
you need to present it ..
NSDictionary *parameters = @{
SKStoreProductParameterITunesItemIdentifier: [[NSNumber alloc] initWithInt:123456789]
};
SKStoreProductViewController *storeViewController = [[SKStoreProductViewController alloc] init];
[storeViewController setDelegate:self];
[storeViewController loadProductWithParameters:parameters
completionBlock:^(BOOL result, NSError * _Nullable error) {
if (result) {
[self presentViewController:storeViewController animated:true completion:nil];
} else {
[EvaluateHelper trackWithError:error];
}
}];