-
-
Notifications
You must be signed in to change notification settings - Fork 53
copyDatabase in 2.0.0 #21
Comments
Are you having issues in iOS or android? |
Android and iOS |
Hmm, I tested 2.01 on both iOS and Android with my sqlite example demo (which copies a database) and it worked fine for me. I even reset the iOS simulator so that no database files existed anymore. Can you give me a sample app that doesn't work? |
|
Well based on your error, I would venture you are potentially using an older version of sqlite actually. I would try:
You also have a couple issues in your code; your code should be:
|
I found the problem. While developing a project and if a folder have a "space" there is a mistake which I described above. Thank you for your response. |
I'm also having a similar
My code is super simple, just
@NathanaelA - Any thoughts? |
Yes, actually I do. Can you type "pod --version" and tell me which version you are using? |
@NathanaelA - 'pov --version' shows |
Interesting same issue, I had this same issue occur with a friend of mine this week. The solution was to downgrade cocoapods to v0.39 and install xcproj. gem uninstall cocoapods gem install cocoapods -v 0.39.0 Then you need to reinstall the ios platform so do a: And you should be good to go... |
@NathanaelA - Thanks, but no luck with the suggestion above. |
@handlebarcreative Sorry I didn't see your response. Github didn't send me a email. Have you got this fixed? If not,
|
I'm having similar issues, but so far only on one device. I've tested on a Genymotion emulator where it works fine, a CAT S40 (Android 5.1 - API Level 22) where the application crashes whenever a connection is opened (I have made improvements and will test again when I have access to the device) and a Vodafone Smart Tab 3G running Android 4.4.2 (API Level 19) where the copying doesn't seem to work. Further details about the third device follows: The application runs and I have a few outputs in the various bits of code. When the existence is checked:
It returns true and I see
Which outputs:
In the emulator, just my two console logs show rather than the additional output above. Testing the connection with
The exact same build runs on the Genymotion Android 6.0.0 (API Level 23) emulator just fine. I am going to test another device a little later. My setup details: |
I'm also having an issue when calling Sqlite.copyDatabase.
The following error is thrown when calling the above function:
In my case I don't package the db file in the app folder before deploying, but I download the file to the app directory before calling copyDatabase. I verified that the file exists in the app directory by running:
|
@DewaldDeJager can you do a "adb logcat" to get the full log between the and
@jeffswitzer - Also as a diagnotistic test I would also add: |
Hi Nathanael, For the diagnostic console.log after the http.getFile, but before the Sqlite.copyDatabase I get: And here is the output from adb logcat:
|
@NathanaelA: Thanks, that's a pretty helpful command! Here are the important snippet parts of the log:
The I've just tried deleting that table (I don't use it as of yet) and now it's giving me the same error but on another table using
|
@jeffswitzer - Any chance you can provide me a sample app that behaves this way; Dewald has managed to fix his issue so your the only one still broken... |
Since there is no more activity on this since July; I assume you figured out your issue... |
Is there a size limit on sqlite file when you copy it from pc to device using sqlite.copyDatabase()? I am able to copy a 5MB file but unable to copy a 303MB file. Below is the code snippet: |
In 2.0.0 sqlite.copyDatabase(dbname); -> file not found, in 1.7.1 working
The text was updated successfully, but these errors were encountered: