Languages

Menu
Sites
Language
What is hostname of wearable device?

Hi,

When I use public API as Google API, the host name should be whitelisted.

So, I tried to get the hostname using JavasciptAPI location.hostname, I got NULL.

How can I get corret hostname or set the hostname?

Regards,

Responses

1 Replies
Shaswati Saha

I think you're trying to get this for Domain verification of your API key. To use the key in Tizen web project, you don't need to verify domain. You can use the key by saving the credentials only.

Another thing, you're getting NULL value as a hostname because it has no host actually as you're not keeping the source file in any host. It would have one if you keep that in any web or local host.