Handling Reprompt for display enabled devices google actions - actions-on-google

How to handle re-prompt or inactivity for display enabled devices in google action. I had already used the provided event actions_intent_NO_INPUT, this just work for smart speakers, doesn't work on display enabled devices namely phone and smart display.

You can't. As you noticed yourself, NO_INPUT works for smart speakers only.

Related

Can PWA access contacts, gps or use the phone camera?

Can PWA access contacts, gps or use the phone camera?
Is this possible in any system (ios, android) ?
Is there any plan in development to implement any of these features ?
There are some restrictions that cannot be overcome with a PWA:
- you cannot access the contacts list on a phone. - On the other hand, you can take photos and use GPS location.
On whatwebcando.today web site you can have a list of APIs available via browser compared to native apps. If you click on one feature, you can see a sample snippet showing how you can implement it and also details about the browsers support.
UPDATE 30.09.2019
From Chrome v77 there is a new experimental API available: Contact Picker
The Contact Picker API is an on-demand API that allows users to select entries from their contact list and share limited details of the selected entries with a website. It allows users to share only what they want, when they want.
For example, a web-based email client could use the Contact Picker API to select the recipient(s) of an email. A voice-over-IP app could look up which phone number to call.
Hence it might be that the the remaining PWA restrictions will be solved in a near future.
It depends on the device the PWA is running on.
Camera and audio seem to be universally supported. Contacts, on the other hand, seem to be inaccessible regardless of platform.
Other features, such as GPS and geolocation may vary from device to device.
A good way to find out what your browser is capable of (and thus your PWA - it runs in a web browser) is to go to https://whatwebcando.today with the browser you want to support. Try visiting it with an iPhone, Android or other device for a list of enabled features.
This list changes as browser and OS developers increase access to native features, so there's a good change that if it isn't available now, it will be in the future. However, it's important to be aware that some features such as access to the wider file system and hardware configuration are likely to remain sandboxed for security reasons.

How to list and allow selection of input devices to be used for WebSpeech API?

Is there a way to programmatically list available input devices and allow to change the current one being used for the WebSpeech API?
I'm aware Chrome shows a video icon on the address bar where a device can be chosen, but I want to make this setting available on the web app itself.
Yes, there's a way- take a look at https://webaudiodemos.appspot.com/input/index.html, it lets the user select the input. PS: This works just for chrome.
Also you can look this example using webrtc, however I'm not sure if it can be integrated with webspeechapi: https://webrtc.github.io/samples/src/content/devices/input-output/
Also, take a look at this post: https://developers.google.com/web/updates/2015/10/media-devices It has a lot of information
Sorry to burst your buble but it can't be done, the only way to have access to the devices is using the system API's and the web browser limits your access to specific API's that he chooses to expose, unfortunately for you the device related ones are not exposed.
On a side note, think of the repercussions of exposing your devices to every website you visit...

How to use SMS and iMessage notifications on bluetooth device (like smart watch ) using Message Access Profile in iPhone?

How can I get notifications on bluetooth device (like smart watch) when there is an SMS or iMessage using Message Access Profile.These things are already implemented in smart watches like pebble.I would like to know how can I achieve this using ios sdk.
I posted couple of question on SMS,iMessage notifications using MAP in iPhone.Here are the links to those questions
How to use Message Access Profile (MAP) in iPhone
You don't do anything to get MAP support — it's tied in to the push notification system. Any notification will get sent over MAP to any paired Bluetooth devices that implement it. (I think if they have a MAP paired device, the user can set which apps send MAP in notification settings.)
There are apparently some bugs at the moment, according to the Pebble team — sometimes you have to toggle the notifications switch for each app off then on again before it starts pushing them.
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo. And the finally solution is MAP.

smart phone UI limitations

I would like to know, what limitations there are for how far one can go in terms of replacing UI components of current touch screen smart phones, in particular iPhone, Blackberry and android based phones.
What I would like to do is create a custom UI for dialing out and incoming calls.
I have some experience with Blackberry development. The theme builder for it, can be used to customize certain items on the incoming call screen, but it doesn't look like that you can increase the size of answer button. I know Blackberry also gives you access to all the phone APIs, but I'm not sure that you can create your own UI that can gain preference over the Blackberry incoming call screen. And if you try to customize the incoming call screen by adding any buttons to it, they would be rendered as pictures.
I could possibly design a complete UI for android, since different manufactures have different UI for android based phones.
Can I do what I want to do using iPhone, Blackberry or android? Or any other phone for that matter? I am guessing may be for Nokia phones using Qt, but I prefer the 3 platforms I listed.
Thanks for all your help.
You can do this on Android. In fact, it's been done. There are several dialler replacements available in the market. Android has a very modular architecture and you can access the phone's contact info regardless of what the actual contacts provider is (at least in 2.0 and above).
I'm pretty sure you can't do this on the iPhone, as it would never get through the App Store approval process. I have no idea about Blackberry though
You can create a custom dialer on iPhone, and it has been done before. However, on iPhone, you cannot override the incoming call screen.
Andorid is different. You can create a custom dialer and override the incoming call screen as well. You just have to listen for incoming call notifications, then start your app.
Sorry, on Blackberry, I have no idea.

Logging calls after hanging up on smart phones

In the various smartphone APIs/SDKs, I was wondering if it is possible to prompt a user if they'd like to log a phone call after they hang up. The most basic functionality would be after calling out or receiving a call, the phone would ask
Do you want to log the call to|from 555-555-5555?
Yes | No | Never this number
(then it might take the user to a small form and then post the info to a webservice)
The business use is for lawyers who have company phones and need to track billing.
this is a bit different question than Accessing the iPhone's Call log with the iPhone SDK.
On an Android phone you can register a PhoneStateListener to receive a notification of when a call hangs up and log the number by whatever method you wish.
Blackberries have call logging out of the box. Blackberry Enterprise Server activated units sync the log with the server.
On iPhone, no way.
Apple would have to allow (shudder) background applications.
Note: Shraptnel is right, you may be able to monitor the phone state with some private API's if you jailbroke your phone and ran your program in the background.