-
-
Notifications
You must be signed in to change notification settings - Fork 177
Level down not working in IOS/Android #731
Comments
We don't have prebuilds for iOS (#626), you'll have to compile it yourself. As for android, which version of node are you using? Note also that our android prebuilds are built against Node.js core rather than the |
@vweevers .Thank you. |
Hi vweevers, Can I have any way to use it against nodejs-mobile fork in both platforms? |
You'll have to compile leveldown from source for both android and ios in that case.
|
I'm sorry that I'm new to this. Do I need to do this in IOS/Android device ? |
I don't know how nodejs-mobile works, so I can't be of further assistance. |
Ok. Got it. This need to be done where nodejs-mobile project relies. Is it right? eg: I have a directory /data/app.xxx.mobileapp/files/nodeprojectBuild/api/ in which nodeprojectBuild/api is the one where I put the node_modules. So its required to install from here(nodeprojectBuild/api ). Right? |
Okay. Could you please spot a solution other than nodejs-mobile to work it out.? Thank you for your help. |
Okay. May I know how to do this for IOS? |
I have no idea. I believe the manyverse app pulled it off, maybe look there for inspiration. |
@vweevers Would you consider supporting nodejs-mobile? Node.js core sounds great in theory, but it's been over a year and afaict it's still considered experimental with no easy way to embed into native Android or Cordova apps. I think it makes more sense to support something that works today than something that may (or may not) work eventually. |
Node.js compiles successfully on Android, as does leveldown. If not, the Node.js project is open to improving Android support. They typically just need someone to champion it. Supporting forks of Node.js hinders that. |
Hi all,
I am trying to establish offline db using pouch db in mobile.
I have an application which uses node express and pouch db. Its running well in my pc. I was able to take a build using webpack and tried in android/ios, which is not working.
IOS Error:
Error: No native build was found for platform=ios arch=arm64 runtime=node abi=57 uv=1 armv=8 libc=glibc at load.path (/private/var/mobile/Containers/Data/Application/74907299-A8BC-40E0-98CC-A5D65DDA491C/Documents/nodejs-project/api/node_modules/node-gyp-build/index.js:56:3)
Android Error:
Error: dlopen failed: cannot locate symbol "napi_get_global" referenced by "/data/data/digital.lamp.mindlamp/files/lampBuild/api/node_modules/leveldown/prebuilds/android-arm64/node.napi.armv8.node"...
The text was updated successfully, but these errors were encountered: