How Google cookies distinguish new device and new browser but old device - browser

I want to ask how Google manages to distinguish between new device and new browser used using cookies.
As for example, when we open Gmail with a new browser (say Firefox) from the same device, we don't get any varification mail from Gmail team. But when we do the same with a new device we get a mail where Gmail team varifies whether we have got a new device. How does Google make sure whether we are using new device/ same device but new browser? I know that cookies are both browser and device dependant. So how is it possible to analyse new device even when new browser also acts as a new user?

Related

Smart home google action not responding and device is always offline

I created a smart home action using action-on-google and nodeJs, and it works fine. When you say turn on switch off, it sends MQTT request to my server, means that onExecute function works fine but the problem is that google doesn't respond to my command by OK it says "sorry it looks like your device not available right now", I observed also that my device is always offline in Google home app. Is it required to work with firebase and get device state from there?
Firebase is one of web services allowed to store a device's states. You can feel free to use other web services.
If your device is offline, it may be because your Google Home App hasn't received your device's states.
Here are two paths for Google Home App receiving your device's data:
Google Server will send a action.devices.QUERY intent and callback your function (e.g. onQuery) to get the data of your device through your fulfillment, see action.devices.QUERY.
Thus, please print logs in the onQuery function and make sure that your function works fine.
Your smart home action must use the API of reportStateAndNotification to update your device's data in the Home Graph, see Method: devices.reportStateAndNotification.
If Google Assistant gives you "Sorry, device is not available right now", it probably is because the Google server hasn't received correct information from your fulfillment. Please follow the suggestions above and try it again.
If you're still having issues, check your logs to identify the particular issue for that device.

How to answer a user in Home device and send a notification to user's phone

Is there any way to answer a user question in the Home device and at the same time, send a notification to another device?
For example, if the user ask for a direction, answer with the location (voice) and finish saying to the user:"I've sent you the location to your phone" and send him a map...
I know there is a way to switch conversation to another device (say, for example, one with screen) but I don't want to finish it in Home device.
Thanks in advance.
Not in a straightforward way, no, but there are a few options that you have that may do what you want.
You can try to use Assistant Notifications. Right now, notifications only appear on mobile devices, but even if/when they allow speaker notifications in the future, your user could still open it on a mobile device. You need to ask for permission to send a notification, and when they trigger the notification, an Intent in your Action will be triggered to actually show what you want to show.
You can also look into using a more standard notification channel such as Firebase Cloud Messaging. This does require you to have your own app on the mobile device, and it works outside of the Assistant, but may be a good choice if it meets your needs.

Custom receiver application doesn't work with whitelisted device

I'm just starting to play with Google Cast, so I downloaded the hellotext Chrome example app. If I open the sender that comes with it, everything works. However, if I take the receiver.html file, upload a copy of my own somewhere, create an app, and then replace the app id in the sender.html, it doesn't work.
The console log says "receiver list empty". I do have my Chromecast (both of them actually) added to my account as test devices. I reset them, both via software and by unplugging and replugging them. I even did a factory reset on one of them, but still no luck.
Googling got me to this response: How to launch a receiver app in Chrome once Chromecast device has been whitelisted?
However, the option to enable (or disable) sending the serial number on update check doesn't seem to exist anymore.
Any ideas?
Thanks!

Cromecast Device detection application Like Google chrome Extension

I am new for Chromecast Please help me out ,
I have to detect chromecast devices as same like google chromecast extension and send url for casting to selected device ...
I want to develop a html5 application where user can select chromcast devices and send url to it

Getting Original Phone useragent with J2ME

Kinda new to J2ME. I was wondering how I could go about in getting a J2ME midlet to send the original user agent of the mobile device to a server instead of: "Profile/MIDP-1.0 Configuration/CLDC-1.0"?
The problem here is that I wont be able to kno the specific device the midlet runs on in order to manually set the useragent. This is because I'm developing a J2ME SDK that will be widely distributed for advertising purposes within other applications. It's like a plugin that fetches and display ads within an app.
For example, if the midlet runs on a sonyericsson, how can i get the midlet to send the original phone useragent:
"SonyEricssonW300i/R4EA Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"
to my server without actually using
"setRequestProperty(" User-Agent", "SonyEricssonW300i/R4EA Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1")" ?
I want to detect the true device using WURFL on the server-side. If the midlet sends "Profile/MIDP-1.0 Configuration/CLDC-1.0" as the useragent, WURFL will detect the phone as "Generic J2ME midlet" instead of SonyEricsson W300.
I'd really appreciate it if someone assist.
The fool-proof way is to detect the user-agent when the web browser requests the jad, and set the value in the returned jad file.

Resources