WiFi scan data is not working in android M - gps

I want to develop WiFi scan app. The app is working fine in below android M. Above android M, I used ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION its working fine if I switch ON my GPS. If I switch off my location the WiFi scan is not working Please help me to solve this problem.

Starting from Android 6.0, GPS must be enabled to get any results from wifi scans.
You can check this thread (https://code.google.com/p/android/issues/detail?id=185370) for further information. It appears it is an intended behaviour:
Thanks for the suggestion. Our development team has looked into this bug and decided that it is working as per the design.
WifiManager#getScanResults() returns an empty list if location is turned off for the device.
It sucks, I agree, but that's how it is for now.

Related

Detecting iOS BLE advertising on Android - React Native BLE Advertiser

I've been using react-native-ble-advertiser to try and send string data (the broadcast uuid) between phones, I've managed to get these sharing compatabilities
iOS to iOS 2-way
Android to Android 2-way
Android to iOS 1-way
I'm wondering if perhaps I missed something for BLE as when I try to advertise on iOS I get the warning The advertisement key 'Manufacturer Data' is not allowed in CoreBluetooth however as I said I can detect iOS to iOS.
Is there any way to detect iOS on Android?
Below is my configuration taken from the example on the github link above.
The scanning and broadcasting is done at the same time, though I tested without this and still had the issue.
const MANUF_DATA = [1, 0];
BLEAdvertiser.setCompanyId(0x4C);
BLEAdvertiser.broadcast(hash_uuid, MANUF_DATA, {
advertiseMode: BLEAdvertiser.ADVERTISE_MODE_BALANCED,
txPowerLevel: BLEAdvertiser.ADVERTISE_TX_POWER_MEDIUM,
...
})
BLEAdvertiser.scan(MANUF_DATA, {
scanMode: BLEAdvertiser.SCAN_MODE_LOW_LATENCY,
})
Does anyone have experience with this package or know of a better way to transmit a string? Open to posting the native code from the package.
Thanks.
Contacted the package developer and it is a known issue with iOS and Apple blocking adjusting CoreBluetooth manufacturer data (the package needs this to scan properly)
"Unfortunately, Apple keeps finding ways to break the advertiser. A few months ago, they started blocking the use of manufacturer data that makes the phone visible to Android and we have not been able to find a way around it yet."
Will continue to resolve this on my own and update if I get a solution or the package is updated :)
Update 1 (temp fix): You can set the filters to null in BLEAdvertiserModule in the package. Allowing Android to find iOS manufacturer code. See my github issue resolution here
Update 2: Merged PR so you can now just use the package straight from npm to do phone to phone scans :) There are some comments in example>app>entry.js to show how to set up Android to iPhone scanning :)

WSO2 EMM Android Client: Device Information & Application List not updated

I enrolled an Android Device (Ruggear RG700 Android 4.1.2).
After registering, the Device Information (battery, free RAM, free space) and the Application list shows information.
But after this first data set, there are never updates. Of course I tried to refresh the data by clicking the "refresh" icons. The other commands (e.g. camera, message) are working fine.
Is this a general bug or is this concerning just me?
Thanks in advance for any reply.
Conrad

Sencha touch 2.0, android app keeps showing loading screen forever on certain devices

I've finished writing my first Sencha app and released it in Android market place. This is basically for a conference being held in Metro Detroit Area next week. I'm also introducing Sencha in my company as a viable mobile option.
However once released into the market, it does not seem to load on certain devices. How to find out what is wrong on the device? It works great on desk top and also on certain android phones and nexus pad but does not load ( the user keeps seeing the loading page for ever) in certain other phones. I would like to know how to debug this issue? Does Sencha log the console log exceptions in logcat? Any help in this direction is highly
appreciated!
I'm using Internet permissions to access twitter feed and google maps. Kind of guessing that the issue could be because of accessing Internet but how to find that out?
Thanks
From experience, this is generally due to javascript errors before sencha has been properly set up. This can be missing functionality or include issues, picky parsers etc. There is no real good way to debug this more than to get ahold of an affected device and set window.error = alert before any other javascript is run.

Robust real-time communication between iOS App and Mac App

We're working on an exhibit (http://pulse.media.mit.edu) and I'm brand new to iOS, objective-c and Xcode. The exhibit deadline is in one week and I'm stuck.
The problem I'm having seemed simple enough.
Our exhibit has a projector and an iPad. The projector will be hooked up to a mac and be playing a video. The iPad will act as a controller for those videos. More simply:
I have 50 videos on a Mac. I need to develop an application on the Mac, that, when opened will loop one of the videos.
On an iPad, I need to develop an app that can change between the videos on the mac in real time. The iOS app is already designed, we're just struggling with some code.
On the mac, when the iPad tells the Mac to change video, we'd like it to switch between videos using Core Animation, like this (http://youtu.be/pyd8O-2mkgk?t=1m).
So my question: What is the most robust way to do this? It has to be able to run in a museum, for two months. Some things to consider:
We are 4,000 miles away and can't monitor it all the time. We'll
check nightly to see if it's still working, but it should run the day
without breaking.
If people unplug the iPad, it should still work.
It should be as robust as possible.
How can I best do this? Should I write to a database from the iPad onto a database running locally on the connected Mac and then monitor that database 10 times every second? Are sockets robust enough to use alone?
If you do suggest a way, can you please point me in the direction of some resources (frameworks, function names, etc) that can help me do this quickly?
Thank you for your time.
I would go for the server-in-the-middle option, because it will be easiest to debug, and requires nothing more than a working internet (wifi) connection on the client side. When having connection issues, all you need is someone who knows how to hook up an iPad or Mac to the internet. And you can see server-side which device has issues connecting.
Furthermore, using plain HTTP sounds like the best way to go for communication, and the backend can be written in any server side scripting language. Both clients should be polling the server every X seconds.
If you get this basic setup working well before your deadline, you could try to get the devices to connect to eachother directly (for a less sluggish user experience), and leave the server solution in there as a fallback method. The Mac app could function as a HTTP server, accepting the very same commands that the iPad normally sends to your server. The challenge will be to reliably know which IP to connect to. You could hardcode it or use Bonjour.

MC75 using symbol.imaging.device libraries for program

UPDATE:
I found another library in the Windows Mobile - CameraCaptureDialog - this did the job - never did figure out the zero length available devices...
Hi all,
I have a .net application running on a symbol mc75 (motorola) using the scanner. I am now trying to add functionality for the camera and I am running into issues.
To find the 'devices' you are supposed to use the library's 'available devices' function.
With the barcode it is symbol.barcode.devices.availabledevices and it returns two items (you can scan from the scanner or using the camera device)
However, when I do the camera library it does not find any devices - symbol.imaging.devices.availabledevices returns 0
I can take a picture using the software on the mc75, so I know the functionality is there, I just can't figure out how to get to it programmatically....
Does anyone have any ideas?
Thanks for any help!
I had the same problem - Symbol.Imaging.Devices.Availabledevices returned zero devices but I could use the scanner without problems.
When I installed the Imager API Support v1.00 For Color Camera, Symbol.Imaging.Devices.Availabledevices returned 1 device and I could use Imager from Symbol.Imaging to take photos.