I need for my app, to get the wifi's exact network name. With this name, the app will generate a set of results completely diferent of the results generated outside this network.
I need a solution for both Android and iOS.
At Cordova's docs I can't find any alternative for this.
Any advice ?
Related
Is it possible to compare two images with Ionic?
The scenario would be this: I have a database with 50 different images of different flowers and corresponding metadata like title and description. If I now take a picture of a flower with my smartphone, can I assign this picture to another one to find the most suitable result?
Do I need services like the Google Cloud Vision API to do this? Or can I do it internally because I already have the database?
PS: If a server is required, Cloud Functions would be a possibility. For example, programming in Python would be possible there.
No Ionic cannot do this.
Ionic is just a UI framework that allows you to build cross-platform apps and specifically mobile apps (iOS, Android, [formerly] WindowsMobile).
What you're trying to do is something that another system could do. Check out OpenCV,
which would be more suitable for your purposes, and then you can use Ionic to build a nice interface around it.
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...
I'm trying to understand how I can use ChromeCast in my app using this code: https://github.com/googlecast/cast-ios-demo-player.
But I don't have yet ChromeCast and I have to test how the code working with Cheapcast.
I found here: https://github.com/mauimauer/cheapcast/issues/6 some istructions, but I don't understand. To operate the demo code, I have need to replace #"[YOUR_APP_NAME]" with an hex app identifier (from Google whitelist email). But I don't have ChromeCast so I don't have this identifier. How can I do? Using Cheapcast what can I put into #"[YOUR_APP_NAME]" place?
Thank you very much.
It's not possible.
In order to test a chromecast app, you need to specifically whitelist some devices to work with the application.
Given the Cheapcast app doesn't come with a serial number that you can send to google, you can't whitelist it. As such you won't be able to get an App_id nor will you see your cheapcast in the list of available devices even if you do.
I am working on an app that needs to add a wifi network (i.e., SSID and password) to the list of known ones of the mobile phone, so that it connects to that network automatically even when seeing it for the first time.
I already did this on Android, and now I will start working on the iPhone version.
Question: On the iPhone, is it possible to have my app (when it runs for the first time) add a wifi network to the list of known ones of the device, and if so, any hints regarding how to do it?
Thanks a lot.
Unfortunately this is not possible on iOS.
Apple doesn't provide any public APIs to add network SSIDs or passwords.
The most you can do is to enable your app to manage the user's authentication for a public network, (as is done for things like Boingo and The Cloud). In this case, when the user joins a network, instead of a webpage opening to authenticate, your app can launch and provide the authentication - but that is as far as you can go.
We asked for clarification on this point to Apple in the dev forums and were told that it is definitely not possible. (I will try to dig out the link to that post for you when I get more time. Else, search your query on the dev forums and it might show up).
so it would seem that with iOS 6, there may be a way to do this. Boingo appear to allow a user to turn on "Auto Login" and it will login/authenticate against the access point without the user interacting/authenticating manually (I haven't tried it myself though). Is there new API calls in iOS 6 that now allows this? See this article.
I have gone through following link
http://zachwaugh.com/2009/03/programmatically-retrieving-ip-address-of-iphone/
and I have also tried this one (but this isn't recognized by Apple).
http://appsamuck.com/day4.html
I just want that when user tap on "wifi" button.
Reports stored in documents directory can be accessed by other pc using wifi using the IP that I display on my iPhone application. How is it possible?
In my apps, I use CocoaHTTPServer to get local info into and off of the phone. You run the server and out-of-the-box, it indexes all the files in the documents directory.
To do what you want, you will need to edit the code to return some other kind of data format (xml probably is the easiest) the call this from inside your app to get that data. CocoaHTTPServer easily take POST right out of the box too, so you can post an xml response as well.
After thinking about it, CocoaHTTPServer is best run on the computer side behind the scenes. the iphone can then send info to the computer where handling the code should be easier and you have more options.
I can't point to any specific examples but the way to do this would be the ZeroConf protocol - both the iPhone and PC would have to be on the same network to have this work.