mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 11:00:09 -06:00
Remove `JellifyContext` provider in favor of a persisted Zustand store This should address issues where the user would open the app and be randomly signed out and have to sign back in
17 lines
586 B
Swift
17 lines
586 B
Swift
// ios/CarScene.swift
|
|
import Foundation
|
|
import CarPlay
|
|
|
|
class CarSceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate {
|
|
func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) {
|
|
|
|
RNCarPlay.connect(with: interfaceController, window: templateApplicationScene.carWindow)
|
|
|
|
}
|
|
|
|
func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnectInterfaceController interfaceController: CPInterfaceController) {
|
|
|
|
RNCarPlay.disconnect()
|
|
}
|
|
}
|