문제

I'm new with phonegap and I want to switch user to location settings in android to enable GPS if it is disabled, Is there a way to do that or a way to enable GPS directly ?? thanks in advance.

도움이 되었습니까?

해결책

finally i found the answer: first:used gps detector plugin to check gps statues then:used webintent plugin to open location settings useful links: use plugin: Starting activity from phonegap plugin-webIntent

how to write java code to start location settings: How to redirect towards GPS setting window in android or ios using phonegap for on or off a GPS

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top