Location Spoofing Detection [Android only]

Location spoofing is when an attacker (or malicious app) falsifies the device’s reported location or the location signals it trusts (e.g., GNSS/GPS, Wi‑Fi positioning, cellular location, or IP‑based geolocation), causing the OS and apps to receive incorrect location data.

Location spoofing in mobile apps is commonly used to bypass geofences and region locks, fake presence (e.g., on dating apps or games), create alibis (e.g., on social or parental control apps), or commit location‑based fraud (offers, check‑ins).

Below are code snippets demonstrating debugger detection across various platforms:

// Android location spoofing check
override fun onLocationSpoofingDetected() {
    TODO("Not yet implemented")
}

// Flutter location spoofing detection
onLocationSpoofing: () => print("Multi instance detected")

// Cordova location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}

// React Native location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}

// Capacitor location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}

Last updated