pokemongo-webspoof icon indicating copy to clipboard operation
pokemongo-webspoof copied to clipboard

modify the starting position of the app

Open tselincoln opened this issue 8 years ago • 6 comments

Hi your project is really amazing! Since I am just a starter in making application run on mac platform, I am trying to modify the code of your project by changing the package content in your app but seems like it doesn't work. I am trying to fix the starting position of the map to my real location instead of using ip location. How may I do that? Thank you very much!

tselincoln avatar Aug 22 '16 16:08 tselincoln

Oh I fixed it in the src/view/map/index.js thx a lot!

tselincoln avatar Aug 24 '16 12:08 tselincoln

Hi. I am very new to programming. Can you show me what to change in index.js? Thanks a lot!

bubblelo avatar Aug 28 '16 20:08 bubblelo

// geolocation API might be down, use http://ipinfo.io // source: http://stackoverflow.com/a/32338735 handleGeolocationFail = async (geolocationErr) => { Alert.warning(<strong>Error getting your geolocation, using home location</strong> <div class='stack'>${geolocationErr.message}</div>, { timeout: 3000 })

try {
  // const { data: { loc } } = await axios({ url: 'http://ipinfo.io/' })
  // const [ latitude, longitude ] = loc.split(',').map(coord => parseFloat(coord))
  const latitude = xx.xxx(the latitude you want)
  const longitude =xxx.xxx(the longitude you want)
  this.handleGeolocationSuccess({ coords: { latitude, longitude } })

//hope it helps!

tselincoln avatar Aug 29 '16 03:08 tselincoln

I will give it a try. Thanks a lot!!

bubblelo avatar Aug 29 '16 04:08 bubblelo

Did it work? @bubblelo

CreatingMazes avatar Sep 04 '16 16:09 CreatingMazes

Hi, it did not work. I keep having Error autoclick Xcode - Code 2 (-1728) issue. Tried hint at #5:comment and it still does not work. :(

bubblelo avatar Sep 07 '16 04:09 bubblelo