Ive tried that code and it works on the mobile app.
That code page shows that it can grab the position from your phone in the mobile app. The Prompt and Refresh code page also works on mobile app, which demonstrates you can edit and enter data in qb field. I truly believe it is possible and just takes someone knowledgeable to put all the pieces together. I have approval to hire someone to do this, I just need to find a programmer familiar with QB code pages.
------------------------------
Mike Tamoush
------------------------------
Original Message:
Sent: 05-12-2023 13:12
From: Simon H
Subject: Looking to hire someone good with code pages for very small, quick project
I would assume it is related to how the code page retrieves the lat and long.
It is probably a browser API function not available in the mobile app.
Here's a a simple code page you can create to test just the geolocation API
Copied from here
<!DOCTYPE html><html><body><p>Click the button to get your coordinates.</p><button onclick="getLocation()">Try It</button><p id="demo"></p><script>var x = document.getElementById("demo");function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); } else { x.innerHTML = "Geolocation is not supported by this browser."; }}function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude;}function showError(error) { switch(error.code) { case error.PERMISSION_DENIED: x.innerHTML = "User denied the request for Geolocation." break; case error.POSITION_UNAVAILABLE: x.innerHTML = "Location information is unavailable." break; case error.TIMEOUT: x.innerHTML = "The request to get user location timed out." break; case error.UNKNOWN_ERROR: x.innerHTML = "An unknown error occurred." break; }}</script></body></html>
------------------------------
Simon H
Original Message:
Sent: 05-10-2023 14:54
From: Mike Tamoush
Subject: Looking to hire someone good with code pages for very small, quick project
Anyone good with code pages?
Currently there is a promptandrefresh code page which prompts a user for input (on a non QB page) and then uses that input to update a QB field. This code page works on both desktop and mobile app.
There is also a code page to get the longitude and latitude of the users device, and put those into QB fields. This only works on desktop, or mobile browser but NOT in mobile app. I am trying quite unsuccessfully to see what commands the promptandrefresh uses that allows it to function on mobile app, that the getlonglat is failing with. I do not code and am getting nowhere.
I need someone to take the current code and modify to work on mobile app, or perhaps build from scratch? Please contact me mtamoush@bbch-llc.com if you think this is a project you could do.
Thanks!
------------------------------
Mike Tamoush
------------------------------