Windows Phone 8.1 Downloaded Maps - windows-phone-8

I have a small question about downloaded maps in Windows Phone 8.1. Is it possible to detect in code if the user has a downloaded map for a particular country? The idea is to suggest the user to download the map, so the Application runs faster and the user saves some wifi or network data
Thanks in advance

There are two classes that will help the user to understand the Offline Maps content, but there is no known way to do this only in C#.
The two options are:
MapUpdaterTask: https://msdn.microsoft.com/en-us/library/windows/apps/jj206975(v=vs.105).aspx
MapDownloaderTask: https://msdn.microsoft.com/en-us/library/windows/apps/jj206984(v=vs.105).aspx
This will load the Maps Settings app but not directly give you hint on code.
I did not try but you might be able to perform local request (find/geocoding or route) and observe the result to see if there are specific properties or values that might differ while calculating in offline.

Related

How to get a Google Place using a placeId on Flutter?

I'm trying to find a function that would allow me to get a Google Place only using a placeId (and the apiKey of course).
I found the function GeoDataClient.getPlaceById(placeId) but unfortunately this doesn't seem to be available on Flutter. I am currently using the flutter_google_places dart package but am open to using something different if necessary.
I can't find one. It seems like something of a large gap in the ecosystem -- if you store a Google Place ID in your local database, you should be able to convert that into a place name and a location when you reload it.
The iOS equivalent of GeoDataClient is the Places SDK for iOS: https://developers.google.com/places/ios-sdk/intro.
I may write a plugin for this and add it to pub.dev. Unless you've found a better solution since you posted this question, this seems like the best available approach at the moment.
With that said, however, connecting to the Google Places SDK requires a network connection, so if you want optimal performance, you should try to keep invocations of the SDK bridge to a bare minimum, and ideally keep place details in a local SQLite database. This way, users will only be invoking the SDK bridge after loading the app on a new device.

How to see other users in indoor location app built on estimote sdk

I have built an indoor location ios app using Estimote SDK and its working fine. Now I want to see all the users in same location to be able to see each other in App.
Any suggestions on how to do that. Please comment and let me know if anything is not clear about the question
Here's one example how we did it using IndoorAtlas & PubNub service. Does not require any logic on the server side and allows you to tap into the location stream from several different types of clients such as mobile or browser. You should be able to do it in similar way using Estimote.
https://github.com/IndoorAtlas/android-sdk-examples/tree/master/Basic/src/main/java/com/indooratlas/android/sdk/examples/sharelocation

Possible ways to deploy an application to Windows Phone Store using automated tool/process

Is it possible to submit a new app or update an existing app to Windows Phone store with any automate process instead of uploading it manually?
Please suggest the solutions for the same.
I found few automated tools for ios application submission like fastlane
Not possible at the moment and no indication about such feature coming.
There may be such functionality soon.
From https://blogs.windows.com/buildingapps/2016/03/31/announcing-new-dev-center-capabilities-to-increase-app-revenue-and-streamline-management/:
The new Windows Store submission API will be made available in
preview, beginning today and rolling out in waves. This new API offers
a subset of functionality provided by Dev Center as a REST API and
supports these actions for published apps: submitting updates,
modifying metadata, and adding/removing in-app products. You can
request access to the preview through the “Feedback” tab in Dev Center
by selecting “Submission API” in the “Suggestions” tab. Access will be
granted in waves, beginning with a small group of developers. Build
session: https://channel9.msdn.com/Events/Build/2016/B839

How to return from Google Maps App to my app?

From my app I'm calling Google Maps app using Intent and everything works well.
My question is:
how do I get back from Google Maps app to my app?
If I use the device "back" button then I need to press it 4-5 times!
Does anybody have a better solution?
Android does not give you control to the activities you launch. And since it mentioned nothing in the official documentation, it possibility means you can not.
One thing might help is it seems your application can check whether if the navigation is currently running. Look at this post for more information on that: Android application to detect when Google maps direction is finished
My solution is to create an AlarmManager right before you start the Maps Activity, save any variables in sharedPreferences and then let the Map Intent do what it has to do. After x time has passed(You decide how much time needs to pass before returning to your app) in the BroadcastReceiver open up your app in the activity that you want. Then load any needed variables that you stored in the sharedPreferences and done!
In essence it works like an alarm clock, you set the time and after x time you notify the user. I followed this tutorial(I used only the part I needed):
http://stacktips.com/tutorials/android/repeat-alarm-example-in-android

Co-ordinates on wp8 emulator

I am trying to get my current location; my code is correct but wp8 emulator is giving every time same results (Microsoft place while I am in Asia). I also read people posts even on stack overflow but I could not understand their answer. they are saying set location from emulator ">>" "Location". I want to know can emulator give me correct answer when I run my app ? Is it emulator fault ? how will it work on real device ? will it give same wrong results or correct ones ?
Thanks
The WP8 emulator doesn't have a GPS or other means to get a location like a phone or other devices might be able to. So, the emulator has other ways of getting location information.
If you want to change your location settings around, you need to click on the double chevron to the right of the emulator. This will open up the additional tools menu. Click on the Location tab. Then, click anywhere on the map to set your emulator's location to the place where you clicked. When you run code to get the location it will reflect the new location.
Now you asked
can emulator give me correct answer when I run my app
The emulator does not know where it is, you set its location in the way described above. So, as long as you give it a location you deem correct then it will be correct.
how will it work on real device
On a real device there are multiple ways of obtaining the location. 1. GPS. 2. Location of cellular towers. 3. You could connect to a Wifi network (The location of some wifi connection points can be ascertained by the phone.) The phone will use one of these mechanisms to get the location.
It will work fine on real device. Emulator doesn't have required hardwares to detect your location correctly (such as mobile GPS) when a real windows phone device has.
That's the reason why people setting location in emulator manually for purpose of testing their location-aware application.