Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When run on Android #30

Open
federico2390 opened this issue Sep 23, 2022 · 1 comment
Open

When run on Android #30

federico2390 opened this issue Sep 23, 2022 · 1 comment

Comments

@federico2390
Copy link

federico2390 commented Sep 23, 2022

Hello,I know that CarPlay is not compatible with android but ho can I prevent to run it when build android version?

The following MissingPluginException was thrown while activating platform stream on channel com.oguzhnatly.flutter_carplay/event:
MissingPluginException(No implementation found for method listen on channel com.oguzhnatly.flutter_carplay/event)

When the exception was thrown, this was the stack
#0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:294

#1 EventChannel.receiveBroadcastStream.
package:flutter/…/services/platform_channel.dart:637

@harpreetslabs
Copy link

We can add check if it is iOS and then set carPlay configuration

if (Platform.isIOS) { _flutterCarplay = FlutterCarplay(); _flutterCarplay?.addListenerOnConnectionChange(onCarplayConnectionChange); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants