Skip to content

Commit

Permalink
oguzhnatly#12: Added support for flutter to start in the background. …
Browse files Browse the repository at this point in the history
…Even when the app was killed
  • Loading branch information
vanlooverenkoen committed Sep 16, 2022
1 parent f0a1a6c commit d45954e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ios/Classes/FlutterCarplayPluginSceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,9 @@ class FlutterCarPlaySceneDelegate: UIResponder, CPTemplateApplicationSceneDelega
SwiftFlutterCarplayPlugin.onCarplayConnectionChange(status: FCPConnectionTypes.connected)
let rootTemplate = SwiftFlutterCarplayPlugin.rootTemplate

guard rootTemplate != nil else {
FlutterCarPlaySceneDelegate.interfaceController = nil
return
if rootTemplate != nil {
FlutterCarPlaySceneDelegate.interfaceController?.setRootTemplate(rootTemplate!, animated: SwiftFlutterCarplayPlugin.animated, completion: nil)
}

FlutterCarPlaySceneDelegate.interfaceController?.setRootTemplate(rootTemplate!, animated: SwiftFlutterCarplayPlugin.animated)
}

func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene,
Expand Down

0 comments on commit d45954e

Please sign in to comment.