Quick Start Guide for Gps Tracker

Servers

Cell phone clients

There are 2 parts to the gps tracker application. The server and the clients. The server part needs to be installed on a public web server. It can be installed on a local machine and clients can be tested over wifi so strictly speaking, you do not need a public facing web server but for our purposes, we will assume you have one. There are 2 different server stacks:

  • one for asp.net and sql server
  • one for php and mysql

You do not need to install both. How do you choose which one to use? It’s personal preference, but if you work primarily on windows machines, it makes sense to install the asp.net version.

Asp.Net and Sql Server

The asp.net version requires you to install IIS (Internet Information Services 7 or greater) onto your machine and when you do install it, do not forget to install asp.net, you have to click a separate checkbox. Forgetting to install asp.net will result in a very interesting and hard to solve error… In IIS manager, right click on “Default Web Site” and create a new application named gpstracker and put all the files from the dotNet server directory that you downloaded and put it into that application. The application will probably be mapped to the physical directory C:\inetpub\wwwroot\gpstracker. Add files there.

You need to also install sql server. I used sql server express 2012 which is a free download. Once sql server in installed you need to do a restore. The file is in the servers > dotNet > sqlserver directory and is called gpstracker.bak. In the sql server management console, expand the System Databases and right click on one of the databases and go to Tasks > Restore > Database and restore GpsTracker bak file. Once that is done, your database is ready to go. Make sure to set a user name and password on that DB. I beleive that username “gpstracker” and password “gpstracker” are in that DB currently. Don’t forget to change that if you use the DB in production…

Download Visual Studio Express 2012 for Web and on the File menu, click “Open Web Site” and then choose local IIS on the left and then gpstracker on the right. I had to open visual studio as administrator for it to work right with IIS permissions. Now you can see all the website files. DisplayMap.aspx is the one that you want to view. Use visual studio to establish the connection with sql server (under Tools > Connect To Database). You can set DisplayMap.aspx as the start page and then run the application on the menu. That should get you going on the asp.net server.

PHP and MySql

For this, you need a LAMP stack or one of its derivatives (MAMP, WAMP etc). LAMP stands for linux, apache, mysql and php. You can download packages that will install all at once, just google lamp, mamp and wamp. They are all similar but just different based on the platform you have, windows, mac or linux. Once you have your server software installed, you need to create a website on your apache webserver and create a directory called gpstracker. Put all of the files from the php download directory into there.

From the command line, you need to do the following (windows users may need to install cygwin, which will give them a unix-like terminal prompt). Login in to MySql with this command:

mysql -h localhost -u root -proot_password

Change root_password to your root password and note that there is no space between the -p and your password.

and now from the mysql prompt, create the gps tracker database with this command:

CREATE DATABASE gpstracker;

and don’t forget the semi-colon ; at the end, all MySql commands must end in semi-colons. Now exit MySql with the following command:

exit;

Now lets get our data and stored procedures into the database using the following command:

mysql -h localhost -u root -p root_password gpstracker < gpstracker-03-14-14.sql;

Please note that the date on the sql file (03-14-14) may be more current. Use the most current from the github repo.

Now log back into MySql with the above command and switch to the gpstracker DB with this command:

use gpstracker;

and then have a look at your location records with this:

select * from gpslocations order by gpsLocationID desc limit 10;

Finally, create a user called gpstracker_user for the web application:

GRANT ALL PRIVILEGES ON gpstracker.* TO 'gpstracker_user'@'localhost' IDENTIFIED BY 'gpstrackerโ€™;

the final ‘gpstracker’ in parentheses is the password for gpstracker_user. You need to change that to your own password and then you need to change it also in dbconnect.php here:

$dbpass = 'gpstracker';

While you are in dbconnect.php, make sure that the database name is the same as the one you just created. If you are using phpMySql, the database name will probably be different.

and finally exit out of mysql with this:

exit;

Ok, at this point displaymap.php should work in your browser and you should be able to see the one location stored in the database.

At this point in time, you should have one of the two servers above installed. Now its time to look at the clients. There are currently 4 clients. One for android, ios, windows phone and java me/j2me. You only need one client but all four clients work with either server, this is a very flexible system. We’ll start with android since that is the one that people seem to be testing the most.

Android Cell Phones

You can get the android client in one of two ways now. If you do not need to customize the app, you can download it directly from google play and easily change the upload directory to point to your Gps Tracker website. It’s available here:

Gps Tracker in the Google Play Store

If you need to modify and compile the android client, that requires Android Studio.

http://developer.android.com/sdk/installing/studio.html

I urge android developers to start using Android Studio (AS) if you haven’t started already. Google has done an excellent job with AS, the gradle build system is excellent. After you install AS, open up the application by selecting import project (in the first popup window of Android Studio or on the File menu) and then selecting the build.gradle file in the GpsTracker > phoneClients > android directory. From the menu, select Tools > Android > SDK Manager. Select everything under Tools, Android 4.4.2 and Extras (down at the bottom). Then install those packages. In the next screen, click on the top Package on the left side, then on the right select “Accept License”, then click Install. This could take some time depending on your internet speed. Once this has completed, reopen the SDK Manager and make sure that the installs actually happened. It’s easy to mess this up if it’s your first time, so best to check. This hopefully should take care of gradle build issues that some people have been having. Finally, attach your android phone and make sure that its set up for development as explained here:

http://developer.android.com/tools/device.html

From the Android Studio Run menu, select Run to start the application on the phone. Enter a user name and then tap the tracking button. When you start tracking, the phone will send a gps location to the websmithing test website.

defaultUploadWebsite = "https://www.websmithing.com/gpstracker/updatelocation.php";

You can go to this webpage after you have run the app on the phone and find your location.

https://www.websmithing.com/gpstracker/displaymap.php

It’s a good idea to use the test page first because that let’s you know later on when you try to use your own server whether its the phone that is not working or the server that is not working. Once you have confirmed that the phone works with websmithing’s displaymap page, the it’s time to change the upload website to one of the servers you created above. Just change the server url text field when you start the application and then save it.

Ok, this should get you going on android, let’s turn our attention to iOS.

iOS Devices

Getting your iOS device working requires xcode. Xcode can be found in the app store here:

https://itunes.apple.com/us/app/xcode/id497799835?mt=12

This project uses AFNetworking, a popular http library. I decided to use it because it has a method to easily convert a dictionary of strings into the required format needed for sending a post request and also it automatically handles making http calls in a background task. Well worth the effort of installing it. So, to install it, you need to install cocoapods, which is a dependency manager (java users think maven…) more or less. Here are instructions on installing cocoapods:

http://guides.cocoapods.org/using/getting-started.html

Once you have that installed, go to the phoneClients > ios directory (where the Podfile is located) and from the command prompt run the following command:

pod install

To open the project, you need to click on the GpsTracker.xcworkspace icon, not the normal GpsTracker.xcodeproj. This is to make sure AFNetworking loads properly. When you start xcode, it may ask you if you want to enter developer mode, select yes.

Plug in your phone and in the upper left hand corner, make sure it is selected from the drop down box. As with the Android device above, you can test the application with the websmithing displaymap test page. When you have confirmed that the app is working with websmithing, change defaultUploadWebsite on line 181 of WSViewController.m to point to your web server that you have set up above.

Windows Phone

The windows phone app can be opened with Visual Studio Express 2012 for Windows Phone.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff630878(v=vs.105).aspx

With windows phone, you need to register your phone for development. Microsoft explains how to do it here:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769508(v=vs.105).aspx

Make sure your phone is unlocked and then install the app on the phone. After you have tested the phone with the websmithing displaymap page, you can point the phone to your own webserver by changing defaultUploadWebsite on line 77 of MainPage.xaml.cs. Don’t forget to change line 87, phonenumber, to something other than windowsPhoneUser. It will help you in testing.

Java Me / J2Me Phones

This is what Gps Tracker was originally written for. Before iPhone and android came out, most phones were j2me phones. The reason why I continue to support these old phones is because there is a possibility that there are still more of these (mostly inexpensive) phones still being used than there are android phones! Android may not be the mostly widely used mobile platform! Android may not be the mostly widely used mobile platform according to Fortune magazine. So I continue to support it.

To work with the java me application, I used Netbeans version 7.4 on Windows. I ended up installing it in my windows 8 virtualbox. I tried running it on my macbook pro but had some real problems with it. It was easier to run it in virtualbox. Anyway, here is the netbeans download:

https://netbeans.org/downloads/

I only tested the app out in the browser because I did not have one of those older phones easily available. But in essence, you created a .jad file and install that on the java me phone. You can even email the file to your phone and open that up on the phone.

Now that I have finished this quick guide, I will be writing more in depth tutorials for each of the servers and clients. They will be coming soon!

287 thoughts on “Quick Start Guide for Gps Tracker

    1. Nick Fox Post author

      RealistTheorist, yes, you need a mac to install xcode on. If you are on a budget, I would suggest getting a mac mini, that’s the least expensive route.

      Nick

      Reply
  1. David Jackson

    This is all fine but I am a technical midget. I have 6 mobiles I need to keep track of. From a lay person point of view how do i do this?

    Dave

    Reply
    1. Nick Fox Post author

      Hi Dave

      I can think of 2 choices right now. You can try using:

      http://www.mycelltracker.com/

      which is a free website I made to track cellphones but you can only have one phone per account so you would need 6 accounts. The second option is to have a software developer take my software and modify it to track your 6 cell phones. That would be relatively easy. Let me know if I can be of any other help.

      Nick

      Reply
  2. RealistTheorist

    Thanks for the reply. Are you considering putting the clients into the Apple App-Store and/or Google Play at some point? I realize that one would still need a server, but I’m just wondering if you plan to move in that direction. A kickstarter project might be able to fund the move.

    Reply
    1. Nick Fox Post author

      Actually it is part of my plan. I do plan on putting a client into both stores. It will be easy in google play but I may have some difficulty convincing apple to accept such an app with limited functionality.

      Reply
  3. Mohamed Habeeb

    Thanks application working fine. I have used on android phone but the application was not running when i switch over to other apps. How to make this application to run as background process

    Reply
  4. Kay

    Hey nick

    Firstly, loads of thanks for sharing the Google GPS Cell Tracker. Secondly, I am using android studio on my windows 7 32 bit, and I tried to import the build.gradle to get the app to run. A window comes up and then I get these errors that say:

    “Cannot start git.exe’ and ‘Cannot run program “C:\Users\User\Desktop\gps cellphone tracker\GpsTracker\.gitignore”: CreateProcess error=193, %1 is not a valid Win32 application’

    Any idea what could be the reason please? I have done so well up till now, please help me continue.

    Thanks again!

    Reply
    1. Nick Fox Post author

      Hi Kay

      It looks like git may not be installed on your computer. Try to install it with this link and then please get back to me if it decides to give you any more trouble. I’m working hard on putting a version of the android client into Google Play. That way people will be able to use the generic version of the android tracker without having to compile it. I hope to have the client into Google play by the end of this week (Mar. 29, 2014). In the meantime, here is the link to install git on windows:

      http://msysgit.github.io/

      Nick

      Reply
  5. Kay

    Thank you so much for your response. I have installed git on my computer. Now when i try to click run GPS tracker on android studio, i get this error:

    “ClassCastException: org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings: org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings”

    ” Error running GpsTracker: Gradle project sync failed. Please fix your project and try again.”

    Would really appreciate your response. I am so close to getting it done. I don’t want to give up now.

    Reply
  6. Kay

    From sourceforge. I am thinking of re downloading android studio again and starting all over for the android part of the project. Any suggestions would be helpful..

    Kay.

    Reply
    1. Nick Fox Post author

      Hi Kay

      I think I found the problem. The latest version of gradle breaks compatibility with previous versions. To fix this, open up the gradle.build file in the GpsTracker folder and change line 6 to this:

      classpath 'com.android.tools.build:gradle:0.9.+'

      note that you are changing to 0.9.

      I think that will fix it.

      Nick

      Reply
  7. Roberto Fuentes Garcia

    Hi. I just deployed you code in a test environment. It runs beautifully.

    I am in the process of putting together a public transportation monitoring service for the City of Ensenada, Mรƒยฉxico. I am doing it as a social service (pro bono), and I am wondering what implications it might have, and what would be your perspective about it, if I use your code. If the project is successful, it’s use would then start generating some money, and even though I am little familiar with MIT license, I’d like you to tell me what you think.

    Thanks in advance, and congratulations on you useful application

    Reply
    1. Nick Fox Post author

      Hi Roberto

      I’m glad the application is of use to you. The MIT license is very liberal. Just make sure you keep the license file with the software and you can use it any way you want (within the terms of the license). The github repo is fairly up to date. Currently I am working on updating the android app which will make it a little more robust while working in the background. I will make a big announcement and update the software when it’s finished. Hopefully within a week or so.

      I hope the project is successful for you and let me know if there is anyway I can help you.

      Nick

      Reply
  8. Kay

    Hey Nick, Thanks again. I have downloaded the project from github so its now updated with 0.9.+ . But this is the error i get now when i try to run the app, something to do with the gradle:

    ————————-

    Gradle ‘GpsTracker’ project refresh failed:
    Could not execute build using Gradle distribution ‘http://services.gradle.org/distributions/gradle-1.11-all.zip’.
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.11/userguide/gradle_daemon.html
    Please read below process output to find out more:
    ———————–
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    : Gradle settings
    ————————————————————————————————
    Help? ๐Ÿ™ Please don’t give up on me.

    Reply
  9. Kay

    Hey Nick

    I have tried the above link, i am still getting the error. I have even tried some other options on the given link. How much longer do you think the app would take to be uploaded on android play store? ๐Ÿ™

    I am trying my best to get to bottom of the error message but I am sadly not getting anywhere. I have even downloaded Android studio 0.4.1 to test it, and still says the same. I need you software badly..

    Any more suggestions in mind?
    Thanks

    Kay

    Reply
    1. Nick Fox Post author

      Hi Kay

      Let’s try something different. Let’s work from my github repo. From the command line run this:

      git clone [email protected]:nickfox/GpsTracker.git

      In android studio, go to the tools menu and click on Android > SDK Manager. When the SDK manager opens up, update everything under Tools, Android 4.4.2 (API 19) and Extras.

      Open the project by going to the root of the project (GpsTracker > phoneClients > android) and opening the project. You don’t need to change anything in any files. I tested it and it should just work. Let me know how that goes.

      Nick

      Reply
  10. Kay

    Hey Nick

    I did as you suggested and it seems there is issue with the gradle version:
    ———————-
    “Failed to refresh Gradle project ‘GpsTracker’
    You are using Gradle version 1.11, which is not supported. Please use version 1.9.
    Please point to a supported Gradle version in the project’s Gradle settings or in the project’s Gradle wrapper (if applicable.)
    Fix Gradle wrapper and re-import project Gradle settings”
    ———————–
    I did try to change the Gradle wrapper settings to 1.9-all as well as 1.9-bin just out of trial and error, then it gave me some other weird error to do with .idea file.

    snapshot of the 1.11-all gradle version error message on tinypic image hosting site:

    http://tinypic.com/view.php?pic=ickcue&s=8#.U0Qjb6K0YVc

    Thanks a lot, I appreciate every single reply you’ve been giving me.

    Reply
  11. Kay

    Hey

    beats me, i am just running what’s given in the code. This line under phone clients > gradle folder > wrapper > gradle-wrapper.properties file:

    ———————-

    http\://services.gradle.org/distributions/gradle-1.11-all.zip

    ———————-

    Doesn’t it this refer to gradle version 1.11?

    P.S: I am not an expert in developing apps and neither have i developed one before. But I have managed to get here until now by following your guidelines and good amount of self researching. I have no idea how in the world i got gradle version 1.11 ๐Ÿ™

    Reply
    1. Nick Fox Post author

      Kay

      Please clone the project once again from github. I have updated the build.gradle file and a few other files. Try and compile this.

      If it doesn’t work, let’s have a meeting with skype or something similar so I can see your desktop. I want to see what’s going on and try to set it up myself.

      Nick

      Reply
  12. Kay

    Hey Nick

    Unfortunately, the same error is coming up. I think you have my email, I prefer that we schedule the meeting day and time over the email. If you do not mind because I am not in the same time zone as the States.

    Looking forward to your email
    Kay

    Reply
  13. Tanihera

    Many thanks Nick

    This is working superbly well, compiled in VSX2012 for a Lumia 625 phone. It is really enlightening for me and most generous of you.

    Regarding my own server, my ISP advises my homepage site offers javascript, but not mySql, .ASP , or php. Nevertheless, I’d like to get something going there I can evaluate. For a *really* basic single-phone tracker, I guess I can store the short history of location data in an html table for table, for example.

    I’m an experienced VB programmer, but I just can’t fathom how your server code receives and processs the FormUrlEncodedContent location data. Is it possible to replicate this without php? Any pointers, suggestions, links, or advice would be most welcome.

    I’d be mighty grateful for any help.
    Tanihera

    Reply
    1. Nick Fox Post author

      Hey Tanihera

      You really need to be using a server side language like php and also should be using a database. Any significant website will almost always use some variation of that.

      1) server side language (php, ruby on rails, asp.net etc)
      2) mysql, sql server etc
      3) client side languages, usually javascript and all the libraries that are built with it like jquery

      I would recommend getting an account at digitial ocean. It’s cheap and well liked by developers.

      https://cloud.digitalocean.com/

      Take the time to learn how to do this properly. My project will give you all the basics you need to do it in a manner that is consistent with what you will find in most web/mobile projects.

      Reply
  14. sazib

    Hi Nick, Thanks for your nice work. I checked android app with your test page. It worked fine. So that means android client is fine. But the problem is when i tried to use .net server i don’t see any data or maps on the page after loading. I deployed that in my IIS server. The page is running and without any error. I checked the connection string in web.config file which is totally fine.

    When i was first trying to build it i found an error on DeleteRoute.aspx.cs page. You probably forgot to change few xml keywords to json. I was wondering, is there any other changes need to do in order to work it properly from server side. Because the first loading is not working in DisplayMap.aspx page.

    I’m finding it hard to find the problem cause i never worked on json.

    I would really appreciate you response.

    Reply
    1. Nick Fox Post author

      I think I may have found a problem. Can you please check your connection string in the Web.config file:

      connectionString=”Data Source=localhost\SQLEXPRESS;Initial Catalog=GPSTracker;Persist Security Info=True;User ID=sa;Password=gpstracker”/>

      please change the data source to localhost and let me know how that works.

      n

      Reply
  15. Isuru Chamara

    Dear Sir,

    I have read all about your Gps Tracker application and please accept my congratultions and also many thanks to you for saving my day, because you are the only person who can help me out with my problem.

    I am a third year undergraduate at University of Moratuwa in Sri Lanka. And I am following computer science and engineering degree, now I’m in my 5th semester and we are asked to work on a software project which will deliver a working software solution. This is kind of open ended project and we have the freedom to select any field and select any idea (which sholud be feasible). Also we have to complete it withing 15 weeks, so it should not be complex but it should worth developing, otherwise my subject coordinators would not accept my project proposal (which I have to deliver on upcomming thursday)

    That being said and I will tell you why I have a keen interest on your application. My android phone was stolen back in last october and I could not find it because mainly I did not aware of phone tracking applications (although I have filed a police report and so on but those did not help). So I decided to develop a phone tracking application for my semester project so that I could keep my next phone safe and sound. So I googled for days about phone tracking softwares, tutorials..etc and your website popped up and bravo…:)

    Frankly, I am new to the android platform and eager to learn, after I saw your application I realized that my project can become a success. And all I need is your help. Can you please help me by providing step by step tutorials about how you develop your application? I just don’t want to copy your source code and show it as my work, I don’t like that, I want to learn and implement those functionalities on my own, If you are willing to help me with this issue, I can make it a success and I do not have enough words to thank you. So please reply me if you can help me, I am awaiting your reply.

    Thank you,
    IC

    Reply
    1. Nick Fox Post author

      Hi Isuru

      Thank you for your comments. You’re in luck because the first tutorials I have created for Gps Tracker are the ones for the android app. The first thing I would do if I were you is read the Android tutorial here:

      Gps Tracker Android Tutorial

      and then the Android tutorial on my youtube channel:

      Gps Tracker Android Video Tutorial

      As you are going through the code in the Android written tutorial. you need to stop at every word you don’t understand and go look it up in the Android APIs. The application is not trivial and there is a lot of terminology within Android that is not standard and can be confusing. For instance, screens are called Activities. So you would go and read about here:

      http://developer.android.com/guide/components/activities.html

      Once you have gone through the tutorials, you need to download Android Studio and compile the app using the code in my github repo. Let me know if you have any questions and I’ll be happy to help you. But please know that I have taught many engineers how to code and my expectation is that they try really hard to answer questions themselves (using google, stackoverflow, etc). If I see someone really putting in the effort, then I am very happy to help.

      Nick

      Reply
      1. Isuru Chamara

        Hey Nick,
        Thank you very much for the positive response. Yeah I totally agree with you, since I am new to android, these days I am learning the basics through various tutorials and once I get through that I will be able to understand the source code. Like you said, I am willing to put my every effort to my project to make it success, so I will try hard to get answers myself, and I will let you know my progress and will ask your guidance when absolutely necessary.
        Thank you

        Reply
  16. carl

    Nick,
    I have the application running smoothly on my site now. I’ve made some minor changes (which took forever ๐Ÿ™‚ on the server side so that it displays the most current route by default, uses a different zoom level by default, etc.

    I was thinking that it would be pretty cool to make a WordPress plugin using the server-side code as a starting point. I’ve never developed a plugin before, but I’ve done some reading and it seems doable for me (I think).

    i”m not looking to make any money or anything, just think it would be fun to attempt. However, I’m not sure if this would be ok with you? I’m not all that familiar with the open-source etc world.

    thanks

    Reply
    1. Nick Fox Post author

      Hey Carl

      I’m glad to hear that you got it working. I’m a little bit shocked by what you said. I’ve been working on a Gps Tracker wordpress plugin for the past two weeks! Over the past several months of answering questions here, I realized that most people were really struggling with things like permissions (which is hard for everyone to deal with) and that the barrier to entry was higher than it needed to be. Then it dawned on me that if I built a plugin, it would make Gps Tracker a lot more accessible to a lot more people.

      And secondly, I made the decision to redo one of my other websites that was built on the original Gps Tracker.

      https://www.mycelltracker.com

      and that site is built with wordpress. I really love wordpress, I think it’s the best darn platform for building just about anything server side and plugins are absolutely the way to build the required server functionality. Anyway, I’m going to write a post (not a tutorial) about this explaining in detail what I’m trying to do and I want to invite you to take part in this if you would like too. There is a CS student (named Isuru in one of the comments above) who might like to participate also. I’m going to extend an invitation to anyone who wants to participate. I think this would be a good experience for both me and anyone else who wants to get involved. I’ll ping you when I finish the post. And thanks once again for coming back around and letting me know you got it working.

      Nick

      Reply
      1. carl

        Guess we were on the same wavelength! I would definitely like to work on it. I’ve been looking for a good project to build my skills, so this project would be ideal. Doing it by myself would be difficult, so if I can learn from you, great! Let me know how I can help etc. In the meantime I will continue to read-up on the particulars.

        I am also a big fan of WordPress. I’ve done some work with WordPress, although not a whole lot of coding, just relatively minor tweaks to existing code. I’ve done quite a bit of reading thou, so I think I have a decent understanding of the process.

        (forgive me is this is a duplicate post – i thought i had responded yesterday, but I don’t see my response.)

        Reply
  17. TroN

    to solve the problem :

    ————-
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    : Gradle settings
    —————————

    under windows 7 , follow these steps:

    1-Control Panel
    2-System
    3-Advanced(tab)
    4-Environment Variables
    5-System Variables
    6- New

    Variable name: _JAVA_OPTIONS
    Variable value: -Xmx512M

    this solves the problem

    Reply
  18. Rajesh

    Hi Nick,

    This seems to be like a wonderful idea. Can I use this to track more than one mobile units at the same time?

    Reply
    1. Nick Fox Post author

      Hi Rajesh

      Absolutely, there are no limits to how many phones you can track at once. The only thing that might be considered a limit is the number of markers you can display on a map at one time (a thousand markers on a small map does not look very good). But there are leaflet plugins that allow you to group markers at different zoom levels so that it doesn’t look so crowded. Let me know if you have any other questions.

      Nick

      Reply
  19. Nick

    GPS Tracker does not work for me. When I run this in VS 2012 I get the following error…

    Error 1 The type or namespace name ‘DbXmlReader’ could not be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\gpstracker\DeleteRoute.aspx.cs 13 9 http://localhost/gpstracker/

    So I do not see this Helper Class you are referring to… Any HELP please…

    Reply
    1. Nick Fox Post author

      Hey Nick

      Thank you for pointing this out. That needs to be fixed by me. I switched from xml to json but apparently forgot to update that class. Are you able to view routes on the map in DisplayMap.aspx?

      Also, in DeleteRoute.aspx.cs, try this, replace lines 12-19 with this and please let me know if this works:


      // our helper class to get data
      DbJsonReader reader = new DbJsonReader();

      Response.AppendHeader("Content-Type", "application/json");

      Response.Write(reader.getJsonString("prcDeleteRoute", "route",
      new SqlParameter("@sessionID", sessionID),
      new SqlParameter("@phoneNumber", phoneNumber)));

      Reply
      1. Nick

        Hello, thanks for the quick response. I added that code that you sent. So now when I run the website, it just sits there with the dial spinning and does nothing. The top says GPS Tracker: Loading routes… but nothing displays. Hmmmm, any help???

        Reply
        1. Nick Fox Post author

          What’s the url? It sounds like there aren’t any routes in the database. Are you getting a json string back from GetRoutes.aspx?

          n

          Reply
          1. Nick

            Do you happen to have TeamViewer, maybe you can connect to me and see what I am seeing…

          2. Nick

            From what I can tell, nothing… The website is stuck on the DisplayMap page showing nothing…

          3. Nick

            Ok, I set a breakpoint and ran in debug mode… I have a database connection issue… Hold on please… let me resolve this…

          4. Nick

            Ok, I can connect to the database now… GetRoutes.aspx returns: “] }” … and thats it…

            So now when I run it… it does the same thing…. Loading Routes … and just sits there spinning…

          5. Nick Fox Post author

            Ok, good. Making progress. Can you now go into sql server and see how many rows you have in the gpstracker table and let me know.

            And also, what did you do to fix the connection problem so I know for future reference?

            n

          6. Nick

            Ok, I finally got it working… Yaaaaay. First I got this error when trying to connect to the database..
            Cannot open database “GPSTracker” requested by the login. The login failed.
            Login failed for user ‘IIS APPPOOL\DefaultAppPool’.

            So I went in to IIS Manager to fix this problem. and then I got this error…
            Cannot open database “GPSTracker” requested by the login. The login failed.
            Login failed for user ‘NT AUTHORITY\SYSTEM’.

            So I added NT AUTHORITY\SYSTEM as a user and granted “Execute” access to it for each stored procedure. After this I ran it and wa la … I get a map now with one route showing… So the big question now is… How do I add my phone number or whatever to begin tracking my phone movement…???

          7. Nick

            Ok I have an Android… I just went and installed the App… it shows a URL… I put in a username… so now what??? I turned on Tracking…

          8. Nick

            Ok, so now when I installed the App and ran it… I put in the URL that shows under the username in my browser… and I just get a zero… What am I doing wrong…???

          9. Nick

            Hello Nick, how can I change the refresh intervals on the phone app and the website… Well I kind of know the answer since I am a Software Engineer. Would like it to refresh every 15 or 30 seconds…

          10. Nick Fox Post author

            Nick

            Refreshing every 15 seconds could be a problem with the phone app since it can take longer than that to get a gps fix. If you want to use an interval that small then it makes more sense to me to keep the background service running continuously and to keep the gps radio on. This will of course require that the phone be plugged in. That is the major tradeoff with trying to get that many data points. You will have to try it and see. As far as how to do it, you need to take the background service off of the timer and keep it on (or hire me to rewrite the app to do it).

            https://www.websmithing.com/hire-me/

            n

  20. Emre S.

    Hello Nick,

    Thank you so much but I can not install SQL file.. I getting the error: Access denied; you need the SUPER privilege for this operation How i can fix?

    I use Hostgator.. Can I with SSH? or An alternative way?

    Please help me Nick! Thank you

    Reply
    1. Nick Fox Post author

      Hey Emre

      I’m not to familiar with hostgator but I assume they have PhpMyAdmin and you can use that. If they have ssh available, you can restore the db from the command line but you do need the admin password for the database either way. That seems to be the problem is that you don’t have that password. The instructions above explain how to do it from the command line.

      n

      Reply
      1. Emre S.

        Hello,

        Thank you so much for ideal and this script!
        I solved this problem and now working.

        1- SQL File to Database import, after
        2- I changed it to utf8_unicode_ci in gpslocaition table

        Reply
  21. Vithchea

    Hi I got a huge problem with IIS .

    In Visual Studio when I open gpstracker it appears “The site ‘Default Web Site’ does not appear to be configure correctly in IIS. The most likely cause is the virtual directory path has not been specified.”

    I check “Test setting” in IIS and it’s green tick.
    pls help me!

    Reply
    1. Nick Fox Post author

      Hey Vitchea

      I honestly don’t know. You need to find someone who can administer IIS websites or keep on googling.

      n

      Reply
  22. fran

    Hi!
    รขย€ยœFailed to refresh Gradle project รขย€ย˜GpsTrackerรขย€ย™
    You are using Gradle version 1.11, which is not supported. Please use version 1.9.
    Please point to a supported Gradle version in the projectรขย€ย™s Gradle settings or in the projectรขย€ย™s Gradle wrapper (if applicable.)
    Fix Gradle wrapper and re-import project Gradle settingsรขย€ย

    Reply
  23. Israel Lucero

    Hello how are you doing …

    A pleasure to greet you, take the opportunity to congratulate you on your hard work, God bless you simpre …

    now I’m testing the application and it seems very well made, but I have a question, if I want to draw the path generated between each position I get from my database where should start programming …

    I am working with php and mysql …

    I say goodbye but not before reiterarte my congratulations, I hope your answer …

    Reply
  24. Brandon

    Howdy,

    I am rather new at android development please forgive me if this is a really stupid question. We keep getting this error message, and really have no idea what it means. Could you please point us in the right direction.

    Error:Execution failed for task ‘:app:processDebugManifest’.
    > Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1

    Sorry again if this is a really dumb question with an obvious answer.

    Thanks

    Brandon

    Reply
    1. Nick Fox Post author

      Hey Brandon

      I had the same problem last week when I tried to update gps tracker in android studio. If you open the SDK manager, you’ll see that API 20 is listed. I found that I couldn’t use that. I had to switch back to API 19. Here is a copy of my working build.gradle that shows all the proper APIs. You need to make sure that API 19 (4.4.2) is installed in the SDK manager.

      apply plugin: ‘com.android.application’

      android {
      compileSdkVersion 19
      buildToolsVersion “20.0.0”

      defaultConfig {
      applicationId “com.websmithing.gpstracker”
      minSdkVersion 10
      targetSdkVersion 19
      versionCode 3
      versionName “3.0.0”
      }
      buildTypes {
      release {
      runProguard false
      proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
      }
      }
      }

      dependencies {
      compile fileTree(dir: ‘libs’, include: [‘*.jar’])
      compile ‘com.android.support:appcompat-v7:19.+’
      compile ‘com.loopj.android:android-async-http:1.4.5’
      compile ‘com.google.android.gms:play-services:4.3.23’
      }

      Reply
  25. NetMan

    Thanks for this wonderful gift to humanity, im currently working on similar project and this had really helped me a lot. where do i get the username, on the android client or on the asp.net pages/Database
    im confused

    When entered the username on my Galaxy Tab 3 tablet and turn on the Traking Button(which became Green) and i went to https://www.websmithing.com/gpstracker/displaymap.php, i could not see my Id displayed among the rest there.

    pls kindly explain, how to go about the username.

    Do i need to turn on GPS radio on my device?

    Thanks

    Reply
    1. Nick Fox Post author

      Yes, definitely turn on gps and wifi, especially while testing. And you need to make sure there are clear skies above you. This will probably not work indoors unless you are near a window. You need to have a clear path to the sky.

      n

      Reply
  26. NetMan

    Thanks for your response, i really appreciate, pls can you just shed light on the followings

    1. what of if i want to the interval to be say 30 seconds instead of minimum of 1 minutes

    2. if i don not want some else to change the username and defaultUrl, how do i go about that in the android client source code.

    3. im using the .Net server source code , the uploadlocation.aspx page is giving the following errors.

    String reference not set to an instance of a String.
    Parameter name: s

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: String reference not set to an instance of a String.
    Parameter name: s

    Source Error:

    Line 53: // convert to datetime string
    Line 54: private string convertFromMySqlDate(string date) {
    Line 55: DateTime dt = DateTime.ParseExact(date, “yyyy-MM-dd HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture);
    Line 56: return dt.ToString();
    Line 57: }

    Source File: c:\Assignment\GPSTRACKER\UpdateLocation.aspx.cs Line: 55

    how do i go about correcting this

    Thanks

    Reply
      1. NetMan

        Thanks for your response
        What of the error coming from updatelocation.aspx page showing error

        String reference not set to an instance of a String.
        Parameter name: s

        Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

        Exception Details: System.ArgumentNullException: String reference not set to an instance of a String.
        Parameter name: s

        Source Error:

        Line 53: // convert to datetime string
        Line 54: private string convertFromMySqlDate(string date) {
        Line 55: DateTime dt = DateTime.ParseExact(date, โ€œyyyy-MM-dd HH:mm:ssโ€,System.Globalization.CultureInfo.InvariantCulture);
        Line 56: return dt.ToString();
        Line 57: }

        Source File: c:\Assignment\GPSTRACKER\UpdateLocation.aspx.cs Line: 55

        how do i go about correcting this

        2. I can see my username and device being tracked on your displaymap.php, but not working when i deployed the aspx pages to a public server, which was connected well to the database because the database was displaying the the record in the .bak file you provided, i presume this might be due to the updatelocation.aspx showing error.

        pls can you kindly help out on this.

        3. Lastly do i need to keep the displaymap.aspx(and/or updatelocation.aspx) page always opened and online before the gpstracker app on the device can send information to the database.

        pls kindly help.

        Thanks

        Thanks

        Reply
  27. Dominic

    Hi Nick thanks for the nice application. i have a question how can i take the gps coordinates and attach it to a form while submission, like a sales form where we can add the location of the particular establishment so that it ill be easy to locate it next time. I am using geolocation html5 api and that is not much accurate though. pls help

    Reply
    1. Dominic

      Nick Thank you a lot for this app. i used geoloacation api to store locations and this to track mobiles. Thank you verymuch!!

      Reply
  28. NetMan

    using the .Net server source code , the uploadlocation.aspx page is giving the following errors.

    String reference not set to an instance of a String.
    Parameter name: s

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: String reference not set to an instance of a String.
    Parameter name: s

    Source Error:

    Line 53: // convert to datetime string
    Line 54: private string convertFromMySqlDate(string date) {
    Line 55: DateTime dt = DateTime.ParseExact(date, โ€œyyyy-MM-dd HH:mm:ssโ€,System.Globalization.CultureInfo.InvariantCulture);
    Line 56: return dt.ToString();
    Line 57: }

    Source File: c:\Assignment\GPSTRACKER\UpdateLocation.aspx.cs Line: 55

    how do i go about correcting this

    Reply
    1. Nick Fox Post author

      I’m really not sure what you are doing wrong but apparently, you are not sending a date string to that function. You need to log that date string on the phone and see what’s going on.

      n

      Reply
  29. TonyT

    NICK, something is broken. I have been using the android tracker successfully for over a month MY customers have come to rely on it… today it STOPPED working…just as I’m leaving on a TRIP this sucks! I had to reinstall from the Google play store but it only displays 1 min and 5 min interval and it wont connect to my web. ALL was working but I cant seem to get the app installed on my android phone. It HAS been working just fine the only thing that changed is I re-installed for unrelated issues but NOW it wont work so I believe there is an issue with the Google Play Store version PLEASE Fix it or re-upload to Google play the latest version for android Please help.

    Reply
    1. Nick Fox Post author

      Tony

      I apologize, this is my fault. I’m getting ready to put out the next major version of gps tracker and it’s not compatible with earlier versions. The entire new version, that is fully functional, is in source control:

      https://github.com/nickfox/GpsTracker

      I will post a special build of the android app here on websmithing that will work with the old app. I’m sorry for the way this happened.

      Nick

      Reply
  30. Zerouil

    Hi, I’m having the same error message as NetMan, about :
    convert to datetime string
    Line 319: private string convertFromMySqlDate(string date) {
    DateTime dt = DateTime.ParseExact(date, รขย€ยœyyyy-MM-dd HH:mm:ssรขย€ย,System.Globalization.CultureInfo.InvariantCulture);
    return dt.ToString();
    Source File: c:\Assignment\GPSTRACKER\UpdateLocation.aspx.cs
    Please how to fix this, Thanks.

    Reply
    1. Nick Fox Post author

      Hey Zerouil

      Can you please delete the app from your phone and then download the app again. Let me know if that fixes it for you.

      n

      Reply
  31. Chris

    I have a similar issue as Dominic. I’m running .net version on SQL server that I just downloaded from your link. Display works, but Android phones never posts to it. When I test phone on your site it works but takes forever (15-20 minutes even though set at 1 minute intervals) to report data and appear on map.

    Reply
    1. Nick Fox Post author

      Hey Chris,

      can you please make sure you are using version 4 of GpsTracker, either from github or sourceforge. Also, in the android app, make sure the priority is set to this (about line 109):

      locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);

      n

      Reply
  32. May

    Hi Nick,

    Congratulations on your hard work, this pretty good and has served me well

    I have a question about the GPSTracker v.4, when you submit the location from the android client, there are problems with the reception on the server, I have no records in my database, there is no connection between the app and the server, and check that this well directed and if this, my question is if there is way to download the old version of GPSTracker (android), came running fine and I would continue with this version if no problems.

    Bye Bye.

    Reply
  33. Mr. Tantrum

    I am using the .NET version with MS SQL and android phones. I’ve downloaded the app from the store and it reports fine to the test site. However, when I point it to my site the reporting never seems to come (done this with 2 different phones). If I navigate directly to the URL from a browser (on the phone or a PC) to the displaymap.aspx file a page is returned with a -1 which I assume is because no data was passed, but this is hopeful in that the site seems to be accessible. Also, my site is over http and not https. Finally, I can navigate to displaymap.aspx just fine and the map appears but only with the 1 sample route that I have in SQL.

    Do you have any ideas on what my issue might be?

    Reply
  34. May

    Hi Nick

    thanks for your answer, I wanted to run something, you know if I could add a number to each marker to identify them better.

    Thanks for your help …

    greetings

    Reply
  35. Louis

    Hi, I can’t restore the database… why? it must be corrupted or something like that.
    I have this message:object cannot be cast from dbnull to other types. (mscorlib)
    Thanks for help.

    Reply
    1. Nick Fox Post author

      Hey Louis, I just deleted my aspx version of the gpstracker and reinstalled it from github and have no problems at all. The database is not corrupted. Where exactly are you getting that error message and please provide the entire message. Also, what version of sql server are you using?

      n

      Reply
        1. Louis

          Latin1_General_CI_AS

          I use sql express 10.50 sp2 with 2014 presently is it ok, perhaps i need to remove other versions installed and use only 2014?

          Reply
        2. Louis

          Ok, I’ve found it.,,,, I saw that I use X64 DB engine so I only added a new installation of sql express x86 engine and restore database and it’s work…
          So let’s see for the next steps, anyway thank you for helping me Mr Nick… I’m asking myself if it will work with other version as 2014, I believe yes. ๐Ÿ™‚

          I’m a professional Dev, so I need differents versions at the same time. So I know it’s confusing but should work.

          Reply
  36. BAJA BIKES

    Hello Nick, I’d say congrats for your app nut I’m sure you get that a lot, so straight to my thing.

    I have successfully installed, configured, ran and even “customize” you code with the intention of making money by using it in my business. I have two questions:

    Is that legal?

    How should I pay you: donate once, give you some share if the plan works, advertising?

    Thanks a lot for answering.

    Reply
  37. Nud

    Hello Nick,
    Sorry to trouble you with this. After installing via phpmyadmin (following your instructions) I get this error message on Android Studio when attempting to upload location:
    “Fatal error: Class ‘PDO’ not found in /home/xxxxxxxx/public_html/gpstracker/dbconnect.php on line 5
    Any advice?
    Rgds
    Nud

    Reply
      1. Nud

        I’m installing (remotely) on a website hosted by an ISP and do not have access to configuration. Is there any way to do this via pypmyadmin or should I approach the host?
        Thanks for your time.
        Nud

        Reply
  38. RaduJohn

    Hello Nick,

    I read about your project, and I decided to give it a test. I installed the PHP server on a shared hosting account … and of course … it is not working. Am I guessing right if I say, may not be made to run on shared hosting?

    I am a script kiddie for now … not knowing much even about PHP. Hopefully I get a positive response from you.

    Reply
    1. Nick Fox Post author

      Hey Radu

      It should work anywhere. Did you make sure the connection information and database name is correct in dbconnect.php?

      n

      Reply
  39. dominic

    hi i am trying to use the windows phone client on windows phone 8.1.
    The android client is working perfect.
    With windows phone 8.1 i am getting an error for GetAsync. Line 96 in MainPage.xaml.cs so i used Post Async.
    Now the build is okay. and iam getting the Status Code as OK. But i cannot see the track details or the name in the diaplay map in websmithing.com display page. Please tell me where i am going wrong.

    These are the output messages

    ‘TaskHost.exe’ (CoreCLR: DefaultDomain): Loaded ‘C:\windows\system32\mscorlib.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Windows.RuntimeHost.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Windows.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Net.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Xml.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\Data\Programs\{DA68943F-9ABF-407C-8692-E3475337BBA7}\Install\GPSTracker.DLL’. Symbols loaded.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\Microsoft.Phone.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\Microsoft.Phone.Interop.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\WinMetadata\Windows.winmd’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Core.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Runtime.Serialization.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Runtime.InteropServices.WindowsRuntime.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Runtime.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    13/11/14 10:59:43 AM statusChanged: initializing
    13/11/14 10:59:49 AM statusChanged: ready
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Device.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\Data\Programs\{DA68943F-9ABF-407C-8692-E3475337BBA7}\Install\System.Net.Http.DLL’. Cannot find or open the PDB file.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\windows\system32\System.Threading.Tasks.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
    ‘TaskHost.exe’ (CoreCLR: Silverlight AppDomain): Loaded ‘C:\Data\Programs\{DA68943F-9ABF-407C-8692-E3475337BBA7}\Install\System.Net.Http.Primitives.DLL’. Cannot find or open the PDB file.
    13/11/14 11:00:03 AM positionChanged foreground: Satellite accuracy: 10m
    13/11/14 11:00:37 AM sendGPS statusCode: OK httpCount: 1
    13/11/14 11:00:48 AM positionChanged foreground: Satellite accuracy: 10m
    13/11/14 11:00:49 AM sendGPS statusCode: OK httpCount: 2
    The thread 0xb94 has exited with code 259 (0x103).
    13/11/14 11:01:48 AM positionChanged foreground: Satellite accuracy: 10m
    13/11/14 11:01:49 AM sendGPS statusCode: OK httpCount: 3
    The thread 0xca0 has exited with code 259 (0x103).
    13/11/14 11:02:48 AM positionChanged foreground: Satellite accuracy: 10m
    13/11/14 11:02:49 AM sendGPS statusCode: OK httpCount: 4
    13/11/14 11:03:48 AM positionChanged foreground: Satellite accuracy: 10m
    13/11/14 11:03:49 AM sendGPS statusCode: OK httpCount: 5

    Thank you for your help

    Dominic

    Reply
    1. Nick Fox Post author

      Dominic

      I’m a little confused. The server side code as of version 4.0.1 is using GET and not POST so are you sure you are sending gps data to the website? Did you look at the gpslocations table in the database and see if your data is there?

      n

      Reply
  40. Shashank

    Hi , I have installed the php version of the server , but server is not receiving data from the android client .At display map it shows the default routs (gpstracker1 ,gpstracker2,gpstracker3) but does not update . Please help

    Reply
  41. Alexey

    Hi Nick.
    Sorry for my bad English. How can I change the script, that he would appear on the map, only the last place? Thank you.

    Reply
  42. Roberto Fuentes Garcia

    Hello nick, I am sorry to bother you.

    I updated to the latest version of your GPS tracker. It all works OK, except that when I click on a marker or select a route from the drop down nothing happens, the map does not update to show only the markers of the selected route as it used to nicely do, is this a common problem or do you know what I can do?

    I already tried many things before bothering you, but it all just got worse :(, so I just made a fresh setup, phones are sending data, server is saving received data propperly, website renders fine, but still nothing happening on the map if click on marker or select route in drop down.

    One detail: when I click on a marker, the drop down does get updated accordingly, it is just the maps that does not respond to interaction

    please help me, I’m running on LAPM, hosted in godaddy.

    Thanks a lot in advance for your input.

    Reply
      1. Roberto Fuentes Garcia

        Good morning Nick, I’m back to work this morning, at office, and I notice does not work, so I installed an IP spoofer, ran it, and now it is working, so I guess there is some local conflict with the firewall or something… the source of the issue is not the GPS Tracker ๐Ÿ™‚

        Reply
      2. Roberto Fuentes Garcia

        The funny part is yesterday at work while trying to fix it I changed a few things on the maps library, mainly the control of viewingAllRoutes and routeSelect variables which made it work in some cases, but anyway, just wanted to let you know in case this my be usefull ๐Ÿ™‚

        Reply
  43. Sid

    Hi Nick – Just looking at your tutorial to understand how this whole works. So, in order to track a cell phone, the mobile app needs to be installed on that cell phone, which in turn will update the location periodically in the Server database. Am I correct? or does it work some other way?

    Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.