-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Cannot read property 'uploadservice' of undefined #11
Comments
Can you add the plugin using Please write back if cleaning |
Which platforms folder? As in node_modules/nativescript-background-http/platforms or the platforms directory at the root of my project? |
The one at the root of your project. |
No luck unfortunately, I'm still receiving the same error message |
I can not reproduce the problem. Can you share the versions of the NativeScript framework you are using |
My CLI version is 1.6.2 and the versions in my
I am testing on two physical devices; Samsung Galaxy S5 and iPad Air. |
iPad Air shouldn't generate a |
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. |
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. Thank you |
same problem here. I tried installing with npm and tns plugin add but I still get the same error. |
Same error here. Running in Genymotion; Android 7.0 |
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 |
I running into the same problem. Testing on Genymotion, Android 6.0 and on Nexus 6P with Android 7.0.
|
+1 |
Try 2.4.0, aar has been replaced with include.gradle |
When updating to the latest version of this plugin (2.5.0), I get the same error message on Android. I am using tns-core-modules 2.5.0. |
I am attempting to use this plugin within my app, however I receive an error upon navigating to the page where the plugin is required. The error I receive is
Cannot read property 'uploadservice' of undefined
which relates to line 8 of background-http.js.The text was updated successfully, but these errors were encountered: