{"id":2813,"date":"2021-02-15T10:00:00","date_gmt":"2021-02-15T09:00:00","guid":{"rendered":"https:\/\/www.albertopasca.it\/whiletrue\/?p=2813"},"modified":"2023-06-26T15:47:48","modified_gmt":"2023-06-26T13:47:48","slug":"ios-fake-gps-position-how-to-use-and-prevent","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/","title":{"rendered":"iOS &#8211; Fake GPS position: how to use and prevent"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Very often a lots of iOS applications use your gps position to retrieve data or to lock \/ unlock contents positions based.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With Android you can use lots of apps called <strong>Fake GPS<\/strong> or similar that allow you to change your real gps position with a <em>mocked<\/em> one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Android development side this can be blocked checking via code the:<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>android.permission.ACCESS_MOCK_LOCATION<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On iOS instead there is no way to avoid this.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-green-cyan-color has-css-opacity has-vivid-green-cyan-background-color has-background\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Use mocked position on iOS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In order to change your real device GPS position using a fake one you need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.apple.com\/mac\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mac book<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/apps.apple.com\/it\/app\/xcode\/id497799835?mt=12\" target=\"_blank\" rel=\"noreferrer noopener\">Xcode<\/a><\/li>\n\n\n\n<li>A valid <a href=\"https:\/\/developer.apple.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">development certificate<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Let\u2019s fake! &#8211; basic<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>C<\/strong>reate a new empty project, build and run it on physical device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From <strong>XCode debugger<\/strong>, choose the GPS position from the list:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"626\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49-1024x626.png?resize=1024%2C626&#038;ssl=1\" alt=\"\" class=\"wp-image-2816\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49.png?resize=1024%2C626&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49.png?resize=300%2C183&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49.png?resize=768%2C469&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49.png?resize=1536%2C939&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.27.49.png?resize=2048%2C1252&amp;ssl=1 2048w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;re now flight to Johannesburg in South Africa!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DON&#8217;T CLOSE YOUR APP<\/strong>, put only in background and open the <strong>Maps app<\/strong>: you see the new position instead of your real one:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27-473x1024.png?resize=209%2C452&#038;ssl=1\" alt=\"\" class=\"wp-image-2817\" width=\"209\" height=\"452\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?resize=473%2C1024&amp;ssl=1 473w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?resize=139%2C300&amp;ssl=1 139w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?resize=768%2C1662&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?resize=710%2C1536&amp;ssl=1 710w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?resize=946%2C2048&amp;ssl=1 946w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Simulator-Screen-Shot-iPhone-12-Pro-2021-02-12-at-15.29.27.png?w=1170&amp;ssl=1 1170w\" sizes=\"auto, (max-width: 209px) 100vw, 209px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Instead of using Maps you can open <strong>Pokemon Go<\/strong> (<a href=\"https:\/\/www.albertopasca.it\/whiletrue\/pokemongo-catch-world-wide-pokemon-from-your-desk\/\" target=\"_blank\" rel=\"noreferrer noopener\">as already explained here<\/a>) and catch Pokemon around the world directly from your desk!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-green-cyan-color has-css-opacity has-vivid-green-cyan-background-color has-background\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Cool but, this location is static&#8230; I want to move around, I want to go to visit <a href=\"https:\/\/it.wikipedia.org\/wiki\/Lecce\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Lecce<\/strong><\/a>, how can I do it?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Let\u2019s fake! &#8211; advanced<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create your new custom <strong>GPX file<\/strong>: <a href=\"https:\/\/it.wikipedia.org\/wiki\/GPS_eXchange_Format\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/it.wikipedia.org\/wiki\/GPS_eXchange_Format<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From <strong>XCode -&gt; File -&gt; Add new<\/strong> and select <strong>GPX file<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The GPX file can contains static or dynamic GPS informations you want to use in your XCode. Adding this new file you see it directly in the combo-box described above. And of course you can select it to use in your device!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance you can draw your track using this site (that I like a lot) <a href=\"https:\/\/www.alltrails.com\/explore\/map\/alberto-bg\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.alltrails.com\/explore\/map\/alberto-bg<\/a>: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"909\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.51.12-1024x909.png?resize=1024%2C909&#038;ssl=1\" alt=\"\" class=\"wp-image-2827\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.51.12.png?resize=1024%2C909&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.51.12.png?resize=300%2C266&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.51.12.png?resize=768%2C682&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.51.12.png?w=1138&amp;ssl=1 1138w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And export as GPX file and next add to your XCode project.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.55.03-876x1024.png?resize=331%2C386&#038;ssl=1\" alt=\"\" class=\"wp-image-2829\" width=\"331\" height=\"386\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.55.03.png?resize=876%2C1024&amp;ssl=1 876w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.55.03.png?resize=257%2C300&amp;ssl=1 257w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.55.03.png?resize=768%2C898&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-15.55.03.png?w=910&amp;ssl=1 910w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>GPX<\/strong> file can also be static, this an example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"xml\" class=\"language-xml\">&lt;?xml version=\"1.0\"?&gt;\n&lt;gpx version=\"1.1\" creator=\"Xcode\"&gt;\n    &lt;wpt lat=\"45.698517684337375\" lon=\"9.677476069724928\"&gt;\n        &lt;name&gt;Bergamo&lt;\/name&gt;\n        &lt;time&gt;2014-09-24T14:55:37Z&lt;\/time&gt;\n    &lt;\/wpt&gt;\n&lt;\/gpx&gt;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-green-cyan-color has-css-opacity has-vivid-green-cyan-background-color has-background\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Avoid use of mocked GPX in your application<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve prepared for this post, a <strong>simple SDK<\/strong>, available for edits on Github called <a href=\"https:\/\/github.com\/elpsk\/GPSSecurity\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>GPSSecurity<\/strong><\/a> that can helps you a little bit to check the validity of the user position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can add in your project using <strong>Cocoapod<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pod 'GPSSecurity', git: 'https:\/\/github.com\/elpsk\/GPSSecurity.git'<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and use in your project:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift\">import GPSSecurity\n\n[..]\n{\n  GPSValidator().positionValid(currentPosition: yourDeviceLocation) { validLocation in\n      print(\"Valid position?: \\(validLocation)\")\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How it works?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every time the SDK receive a new location, save it in the device keychain (<em>if needed<\/em>) and compare to the newest one.<br>The locally saved data contains also the timestamp of the gps position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the travel-time distance calculated using&nbsp;<code>MKDirections<\/code> (from <code>Mapkit<\/code>), from the stored position and the newest position is greater that the latest stored timestamp return basically a&nbsp;<code>FALSE<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You shouldn&#8217;t be able to reach <a href=\"https:\/\/www.google.com\/maps\/dir\/Lecce,+73100+LE\/Palermo,+Provincia+di+Palermo\/@39.2917622,14.6452833,8z\/data=!3m1!4b1!4m14!4m13!1m5!1m1!1s0x13442ee42f2d1109:0x9b5b5a4c6ab377f0!2m2!1d18.1750161!2d40.3515155!1m5!1m1!1s0x1319e8c9814ed099:0xa0b042c233bd880!2m2!1d13.3614868!2d38.11569!3e0\" target=\"_blank\" rel=\"noreferrer noopener\">Lecce from Palermo<\/a> <strong>in 3 minutes<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Location: 45.47 - 9.19 &lt;--- new location\nTRAVEL TIME  : 0h : 56 mins &lt;--- travel time\nLATEST UPDATE: 0h : 46 mins &lt;--- last updated local position\nCan reach this location in a valid time?: false<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">You can read more on github: <strong><a href=\"https:\/\/github.com\/elpsk\/GPSSecurity\">https:\/\/github.com\/elpsk\/GPSSecurity<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to fix the code and open pull requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy mocking!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/elpsk\/GPSSecurity#example\"><\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Very often a lots of iOS applications use your gps position to retrieve data or to lock \/ unlock contents positions based. With Android you can use lots of apps called Fake GPS or similar that allow you to change your real gps position with a mocked one. On Android development side this can be <a class=\"read-more\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":2841,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"#iOS - Fake #GPS position: how to use and hot to prevent","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[217,789,763,12,11,2,3,30],"tags":[987,990,141,950,986,984,123,616,992,988,994,989,985,949,983,991,140],"class_list":["post-2813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-hack","category-ios","category-macos","category-mobile","category-objectivec","category-swift","category-xcode","tag-access_mock_location","tag-alltrails","tag-android","tag-cocoapod","tag-fake","tag-fake-gps-position-ios","tag-github","tag-gps","tag-gpssecurity","tag-gpx","tag-mapkit","tag-maps","tag-mock","tag-pod","tag-pokemon-go","tag-wpt","tag-xcode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"Very often a lots of iOS applications use your gps position to retrieve data or to lock \/ unlock contents positions based. With Android you can use lots of apps called Fake GPS or similar that allow you to change your real gps position with a mocked one. On Android development side this can be Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-15T09:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-26T13:47:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32-1024x503.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"503\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"iOS &#8211; Fake GPS position: how to use and prevent\",\"datePublished\":\"2021-02-15T09:00:00+00:00\",\"dateModified\":\"2023-06-26T13:47:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/\"},\"wordCount\":485,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1\",\"keywords\":[\"ACCESS_MOCK_LOCATION\",\"alltrails\",\"android\",\"cocoapod\",\"fake\",\"fake gps position ios\",\"github\",\"gps\",\"GPSSecurity\",\"gpx\",\"MapKit\",\"maps\",\"mock\",\"pod\",\"pokemon go\",\"wpt\",\"xcode\"],\"articleSection\":[\"development\",\"hack\",\"ios\",\"macOS\",\"mobile\",\"objectivec\",\"swift\",\"xcode\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/\",\"name\":\"iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1\",\"datePublished\":\"2021-02-15T09:00:00+00:00\",\"dateModified\":\"2023-06-26T13:47:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1\",\"width\":3272,\"height\":1606,\"caption\":\"ios fake gps position\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/ios-fake-gps-position-how-to-use-and-prevent\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iOS &#8211; Fake GPS position: how to use and prevent\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/","og_locale":"en_US","og_type":"article","og_title":"iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}","og_description":"Very often a lots of iOS applications use your gps position to retrieve data or to lock \/ unlock contents positions based. With Android you can use lots of apps called Fake GPS or similar that allow you to change your real gps position with a mocked one. On Android development side this can be Read More","og_url":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2021-02-15T09:00:00+00:00","article_modified_time":"2023-06-26T13:47:48+00:00","og_image":[{"width":1024,"height":503,"url":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32-1024x503.png","type":"image\/png"}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#article","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"iOS &#8211; Fake GPS position: how to use and prevent","datePublished":"2021-02-15T09:00:00+00:00","dateModified":"2023-06-26T13:47:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/"},"wordCount":485,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1","keywords":["ACCESS_MOCK_LOCATION","alltrails","android","cocoapod","fake","fake gps position ios","github","gps","GPSSecurity","gpx","MapKit","maps","mock","pod","pokemon go","wpt","xcode"],"articleSection":["development","hack","ios","macOS","mobile","objectivec","swift","xcode"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/","url":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/","name":"iOS - Fake GPS position: how to use and prevent - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#primaryimage"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1","datePublished":"2021-02-15T09:00:00+00:00","dateModified":"2023-06-26T13:47:48+00:00","breadcrumb":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#primaryimage","url":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1","width":3272,"height":1606,"caption":"ios fake gps position"},{"@type":"BreadcrumbList","@id":"https:\/\/www.albertopasca.it\/whiletrue\/ios-fake-gps-position-how-to-use-and-prevent\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"iOS &#8211; Fake GPS position: how to use and prevent"}]},{"@type":"WebSite","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website","url":"https:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/02\/Schermata-2021-02-12-alle-16.16.32.png?fit=3272%2C1606&ssl=1","_links":{"self":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/2813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=2813"}],"version-history":[{"count":29,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/2813\/revisions"}],"predecessor-version":[{"id":3368,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/2813\/revisions\/3368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media\/2841"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=2813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=2813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=2813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}