Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 67

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
06/07/12 07:48 AM (13 years ago)

Using map location

I use a screen the shows some map locations, and activated the driving directions. In the app when I press the pin, I'm asked if I wanna open the native maps app, I click ok, and then get this message: It appears that the devce location is unavailable. This feature will not work without location information How can I go around this? Cheers.
 
Ag-Chieve
Lost but trying
Profile
Posts: 124
Reg: Apr 16, 2012
Winnipeg
9,090
like
06/07/12 07:54 AM (13 years ago)
Just a guess but it sounds like the device doesn't have its GPS turned on. Make sure the device has its GPS turned on and is reporting its position and try again. You can also include an 'allow GPS' plugin if you're using a maps plugin to get the user to turn on their GPS when using your app. If your app is iOS, though, don't make the 'allow GPS' screen's background black because the font doesn't automatically change to white and it'll look like there is no writing on the screen. Hope this helps.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/07/12 08:36 AM (13 years ago)
Thanks, is there a way to have the app ask permission to use your location as soon as its turned on? Or when you want to use a map screen? Or do I have to include a Allow GPS screen where the user has to select and this screen to allow or prevent? Thanks
 
Ag-Chieve
Lost but trying
Profile
Posts: 124
Reg: Apr 16, 2012
Winnipeg
9,090
like
06/07/12 08:54 AM (13 years ago)
There might be a way to do that but I'd have to defer to someone who has more knowledge on the subject than I. But also note that in the plugin details for the 'allow GPS' plugin, it has this to say; "IT IS VERY IMPORTANT TO INCLUDE THIS SCREEN IF THE APP USES LOCATION INFORMATION. ALWAYS HONOR END-USER REQUESTS TO NOT REPORT THEIR LOCATION."
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
06/07/12 08:58 AM (13 years ago)
I agree with Ag-Chieve, your device location setting is probably turned off! Check this first. By the way... As far as I know, the 'Allow GPS' screen doesn't turn on and off the GPS of your device, it just authorize or block the sending of reports about the user's location. Anyway, the BT gang recommends to always include such a screen! And so do I, as the end user will feel more comfortable with your app! It gives more trust... As far as I've experimented with the apps I created with BT, the first time a user launches an app, he/she's ALWAYS asked for an authorization to use the device's location, don't worry about that!
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/07/12 09:00 AM (13 years ago)
Thanks. I just posted a new topic, asking the best way to use the Allo GPS, as recommended. Should it be included in the main page? What would you recommend?
 
Ag-Chieve
Lost but trying
Profile
Posts: 124
Reg: Apr 16, 2012
Winnipeg
9,090
like
06/07/12 09:05 AM (13 years ago)
My allow GPS screen is on the main page, which is a simple menu screen, at the bottom right below the Locate us screen, which is the map screen. I thought it would be a good idea to both keep it at the bottom, as it's the least important screen, and keep it close to the map screen, as that's the only reason it's even part of the app. I'm not sure if this is possible, but perhaps you could make a right button in the nav bar on your map screen and have it link to the allow GPS screen if you didn't want to have it on your main page. Come to think of it ... I should give that a try.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
06/07/12 09:05 AM (13 years ago)
Already replied in your other topic...
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/07/12 01:36 PM (13 years ago)
Thank you.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.