|
@@ -139,15 +139,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
UNUserNotificationCenter.current().delegate = self
|
|
|
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { (_, _) in }
|
|
|
|
|
|
- // AV
|
|
|
+ // Audio Session
|
|
|
do {
|
|
|
- try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default)
|
|
|
+ try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers, .allowAirPlay])
|
|
|
try AVAudioSession.sharedInstance().setActive(true)
|
|
|
} catch {
|
|
|
print(error)
|
|
|
}
|
|
|
- application.beginReceivingRemoteControlEvents()
|
|
|
-
|
|
|
+
|
|
|
// Store review
|
|
|
if !NCUtility.shared.isSimulatorOrTestFlight() {
|
|
|
let review = NCStoreReview()
|