-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App shows loading... #3
Comments
Do you know where the problem is? NDE KONG A. |
Sorry, I just built and run the application on Android device. It worked well. I have no issue with "Loading...". The application showed the main activity. But, the problem occurs when you try to add data. The data can't be submitted. I think this application has a problem with SQLite. |
I emulated on firefox and chrome using ionic serve. |
Please, don't emulate this application on the web browser! The application will show "Loading..." because this application uses SQLite rather than WebSQL. So, you can't go to the main activity. Use real device instead! |
Do you still have a problem when running this application on Android device? |
Yes Please. NDE KONG A. |
can i develop this for MySQL? |
Hi @yudhaDitya, could you send me an e-mail instead regarding to your question? |
Of course |
I have tested the app again on Android 5.1 and it still shows "Loading..." |
I figured it out. I commented lines 17 through 19 on the controllers.js file and then the app works just fine now. |
I am glad that you have figured out the problem. By the way, can you add a new data into MIM? Add a new product, for example. I am afraid, it will lead to another problem. |
I Have been trying to add data for weeks now, but to no avail. I am still working on it. Any ideas? |
It happened because you commented the line that loads database file (from line 17 to 19). All data are stored in there. But, if you uncomment those lines, the application will stuck on "Loading..." screen. I still have no idea why this happens. Currently, I don't have time to fix that problem. Thank you for reporting this issue. |
Even after i uncomment the code on the controllers.js on line 17, i then add kill the loading by adding " duration: 3000". the app still does not accept data. |
The issue has been fixed. The app now accepts data. The problem was bootstrapping. If you manually bootstrapp the app by removing the ng-app from the body tag of the index.html file, give the body an id=thestart and then adding the code below into the body tag, the app works fine. |
I have to review this solution first. If you want to send a pull request using this patch, it's OK. Thank you. |
Faced this problem when i initially downloaded the project, the solution is to replace line 22 and line 27 with: db = window.sqlitePlugin.openDatabase({name: 'MIM.db', iosDatabaseLocation:'default'}); on controller.js. This is because Database location or ios Database Location setting is now mandatory in openDatabase call. |
When i build and run the application on android, its says loading...
The text was updated successfully, but these errors were encountered: