Skip to content

secretmoo35/cordova-plugin-check-fake-location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-check-fake-location

This plugin is used to detect fake location for Android.

Test on Android 5+

Use

declare var cordova: any;


checkFakeLocation(){

    cordova.plugins.DetectFakeLocationPlugin.checkAllowMockLacation({}, (res: any) => {
        // alert(JSON.stringify(res));
        if (res.status) {
            alert('Fake GPS');
            setTimeout(() => {
            this.checkFakeLocation();
            }, 3000);
        }
    }, (err: any) => {
        // alert('Error : ' + err)
        console.log(err);
    });

}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published