Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

I have created the 'shell' or UI of my application.

I have NOT added any db services as of yet.

I want it to work exclusively offline and self contained to the mobile device it gets installed on.

Can I just create and map to Generic Rest Services to make that happen?

Do I need a Generic Rest Service for each; Create, List, Delete?

If so, I do not have a URL to put in place and not sure what to direct it to.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

Currently, when I turn off wifi to my mobile device, I can see data from local storage on my UI list from one table only. But, my database has two tables.
Also, I can neither add nor delete (on the ONE table) from the UI unless I reconnect to the internet.
I think I can configure the other table to show via local storage. I do not know if I can make them ADD data from the UI form, or DELETE from the UI. Both of those functions work if I am online. Is it a permissions issue or is my local storage somehow set to read only?
Let me know if you can assist and I will share the app with you.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

What if I don't want to use online database?

Hello!

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, post it's name and steps to reprodice.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

  1. Install the apk to an android phone or tablet.

    1. Open the application.

    2. Notice after accepting the disclaimer how quickly the splash screen goes by.

    3. It will take you directly to the Med List. Allow it to load.

    4. Click on the Doctors button to nav to the Doctors List. It should open as well with three entries.

    5. Add a Doctor from the button at the top. Name field is fine, and click 'Save' button below. Doctor should now be in the list.

    6. Delete the newly added Doctor from the list using the 'Delete Doctor' button and select the newly added Doctor from the delete list in the panel. Doctor should now be deleted.

    7. Return to the Meds List page and repeat the process to create a med and delete it from the list as you did with the Doctors in steps 5 through 7. Both should work fine while connected to the internet.

    8. Now, hit your 'Home' button and close the application.
      10, Disable wifi and all other internet connectivity from your mobile device.

    9. Reopen the application while there is no internet connectivity and try the above steps 2 through 8 again.

      You should see the Med List has been retained on the device, however, you cannot add to it, nor delete from it.
      The Doctors list will not work yet as I have not tried to replicate the code on that page as I have with the Meds List page.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

What if I don't want to use online database?

Hello Dave,

I was not able pass step #5. Entry is not added.
Did you change anything?

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

Step 5 takes you to the Doctors list. I just added a doctor named 'test' to the list and it saved just fine. The middle button with '+ Doctor' is to add Doctors to the list. Sorry if I was not clear.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

This topic is not completed.. please reopen. App does accept new doctors added. Please try again. Then complete offline to see what is actually not working.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

What if I don't want to use online database?

Dave, it's open topic, working on it. We need some time to double check it on device. We will keep updating.

What OS version do you use to test?

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

What if I don't want to use online database?

Using both tablet and cell phone. Tablet is Google Nexus 7 with 4.4.2 on it and the cellphone is an HTC Desire with 2.3.5 and I get the same result with both.

Return to “Issues”