umama fakher
Posts: 0
Joined: Fri May 22, 2015 4:26 pm

Is it possible to work on two maps, in same app, on different page? One Map is not Loading correctly .Please Help!

Geolocation working when GPS is enabled on android device and not working when it is disabled. Is there a way to prompt user to enable their GPS location if it is disabled. This problem is only on Android and in iOS it is working perfect that is if GPS is off it prompt user to turn it on/off. It will be great to hear from Appery team soon :) !!

umama fakher
Posts: 0
Joined: Fri May 22, 2015 4:26 pm

Is it possible to work on two maps, in same app, on different page? One Map is not Loading correctly .Please Help!

pre
final LocationManager manager = (LocationManager)context.getSystemService (Context.LOCATION_SERVICE );

if ( !manager.isProviderEnabled( LocationManager.GPS_PROVIDER ) )
Toast.makeText(context, "GPS is disabled!", Toast.LENGTH_LONG).show();
else
Toast.makeText(context, "GPS is enabled!", Toast.LENGTH_LONG).show();
/pre

Can you explain where to include these lines of code in my project and it is a java code , is this code needs to be in javascript?

Please help in modifying.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Is it possible to work on two maps, in same app, on different page? One Map is not Loading correctly .Please Help!

Hi Umama -

In Appery.io builder you can work only with JavaScript code any other code is falls outside the scope of our support.

It is really hard to say without knowing the context where you can use this part of a code.

Return to “Issues”