cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Working with offline capability, but get location

Hello guys, I am working on a app that I need to my users fill a form, they will not have connections sometimes, so I made the offline capability and it is working fine.

But I have an point here.

 

The main reason to do this app is a inspection of some equipments along the city.

But, when the manager of the responsible area told me that some users fill the form even without going to the equipment, he asked me If i could collect the position of the users when submit the form, I said yes (collection the lat & long on login), but the problem is:

 

Sometimes my users will not have the connection when submiting the form, so how can I collect the location?

1 ACCEPTED SOLUTION

Accepted Solutions
seadude
Memorable Member
Memorable Member

Hm. Does Location.Latitude require Connection.Connected? I haven't tested that.

You might try:

  • Textbox Control with Text Property set to Location.Latitude
  • Save and Publish App
  • Open app on mobile device
  • Verify Latitude is displayed
  • Turn Airplane Mode on
  • Wait a few and see if Latitude disappears
  • Close the app fully
  • Reopen the app (with Airplane Mode still on)
  • Is Latitude displayed?

View solution in original post

4 REPLIES 4
seadude
Memorable Member
Memorable Member

Hm. Does Location.Latitude require Connection.Connected? I haven't tested that.

You might try:

  • Textbox Control with Text Property set to Location.Latitude
  • Save and Publish App
  • Open app on mobile device
  • Verify Latitude is displayed
  • Turn Airplane Mode on
  • Wait a few and see if Latitude disappears
  • Close the app fully
  • Reopen the app (with Airplane Mode still on)
  • Is Latitude displayed?
Anonymous
Not applicable

Cool! The Latitude and Longitude still appers even the app is opened offline mode, how can this be possible?

 

I will give a try now to collect this info with the form.

 

Thank you so much!

My please @Anonymous. If you found this useful, please consider marking as solution so others can find the info as well.

Take care!

Anonymous
Not applicable

hey @seadude , thank you so much!

 

 

but let me ask you another question, how can I provide the offline capability, using a sharepoint list, so the user could also attatch a file?

 

In the offline capability we have to collect the records, how can we collect the attatch and save it later?

is it possible to do?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,248)