Author Topic: LocationGet TOGETHER WITH TIMER  (Read 2865 times)

danielkuhn1@freenet.de

  • Guest
LocationGet TOGETHER WITH TIMER
« on: April 21, 2014, 02:25:08 pm »
Hello,

LocationGet works fine as standalone inside AppMain and enters Coordinates into Textbox.

However when combining with Timer to continuously retrieve coordinates (e.g. when walking) it won't work (The values of the coordinates are not updated)

Did use the code provided in the support area: http://www.dragonfiresdk.net/help/DragonFireSDKHelp.html  > LocationGET as below.

Tried different other ways. Never worked.
Did anybody succeed? No bug inside Dragonfire?

Regards
D



#include "DragonFireSDK.h"

 

int MyFont;

int LatitudeText;

int LongitudeText;

char TextBuffer[100];

 

void AppMain()

{

   LandscapeMode();

   // Begin monitoring location

   LocationMonitorLocation(1);

 

   MyFont = FontAdd("Helvetica", "Regular", 24, 0x00FF00);

   LatitudeText = TextAdd(10, 10, "Latitude:", MyFont);

   LongitudeText = TextAdd(10, 40, "Longitude:", MyFont);

}

 

//===============================================

void OnTimer()

{

   float lat;

   float lng;

 

   LocationGet(lat, lng);

 

   sprintf(TextBuffer, "Latitude: %f", lat);

   TextSetText(LatitudeText, TextBuffer);

 

   sprintf(TextBuffer, "Longitude: %f", lng);

   TextSetText(LongitudeText, TextBuffer);

}

jousepo

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
    • View Profile
Re: LocationGet TOGETHER WITH TIMER
« Reply #1 on: April 30, 2014, 04:00:28 am »
Hi!!!!
Seems to be a problem with new features since iOS 7.0.4 with Location API that has not been registered in Dragonfire SDK iOS libraries.

Update will be a minor change but never arrives to build center. Hope will corrected because i've an app that uses GPS and is in the appstore....

jousepo

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
    • View Profile
« Last Edit: April 30, 2014, 05:50:34 am by jousepo »

jousepo

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
    • View Profile
Re: LocationGet TOGETHER WITH TIMER
« Reply #3 on: April 30, 2014, 06:01:53 am »
After a big research think that not totally problem of DragonFireSDK... ios 7.0.4 gps accuracy depends of multiple factors that i can't test because i don't have an iphone, only an ipad and without SIM in it.

jousepo

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
    • View Profile

jousepo

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
    • View Profile
Re: LocationGet TOGETHER WITH TIMER
« Reply #5 on: May 16, 2014, 04:23:23 am »
i'm still waiting for the solution. I need this patch for my app before upload.... :(