Consent and notification permissions on the main thread.
This commit is contained in:
parent
7818feaf0b
commit
b275286b2d
@ -728,8 +728,10 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
|
|||||||
|
|
||||||
// Send info
|
// Send info
|
||||||
if ([[MPConfig get].sendInfo boolValue]) {
|
if ([[MPConfig get].sendInfo boolValue]) {
|
||||||
|
PearlMainQueue( ^{
|
||||||
[Countly.sharedInstance giveConsentForAllFeatures];
|
[Countly.sharedInstance giveConsentForAllFeatures];
|
||||||
[Countly.sharedInstance askForNotificationPermission];
|
[Countly.sharedInstance askForNotificationPermission];
|
||||||
|
});
|
||||||
|
|
||||||
if ([PearlLogger get].printLevel > PearlLogLevelInfo)
|
if ([PearlLogger get].printLevel > PearlLogLevelInfo)
|
||||||
[PearlLogger get].printLevel = PearlLogLevelInfo;
|
[PearlLogger get].printLevel = PearlLogLevelInfo;
|
||||||
@ -755,7 +757,9 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[SentrySDK.currentHub getClient].options.enabled = @NO;
|
[SentrySDK.currentHub getClient].options.enabled = @NO;
|
||||||
|
PearlMainQueue( ^{
|
||||||
[Countly.sharedInstance cancelConsentForAllFeatures];
|
[Countly.sharedInstance cancelConsentForAllFeatures];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user