pokemongo-webspoof
pokemongo-webspoof copied to clipboard
modify the starting position of the app
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!
Oh I fixed it in the src/view/map/index.js thx a lot!
Hi. I am very new to programming. Can you show me what to change in index.js? Thanks a lot!
// 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!
I will give it a try. Thanks a lot!!
Did it work? @bubblelo
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. :(