Page 1 of 3

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

Posted: Wed Jun 04, 2014 6:37 pm
by Dave Troxel

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.


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

Posted: Wed Jun 04, 2014 7:30 pm
by Alena Prykhodko

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

Posted: Wed Jun 04, 2014 8:44 pm
by Dave Troxel

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.


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

Posted: Thu Jun 05, 2014 1:35 pm
by Maryna Brodina

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.


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

Posted: Thu Jun 05, 2014 5:29 pm
by Dave Troxel
  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.


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

Posted: Thu Jun 05, 2014 8:41 pm
by Alena Prykhodko

Hello Dave,

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


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

Posted: Thu Jun 05, 2014 10:06 pm
by Dave Troxel

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.


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

Posted: Fri Jun 06, 2014 1:29 am
by Dave Troxel

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.


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

Posted: Fri Jun 06, 2014 1:35 am
by Alena Prykhodko

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?


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

Posted: Fri Jun 06, 2014 1:44 am
by Dave Troxel

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.