Get Data from GPS phone real Time and get static image map with marker

Hello everyOne,
I am developing an AR App, which when user go to latitude and longitude an event happens; Lat and Long get realtime from GPS of phone and these data send to MapBox web API in order to get static 2d image map. I user ARCore SDK for Unity 2020.3.0 and Visualization of AP point cloud and plane detection do realtime also.
I use methodinvoking(“updateGPSData”,0,0.5f) for get realtime data of gps of phone. inside UpdateGPSData method of get static image of map called. this method is in another class. my question is after sometimes, 5 min, application freezed and application crashed. when I deactivate script of get static image and just get realtime data of GPS, it works but both of them at same time make app crashed. Method of get static image of map is actually IEumerator and I call startCoroutine. what makes this happen? I must do Multithread programming or something else?

Thanks in advance

You may have better luck asking over on the general Unity forum. AR Foundation doesn’t support GPS.