CLLocation with wifi and Mobile data - location

Hi I am developing app which works on current location. But with Wifi it gives me correct current location, but when I switch to mobile data it gives me wrong location, around 643 meter away. How can I get same location with mobile data. Please help asps. Thanks in advance.

Related

Google Drive API Console: Error saving Drive UI integration page

I have a webapp in production that interacts with Google Drive through Google Drive API.
I need to change some settings in Drive interaction but I can't save.
When I save the Drive UI integration page, I receive this error:
There's a problem at our end.
Please try again. If the problem persists, please let us know using
the "Send feedback" link below. Thanks!
(spying Network console: there is an Internal Server Error in a POST call)
I tried to send feedback for months: nobody answers and the bug is still there.
I tried also to create another project: I can save the first time but then the bug returns.
How can I do? Has someone the same problem?
Is there a way to receive a reply from Google? Is there some workaround?
Thank you.
i think that problem must be Client ID
before adding Client ID, go to the Credentials -> OAuth 2.0 Client IDs
then select edit your Client ID. after that your production site url add to Authorized JavaScript origins and Authorized redirect URIs.
then enter your Client ID in Drive UI integration page
For myself trying to get the Drive UI configured I noticed a couple of errors (that don't have any specific error messages)
When adding in an Open URL it has to be a valid domain, so for instance I tried to test it out with local host, to no avail. However something like https://devbox.app.com worked, but something like https://localhost:8888 does not. Even though https://localhost is a valid javascript origin in the client_id configuration (at least for the app I am working on, not sure about other apps), localhost doesn't work as an open URL.
When adding in the mimeTypes it needs to be in the format */* and can include custom mimeTypes like application/custom+xml and application/custom-name+json not sure for other custom types that are not in a particular format like xml or json. Also not sure about wildcards.
When adding in file extensions do not add in the '.' just the name of the file extension.
The app icon I found only failed to upload the image when the image wasn't the exact dimensions, I actually ended up editing some icons in photoshop to change the pixel x pixel values as a quick work around during dev.
That worked for me to get it to save and I tested it with a file that had a custom mimeType (application/custom-name+xml specifically) and custom file extension!

ERR_CONNECTION_TIMED_OUT for Launching Google

My PC is connecting the internet through Mobile.
While launching Google,am getting "ERR_CONNECTION_TIMED_OUT " some time "NET::ERR_CERT_COMMON_NAME_INVALID" error(Tried with chrome,firefox,IE).But site can reach from mobile.Could you please help on this ? Kindly let me know if any log require for verification.
Try to clear your browser data such as cookies, app data, cache files etc

Chrome Cast Sender "session_error" NOT_FOUND

I can't get a basic sender app set up. I've tried the CastHelloText sender example, put in my own AppId and get an error immediately after chrome.cast.requestSession() is called when I select my device from the top-right Google Cast extension button. My receiver is based off of Cast-Simple-Receiver. I've done the whole unplugging power/plugging back in thing to restart ChromeCast, but that doesn't resolve my issue.
Resources out there seem kind of slim at the moment, but is there a place that explains everything in-depth without having to jump from site to site? Also, take a look at the image I've attached. I can't figure out what that other URL is supposed to be.
My specific error from the requestSession() looks like this:
{code: "session_error", description: "NOT_FOUND", details: null}
EDIT: I've verified that I can connect to the default chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID but my receiver app can't be connected to. I've registered my device and restarted it multiple times. I've now removed it and am trying to re-register it to see if that helps (even though it said it was ready for dev).
Check these; hopefully they get things sorted out:
Make sure you have registered your chromecast device on the developer console. Double check the serial number since sometimes it is hard to read it.
During the chromecast setup, there was a box stating something like "Send the serial number ..", make sure that is checked
Wait 1/2 hour or so and reboot your chromecast
Check whether you can access http://<chromecast-ip>:9222 from a chrome browser on the same wifi network; if you can, then your device is ready for development
As for the area on the image that you have pointed to, that is more for informational purposes at this point

method access exception in wp7 emulator

I am working on WP project i need to get the images from local folder, when I use Directory.GetFiles() method i get 'System.MethodAccessException' but it works fine on a device.
Can anybody please explain me the reason?
Regards,
Sonya
You should use IsolatedStorage.GetFileNames instead of Directory.GetFiles.

'Security error" code: "1000' in Audio API example

I'm trying to repeat the example from here, but am getting this error:
Security error" code: "1000
var fb = event.frameBuffer,
Everything in my folder have 777 rights, but it's still is giving me it. My Firefox version is 4.0, so Audio API features should be available. What could be the problem? I've copied the example without any change. Any suggestion would help, thank you.
You have to make sure your audio and web page are same origin, and if you're doing this from a file:/// URI, you have to tell Firefox to not force origin checks, see our note here: https://wiki.mozilla.org/Audio_Data_API#Security

Resources