domoticz / domoticz-android

Domoticz Client Application for Android Devices
104 stars 70 forks source link

Android Auto integration #623

Closed galadril closed 1 year ago

galadril commented 3 years ago

Lets continue the discussion here, instead of on the PR > https://github.com/domoticz/domoticz-android/pull/614

@flobz i just read this article: https://www.autoevolution.com/news/google-officially-announces-android-auto-closed-testing-apps-153248.html

Does this mean that we can now test this without rooted devices? Or can we now just upload them to closed beta testing, but not use them yet..?

galadril commented 3 years ago

Actually, i think that Domoticz is not allowed as Android Auto app..

Parking and Charging The app must provide meaningful functionality in its category relevant to driving If a parking app is displaying a list of locations next to a map (e.g the Place List Map template), then the locations in the list can only be parking spots. Similarly, for a charging app, the locations must be charging stations.

flobz commented 3 years ago

Yes, they will probably refuse the app because the category mismatch. It can be interesting to ask them though.

galadril commented 3 years ago

ive put the code on different branch for now.. until we know more in the future (ill put this issue on hold for now)

peterselieman commented 3 years ago

Well, i saw yesterday that samsungs smartthings app is on my AA screen. So i think that it is allowed.

flobz commented 3 years ago

That's a good news! Thanks

galadril commented 3 years ago

hmm.. maybe ill try again with the play store then!

flobz commented 3 years ago

I ask google play developer support some clarification one week ago but no answer yet...

galadril commented 3 years ago

I've reworked the implementation a bit to support more devices, and allow for setting your custom 6 items via settings.

image

galadril commented 3 years ago

We could also add a search bar, so that people can find any device from Domoticz >

image

flobz commented 3 years ago

Thanks, I will try that! For the search bar, I'm not sure but google can refuse the app for that. Because I think that virtual keyboard aren't allowed during driving. So you need to check if the car is moving to enable the search bar.

galadril commented 3 years ago

as i read it, the keyboard is automatically disabled during driving.. the user only has access to filters (earlier search values)

galadril commented 3 years ago

Btw im still getting rejected for the Android Auto implementation:

image

flobz commented 3 years ago

as i read it, the keyboard is automatically disabled during driving.. the user only has access to filters (earlier search values)

I'didn't know that.

flobz commented 3 years ago

I retrieve the android Manifest from Samsung smart things and the category isn't specified :

 <service android:enabled="true" android:exported="true" android:name="com.samsung.android.oneconnect.androidauto.services.StCarAppService" android:process=":Core">
             <intent-filter>
                  <action android:name="com.google.android.car.action.CAR_APP"/>
              </intent-filter>
  </service>
galadril commented 3 years ago

I just keep getting rejected in the play store: " we are only accepting apps within the Media or short form Messaging categories for Android Auto. Media apps that use Text-To-Speech engine readout for content are not permitted at this time."

flobz commented 2 years ago

I had news from Google support 5 months later : During review, we were unable to accept your app, Domoticz Home Automation Lite (nl.hnogames.domoticz), for Wear OS.

For example, your application does not provide a light background as shown on the store listing in App Bundle 9007. Please refer to the attached screenshots for more detail. Please update your app to fix this issue and make sure to deactivate non-compliant App Bundle 9007 and increment the version number before resubmitting your app for another review.

You may want to refer to our Building Apps for Wearables and Testing your App documentation for additional guidance.

flobz commented 2 years ago

@galadril did you miss my last message ?

galadril commented 2 years ago

i missed your message indeed. thanks. ill take a look

flobz commented 2 years ago

Maybe you can try to publish the app with android auto again?

rezzalex commented 2 years ago

Hello @galadril ans @flobz .

Any news on Android auto authorization to publish ?

Thank you

galadril commented 2 years ago

I'm working on a big new update first. Maybe I'll check that afterwards

rezzalex commented 2 years ago

Not the recent update release yesterday ? Another new one ? What will it contain ?

Thank you

Le mer. 22 juin 2022 à 19:38, HNO Mobile @.***> a écrit :

I'm working on a big new update first. Maybe I'll check that afterwards

— Reply to this email directly, view it on GitHub https://github.com/domoticz/domoticz-android/issues/623#issuecomment-1163422544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMCHN3PKM5ZML7LHBHSCQ3VQNFRDANCNFSM4VBJDUUQ . You are receiving this because you commented.Message ID: @.***>

galadril commented 2 years ago

I guess your on the beta channel of the play store. Thats indeed where im working on, its not yet released via the normal play store channels

rezzalex commented 2 years ago

Off course

Le mer. 22 juin 2022 à 20:52, HNO Mobile @.***> a écrit :

I guess your on the beta channel of the play store. Thats indeed where im working on, its not yet released via the normal play store channels

— Reply to this email directly, view it on GitHub https://github.com/domoticz/domoticz-android/issues/623#issuecomment-1163488390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMCHN4EUXLNGFJJA5N2UNLVQNOFTANCNFSM4VBJDUUQ . You are receiving this because you commented.Message ID: @.***>

rezzalex commented 1 year ago

Hello @galadril , is it possible to have a little android auto feature video showcase ? Thanks

rezzalex commented 1 year ago

Hello. Are you able to progress on Android auto , integration ?

galadril commented 1 year ago

I needed to change the implementation to androidx car libs.. At least its working again:

image

image

galadril commented 1 year ago

We're not getting this app in the play store.. image

galadril commented 1 year ago

Closing the issue. Not possible

rezzalex commented 1 year ago

@galadril , i have read that Android auto will be now open to IOT / Home control app ...

galadril commented 1 year ago

Indeed, lets boot this topic up again.

More info on: https://developer.android.com/training/cars/apps/iot

     <intent-filter>
        <action android:name="androidx.car.app.CarAppService" />
        <category android:name="androidx.car.app.category.IOT"/>
      </intent-filter>

Lets see if we can make it happen

galadril commented 1 year ago

They recommend the use of GridTemplate for IoT apps btw. This app currently uses the ListTemplate for adding the items on the screen.

image

Should not be to hard to refactor. https://developer.android.com/training/cars/apps/iot#implement-functionality

galadril commented 1 year ago

image

galadril commented 1 year ago

image

rezzalex commented 1 year ago

Can't wait to test !

galadril commented 1 year ago

The change is allowed in open beta channel> https://play.google.com/store/apps/details?id=nl.hnogames.domoticz

rezzalex commented 1 year ago

Thank you @galadril.

To be honest, knowing that I previously paid for the previous premium version, I think I will wait for the wearable version to be ready before paying the new annual fee.

galadril commented 1 year ago

no problemo. the premium app in the play store is still up-to-date

galadril commented 1 year ago

Did somebody try it? I turned my outside lights off this morning from my car ;) w00tw00t

rezzalex commented 1 year ago

Did somebody try it? I turned my outside lights off this morning from my car ;) w00tw00t

As soon as the wearable app is working, I will pay and try android auto. No blackmail here, just to keep informed.

galadril commented 1 year ago

No blackmail, i get it ;).. Its in progress! (see other topic) Its all about time management (i moved to a new house as well last couple of weeks :D )

WhatIsThatFor commented 1 year ago

Hi galadril, thanks for re-opening this feature! I tested it on my car, but I can't get a 100% success when I try to trigger a Scene... It's a bit like the app needs to be awaken first, then after several attempts it finally works... or should I hold the button a bit longer? Maybe I should try with a simple switch first and see how it goes? (car has a 10inch display and I use a Samsung S21FE)

rezzalex commented 1 year ago

On my side, the scene I use the most (opening and closing garage door and portal at the same time) also seems to not work all the time.

It always display "mixted status" once clicked with android auto, and sometimes it works and the 2 are opening, and sometimes none of them are opening. So why a "mixted" status ?

WhatIsThatFor commented 1 year ago

hi rezzalex, seems we experience the same behavior here..

galadril commented 1 year ago

im currently still in the process of getting the android auto / wear os updates through for the Domoticz app :(.. its taking my focus now and its freaking irritating.

rezzalex commented 1 year ago

Courage @galadril , we are behind you !!

galadril commented 1 year ago

Im appealing their decision to block it:

Thanks for contacting Google Play. Your appeal has been submitted successfully and will be reviewed by a specialist. The ticket number for your appeal is referenced in the subject of this message

rezzalex commented 1 year ago

Did Google specified a reason for Blocking ? As the android auto is pretty much working, are they blocking only for WearOS ?

galadril commented 1 year ago

various reasons.. but every review is fresh (they dont look at history). and it repeats the next reasons:

1) missing connection details (aldo i clearly state that they can use the demo setup) 2) missing premium subscription rights (i've provided promotion codes) 3) Android auto not according to guidelines (not really clear on what to do to fix this) 4) Wear OS is not according to guidelines (not really clear on what to do to fix this) 5) Android auto has no items on the screen (probably nothing on the dashboard at that point) 6) Wear OS has no items on the screen (probably nothing on the dashboard at that point)

and this is going back and fort between those reasons now for months

galadril commented 1 year ago

I'm truly happy that finally Google approved the new version with Wear OS and Android Auto fixed/implemented.. YES