02/22/2012 § Leave a comment
The Service in PhoneGap doesn’t exist, or at least we couldn’t find plugin or possible solution. This made a huge trouble for making our app work even if it is inactive. No, reminders will be received. Having this trouble we tried to create plugin…. hmm.. it wasn’t so easy !!! We had a plenty small problems….. so the decision was to run it from very first activity before the PhoneGap, index.html is ran.
Although we have solved the problem of service we faced a new problem. PhoneGap and Android native SQLite database location were different. Additionally the database name given in code are different from that is created.
For example: our database created in PhoneGap is named “medicines” but the database name created as a file strangely named “0000000000000001” ?!!! yeah, it took long time before I get different names debugging the app !!!
Now, Service, Status bar notification, DB check are working except that after registering a new medicine data it doesn’t run notification before the service will be started again, that’s mean that application should be started again. This should be resolved !!!