Why i can't talk my project google assistant on my phone - actions-on-google

I use xiaomi redmi 3S with android version 6. I can't talk with my project google assistant on my phone. dev or production.Please your information...

Did you try to open simulator page on your browser(phone)?
Or you may try to open the link that you can get by clicking share button on simulator page.
After that, you should be able to open by say "OK Google, talk to my test app(or your invocation name)" and see on Google Assistant(App) - Explore.

Related

Smarthome app/action doesnt appear in Google assistant companion app under home control

Problem:
I ve a problem for long time, where the smarthome app I created with Actions SDK doesnt show up in the Google Assistant app under home control as a test app.
I tried 3 different accounts, looked for being signed in with the same account, started from scratch but nothing helped!
Can you please help to solve this, since it is pretty bad that I cant test the final User oAuth flow from the Google assistant app.
This is BLOCKING me from continuing at all and also make me feel that Google Home is not that production ready.
Iam developing the smarthome app action for a worldwide known opensource project and a lot of users ask for Google Home. I have the implementation almost finished and it stucked at this not showing up in the assistant app. So I cant test and the community cant test either!
This is from my point of view, not good for Google and the launch of Google Home. I had many support tickets open, but still no solution. Hopefully the developers feel responsible and can help.
Environment:
MacBookAir: Mac OS X 10.12.15
Browser: Chrome, Version 59.0.3071.115 (64Bit)
Android Smartphone (Starting from Android v6)
Framework: Actions SDK (gactions)
Steps to reproduce:
Created a new project under
https://console.actions.google.com/
Added Actions SDK to my project and run these commands:
./gactions update --action_package action.json --project
<project-id>
./gactions --verbose test --action_package
action.json --project <project-id>
Added all needed App information and the Account Linking information
Clicked on TEST (next to SUBMIT FOR REVIEW) Button
Result:
I cant use the Simulator, cause when I type "Talk to ", I always get this ErrorMessage: "Sorry, this action is not available in simulation".
If I open the Google Assistant on an Android device and go to "Home Control" to see my test smarthome app, it doesnt occur in the list with brackets etc. like [test ...]. It is not there at all!
I found other devs having the same problem like me over here:
https://github.com/actions-on-google/actionssdk-smart-home-nodejs/issues/1
Here you have my command in the terminal to deploy the smarthome app via gactions command:
./gactions --verbose test --action_package action.json --project <project-id>
Checking for updates...
Successfully fetched update metadata
Finished checking for updates -- no updates available
Pushing the app for the Assistant for testing...
POST /v2/users/me/previews/<project- id>:updateFromAgentDraft?updateMask=previewActionPackage.actionPackage.actions%2CpreviewActionPackage.actionPackage.conversations%2CpreviewActionPackage.actionPackage.types%2CpreviewActionPackage.startTimestamp%2CpreviewActionPackage.endTimestamp HTTP/1.1
Host: actions.googleapis.com
User-Agent: Gactions-CLI/2.0.7 (darwin; amd64; stable/6f4c996f8ee63dc5760c7728f674abe37bfe5fc4)
Content-Length: 369
Content-Type: application/json
Accept-Encoding: gzip
{"name":"users/me/previews/<project-id>","previewActionPackage": {"actionPackage":{"actions":[{"deviceControl":{},"fulfillment":{"conversationName":"automation"},"name":"actions.devices"}],"conversations":{"automation":{"name":"automation","url":"https://MY-GOOGLE-CLOUDFUNCTION-URL"}}},"name":"users/me/previews/<project-id>"}}
Reading credentials from: creds.data
Successfully pushed the app for the Assistant for testing
Your app for the Assistant for project <project-id> is now ready for testing on Actions on Google enabled devices or the Actions Web Simulator at https://console.actions.google.com/project/<project-id>/simulator/
I am faced with the problem as you are. I have sent email to Smart Home team, but they just explained:
"Smart Home Apps not showing in the list of Apps under the Home Control section on the Google Home App is a known issue and we're currently looking into it. I will reach out to you as soon as I have an update on that."
Unfortunately, I do not receive any feedback so far, even I have opened many support tickets.
By the way, the offcial document has updated twice(July 14,2017 and July 25,2017). But it still now not works, I do not know what does it mean! It is very disappointed.
This bug has recently been fixed, so all users should now be able to see their test devices in the Google Home app.

How to use chrome remote debugging with ionic framework?

So I'm reading in this link and it says we can use chrome for remote debugging an app which seeems great but they don't explain how to do it. When I click in the link they provide which has some android documentation, I just see java code. As a non java-developer I wonder how can I use remote debugger in chrome for ionic framework?
To access remote debugging of a webview on your phone, plug your phone into your pc and go to chrome. then type: chrome://inspect into the url bar. open your app on your phone and it should show your device on the inspect dashboard.

Troubleshoot Android 4.3 webview within an app that requires up-to-date Google Play services

I need to troubleshoot an issue happening in a webview running within my app. This issue only occurs on Android versions lower or equal to 4.3. My app requires an up to date version of Google Play services.
In order to troubleshoot my webview, I usually can run my app under the Android Emulator (with the latest version of Android), then connect to the web view via Chrome (using chrome://inspect) - the web view appears in Chrome and I'm able to browse the DOM and debug.
To run the app under 4.3, I've created (under AVD) a new device from an existing device definition,
then picked the target Google APIs (Google Inc.) - API Level 18. I've then installed my app, but when trying to run it, I get the error message "This app won't run unless you update Google Play services.". There's an "Update" button on the previous dialog, but nothing happen when clicking on it.
I then tried to debug my issue using Genymotion. I've created a device under 4.3, followed these instructions to flash my device with the latest Google Play services and installed my app. I can now run the app and reproduce the issue within this simulated environment.
The trick now is to be able to connect to the web view from my local Chrome browser. I've enabled remote debugging as described here. Now my device appears in Chrome, but the web view is not showing up in the inspector. Similarly, if I open a new tab under the native browser, it won't show up in the remote inspector. If I open a new tab under Android Chrome though, I can see it showing up under my remote Chrome inspector.
I can see two way moving forward and successfully accessing to the DOM of my webview:
Fixing the "Update" issue under the Android Emulator running 4.3
Or
Connecting to my web view from my Chrome inspector while running the app under Genymotion
Any idea on how to solve one of these two problems?
I have been using weinre for sometimes. it's a pretty good tool to debug webview for android 4.3 and lower. It provides almost same interface as chrome debugger.
All you need to do are:
Install weinre
sudo npm -g install weinre
Client side:
Insert the following code to your webpage <head> section.
Note: it's better to put it at end of <head> section, otherwise there will be some strange errors and debugger won't show up.
<script src="http://<your server ip here>:8081/target/target-script-min.js"></script>
Server side
weinre --boundHost -all- --httpPort 8081
Debugger
open the debugger tool from weinre from your desktop browser:
http://localhost:8081/client/
Finally,
select any target in Targets part and then start debugging.
Remote debugging web views only works on devices with android 4.4 and above.
have a look at this :
https://developer.chrome.com/devtools/docs/remote-debugging

How to get Samsung Smart TV Emulator to see my app?

I'm just getting started on Samsung Smart TV development, and so far my first baby step has been a big failure.
I am running Linux, and because I already have Eclipse installed and configured for Android development, I haven't had success in getting the Smart TV SDK installed and working. However, encouraged by How to build & deploy a Samsung SmartTV app without the IDE (e.g: on Linux), I have decided to go forward without it.
I do have the VirtualBox emulator running, however. So right now, I have built a basic app from the example here:
http://www.samsungdforum.com/upload_files/files/guide/data/html/html_2/getting_started/coding_js.html
And would like to see if I can just get it to start up on my emulator.
If I understand correctly, I need to take the directory structure of my app (with config.xml, index.html, and the Resources, JavaScript and CSS folders), package it into a .zip, and drop it in the "Apps" folder I have shared with the emulator. But when I do that, if I go to the emulator, refresh it, and hit "Open App", I am presented with an empty App list.
I know that the emulator is seeing the Apps folder, because if I put a subdirectory in it, then that directory shows in the Apps list in the emulator. But it's not showing the .zip file for my app.
I have been scouring the web for any useful information, but all tutorials just say something along the lines of "now test the app in your emulator to make sure it works. Now on to deployment...". Nobody gives any information on how to test the app in the emulator.
Can someone please shine some light on this for me?
Unzip your app in the app folder it should look like this
Samsung TV SDK 4\apps\yourapp\index.html
Samsung TV SDK 4\apps\yourapp\config.xml
Samsung TV SDK 4\apps\yourapp\other files and folders

Running Android app in PiP mode

Is it possible to put Google TV Android app in PiP mode (not full screen)?
I think this would be a nice feature.
Currently, the only app that is able to run in PiP mode on Google TV is the "Live TV" app. We've passed the feature request on to the Google TV product development team, and we'll definitely let the dev community know if/when it's part of a release!
EDIT
There's a feature request opened for this at:
http://code.google.com/p/googletv-issues/issues/detail?id=13
If this is an important feature to you, add a star!
In Android 8.0 oreo, they support the custom pip mode now. The document is here.
https://developer.android.com/guide/topics/ui/picture-in-picture.html
Not only works for the tv devices but also mobile devices.