I'm having a problem to connect my app with Android auto. It is made with Xamarin.Android. I linked the XML into the Android Manifest, but it still doesn't work.
The manifest contains:
<meta-data android:name="com.google.android.gms.car.application" android:resource="@xml/automotive_app_desc" />
The XML contains:
<?xml version="1.0" encoding="UTF-8" ?>
<automotiveApp>
<uses name="notification"/>
</automotiveApp>
This is how I build notification:
NotificationCompat.Builder notificationBuilder = new
NotificationCompat.Builder(ApplicationContext);
notificationBuilder.SetSmallIcon(Resource.Mipmap.ic_push_icon)
.SetContentText(msg)
.SetWhen(timestamp)
.SetContentTitle(content)
.SetContentIntent(readIntent)
.Extend(new CarExtender()
.SetUnreadConversation(unReadConversation)
.SetColor(ApplicationContext.GetColor(Resource.Color.purple)))
.SetChannelId(Fields.CHANNEL_ID)
.AddAction(CreateActionFromRemoteInput(replyIntent,remoteInput));
mNotificationManager.Notify(conversation.Id, notificationBuilder.Build());
Any suggestions? Thanks.
EDIT: I'm working with minSdk 21 and targetSdk 26
EDIT:
The only log I had was:
[Notification] See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
[Notification] Use of stream types is deprecated for operations other than volume control