I am making an app that shows certain content to various devices. Basically I have the web app where I set what content to be shown and I used Xamarin to set a mirror of my content to all the devices I have.
Thing is, these devices will be given to drivers, and I need to see the location of those drivers. Is there a way for me to get the location of those devices from the web app? Not from the xamarin apps on the devices, the web app...
The basic architecture would have three components:
A central database to store location data.
In the Xamarin app, you will need to collect the location data and upload it to your database via a web service. Here is a Xamarin demo for location tracking.
Your web app will call a second web service on a schedule (every ten seconds, or whatever seems appropriate) to retrieve the location data for all drivers and plot it on whatever map you're using.
Unfortunately, there are many more details to unpack than can be contained in this answer. Firstly, a lot will depend on your technology choices for the central database and the web app.
You will also need to think about a few things regarding the tracking in your app. For example, battery impact of continuous tracking will be important. Also, you don't want to (or shouldn't) track your drivers at all times, but only when they are working. And so on.
I hope this can get you started.
Related
I wrote an Android app using Unity and will deploy it using Google Play (only alpha or beta release). The purpose of this application is for research therefore there is no unethical situation in this scenario.
I would like to record every single user actions on my app, including which buttons were pressed, how long the user spent on a screen and various interactive elements of my app.
I can probably easily write a log file under Unity with all those information but I doubt I will be allowed to send myself some data using online feature (legal ?)
How was wondering if instead, Google Development platform had some type of Data Analytic section that will allow to record those data?
I would like to be able to record some information about a specific user locally within my Universal Windows App, How would I go about doing this in such a way I can query the data after a period of time and pull back results? I have seen that this is possible using SQLite, is there any other technologies that could achieve this.
I would then also like to store some generic data such as click information on a database which would be updated by all users of the application.
Thanks for any help.
I think SQLite would be a great way to do it. However, if the data is simple enough, you can just store them using files. Use ApplicationData.Current.LocalFolder to access files specific for the user (or RoamingFolder, if you want this data to automatically roam between devices), and ApplicationData.Current.SharedLocalFolder to store data for all users on the device.
If you're going for things like click information,navigation and other usage data, I strongly suggest that you look into Application Insights. This is a very simple library that you more or less can just right-click to add to your project in Visual Studio. It will give you all sorts of telemetry right out of the box for your UWP apps, WebApps, and even Android/iOS apps. Think of it as the UWP version of Google Analytics, only so much better :)
You generally do nearly nothing other than to just configure it with an ID, but if you want to, you can track all sorts of custom events, and not worry about how to store them. Internally, Application Insights will send telemetry to Azure when it can. When it can't, it doesen't.
Here's the getting started page:
https://azure.microsoft.com/en-us/services/application-insights/
I'm tasked with a need to migrate an application I previously created as a Windows service in .NET to an application which can be added to the windows store. (Which I understand must use the UWP format, but please correct me if that's wrong.)
My service collected data about CPU, Memory, Network data and uptime and then could ship it off via a call to my external RESTful API.
Moving to the UWP format, all of my previous code becomes invalid. (I don't have access to System.Diagnostics.Performance counter, for instance.)
I've been looking at all options, including using C++ to get at Native Calls, but that doesn't seem to help.
It dawned on me that the performance tab in task manager is gathering exactly the data I need. So my root question is, how can I get at this type of data using an application which can be built for the windows store?
Sample of the Performance Tab in W10 Task Manager
TIA,
Jeremy
I think that you can not collect the diagnostics you need with uwp apis
As a web developer, when I have multiple sites that are related by a common theme or common department, I have a home page that has links to the different sites. For example, there may be a site for reports (output to pdf or excel), another for inputting and editing sales data, and yet another for real-time tracking. Normally these links are in a header or sidebar which is static and can be accessed by all associated apps.
I'm reading about Metro/Modern apps now. I'll be trying to make my first Metro app soon. However, I'm wondering if it's possible to have (at least the illusion) of accessing 3 different apps through 1 app. So the user, just as in the web app, goes to one place.
If so, does anyone have any resources they can share?
To include multiple apps in the same frame they would need to all be part of the same app.
If you want links to jump between apps then you can create a protocol association to launch into the apps. This can include an arbitrary string so you can deep link rather than going just to the opening page.
On Windows 8.1 this connection is one-way: launching the protocol is fire-and-forget. The launching app doesn't get any feedback or results from the launched app.
Windows 10 adds the ability to return results to use the app as a service. I think this sounds more like what you are looking for.
See Auto-launching with file and URI associations on MSDN and the Build session App-to-App Communication: Building a Web of Apps
actually in Windows Universal app it's the same Approach. You got your app, and different pages where you could navigate back and forth... each page with it's unique look depending on your Need.
The user will open one app to Access all...
searching a bit in the net will Show you a lot of examples... Topic: Navigation, LiveCylcles, ...
I have a ASP.NET Web Application. I want to access this application in Smart phones and tablet computer. So please help me on this. What are the changes required?
The answer to your question could range from nothing to everything. At the end of the day, it all depends on what you existing app looks like in a target mobile device (iPad, Android, etc). If your existing app looks and functions properly, then you don't have to do anything. If not, well, you figure out what's wrong and make it work.
Your question really isn't suited for StackOverflow because it is way to broad and impossible to answer.
Asp.net applications can run in web browsers, including the ones that come with smart phones and tablets. The main concern would be the various screen sizes of the various devices. Because they vary so much, a good design concept for your asp.net application would be to layout content in a way it can adapt to the screen size.
The best technology for this within an asp.net application, especially for an application that was already built, would be to implement style sheets (.css)
Look at these styles as an example:
float, clear, max-width and max-height
Check these and other styles at: http://www.w3schools.com/css/
Now, there is also the concept of having your asp.net application detect which device is being used and then generate UI code (or load .ascx controls) accordingly to provide device specific displays.
Check:
Request.Browser.IsMobileDevice
Request.UserAgent (http://msdn.microsoft.com/en-us/library/system.web.httprequest.useragent.aspx)
However, I would only suggest using this to a minimum, because if you make a change to your UI, you won’t want to keep updating multiple instances of the UI for different devices.
A good compromise would be to build a style sheet for each group of screen sizes (smart phone, tablet, PC, etc.) and then detect which device is in use and include the respective style sheet.
NB: there are many open source projects, which could get you running more quickly with mobile development in mind. Check sourceforge.net and codeplex.com for examples.