nativescript-community / https

Secure HTTP client with SSL pinning for Nativescript - iOS/Android
https://nativescript-community.github.io/https/
Other
51 stars 42 forks source link

TypeError: this.response.toBitmapAsync is not a function #88

Closed RGBvision closed 10 months ago

RGBvision commented 10 months ago

response.content.toImage() fails with TypeError: this.response.toBitmapAsync is not a function on Android (33).

Https.request({
        url: url,
        method: "GET",
    }).then(
        (response) => {
            response.content.toImage().then(r => {...}).catch(e => console.log(e))
...
"dependencies": {
    "@nativescript-community/gps": "3.1.10",
    "@nativescript-community/https": "4.1.1",
    "@nativescript-community/ui-barcodeview": "3.6.1",
    "@nativescript-community/ui-image": "4.3.11",
    "@nativescript-community/ui-mapbox": "6.2.19",
    "@nativescript-community/ui-pager": "14.1.6",
    "@nativescript-community/ui-pulltorefresh": "2.5.3",
    "@nativescript-community/ui-webview": "1.4.9",
    "@nativescript/appsync": "3.0.1",
    "@nativescript/camera": "5.0.15",
    "@nativescript/core": "8.5.9",
    "@nativescript/firebase-core": "2.5.2",
    "@nativescript/firebase-messaging": "2.5.2",
    "@nativescript/imagepicker": "2.0.2",
    "@nativescript/localize": "5.2.0",
    "@nativescript/pdf": "1.0.1",
    "@nativescript/theme": "3.0.2",
    "@nstudio/nativescript-floatingactionbutton": "3.0.4",
    "@triniwiz/nativescript-image-zoom": "4.2.0",
    "@triniwiz/nativescript-toasty": "4.1.3",
    "libphonenumber-js": "1.10.41",
    "moment": "2.29.4",
    "nativescript-dna-deviceinfo": "3.7.3",
    "nativescript-imagecropper": "4.0.3",
    "nativescript-intl": "4.0.2",
    "nativescript-permissions": "1.3.12",
    "nativescript-ripple": "4.0.3",
    "nativescript-windowed-modal": "7.0.0",
    "url": "0.11.1"
  },
  "devDependencies": {
    "@nativescript/android": "8.5.1",
    "@nativescript/ios": "8.5.2",
    "@nativescript/types": "8.5.0",
    "@nativescript/webpack": "5.0.17",
    "sass": "1.65.1",
    "util": "0.12.5"
  },
RGBvision commented 10 months ago

Fixed in v4.1.2