Comments (16)
Can you add the plugin using tns plugin add nativescript-background-http
then delete the platforms
folder and re-run for android? The fails seem to happen very early at obtaining com.alexbbb.uploadservice
which seems the underlying native android implementation didn't make it to your app. Possible problems may be the plugin was added using npm install
rather than tns plugin add
, or the Android gradle may have mis-cached the metadata prior to adding this library.
Please write back if cleaning platforms
and tns plugin add
do not fix the problem so we can investigate it further.
from nativescript-background-http.
Which platforms folder? As in node_modules/nativescript-background-http/platforms or the platforms directory at the root of my project?
from nativescript-background-http.
The one at the root of your project.
from nativescript-background-http.
No luck unfortunately, I'm still receiving the same error message
from nativescript-background-http.
I can not reproduce the problem. Can you share the versions of the NativeScript framework you are using tns --version
and provide the versions in the pakcage.json
? Also do you test on device or emulator?
from nativescript-background-http.
My CLI version is 1.6.2 and the versions in my package.json
are as follows:
{
"nativescript": {
"id": "org.nativescript.nextraworkplan2",
"tns-ios": {
"version": "1.6.0"
},
"tns-android": {
"version": "1.6.2"
}
},
"dependencies": {
"nativescript-background-http": "0.0.3",
"nativescript-insomnia": "^1.1.0",
"nativescript-local-notifications": "^1.0.0",
"nativescript-sqlite": "^1.0.7",
"node-uuid": "^1.4.7",
"tns-core-modules": "^1.6.0"
}
}
I am testing on two physical devices; Samsung Galaxy S5 and iPad Air.
from nativescript-background-http.
iPad Air shouldn't generate a Cannot read property 'uploadservice' of undefined
message. What is the error on iOS? Also what is the android version installed on the Galaxy S5? I think we have S5 and will give it a try but there may be differences in the API level.
from nativescript-background-http.
I may be wrong about iOS. As I don't have access to that device today I won't be able to confirm.
The android version of the S5 is 5.0. Okay, thank you.
from nativescript-background-http.
I have the exact same error in my nativeScript app, I'm using a Nexus 5X on the emulator. I tried deleting the platforms folder and adding the plugin.
Any ideas on how can I fix that?
Thank you
from nativescript-background-http.
same problem here. I tried installing with npm and tns plugin add but I still get the same error.
from nativescript-background-http.
Same error here. Running in Genymotion; Android 7.0
from nativescript-background-http.
I ended up using the regular HTTP module that angular 2 provides and uploading the image as a Based64 string in a JSON object. I convert back that string on the server side. That works very good but obviously it's not working in the backgroud
from nativescript-background-http.
I running into the same problem. Testing on Genymotion, Android 6.0 and on Nexus 6P with Android 7.0.
"nativescript": {
"tns-android": {
"version": "2.2.0"
}
}
from nativescript-background-http.
+1
Same problem here, Using {N} 2.3.0, everything 2.3.0, real device, a galaxy S5, no ideas then?
from nativescript-background-http.
Try 2.4.0, aar has been replaced with include.gradle
from nativescript-background-http.
When updating to the latest version of this plugin (2.5.0), I get the same error message on Android.
Cannot read property 'uploadservice' of undefined
I am using tns-core-modules 2.5.0.
from nativescript-background-http.
Related Issues (20)
- Ability to set timeout HOT 1
- Does this plugin work to upload images to S3 buckets? HOT 1
- Access Server Response After Upload Completed
- Nativescript 7 Error HOT 11
- Weird task event data HOT 2
- [IOS] Failed to issue sandbox HOT 1
- Use with nativescript-ssl-pinning
- Class constructor Observable cannot be invoked without 'new'. HOT 5
- Error on upload image, no response and respondeCode -1 HOT 6
- An uncaught Exception occurred on "pool-3-thread-1" thread. HOT 1
- An uncaught error on background image uploading HOT 8
- An uncaught Exception : Context.startForegroundService() HOT 1
- Image error after upload
- 503 error after upgrade to NS 7
- Targeting Android Version 31 - crashes with java.lang.reflect.InvocationTargetException HOT 12
- [Android] Unable to handle error response coming from server
- IOS upload - Payload too large
- illegalArgumentException: defaultNotificationChannel HOT 2
- Nativescript multipartUpload fails/crashes in android 31 HOT 1
- Calling init function in main JS file gets error "One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-background-http.