Git Product home page Git Product logo

Comments (8)

EddyVerbruggen avatar EddyVerbruggen commented on May 24, 2024

Thanks for sharing that repo, very helpful!

Looks like the convenience methods (success, warning, etc) are broken on Android. This works though:

  feedback2.show({
    title: "Awesome",
    message: "That was great!",
    duration: 2000
  });

I'll investigate this further today.

from nativescript-feedback.

EddyVerbruggen avatar EddyVerbruggen commented on May 24, 2024

Aha, it has to do with the icons not being found when a type is set (which is implicit for the success (etc) functions. And that's because the resource folder may be in a different location than what the plugin expects it to be.

from nativescript-feedback.

EddyVerbruggen avatar EddyVerbruggen commented on May 24, 2024

Please update to 1.3.3 and remove the platforms folder, then run tns run android and it should work again.

from nativescript-feedback.

bradmartin avatar bradmartin commented on May 24, 2024

@EddyVerbruggen was this throwing Error: Uncaught (in promise): Error: android.content.res.Resources$NotFoundException: Resource ID #0x0 android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:216)

I'm seeing this on a Samsung device in the wild on a production app, sentry log here.

I'm currently looking at when the 1.0.00 release was done which looks to be December 11th 2018. And we had ^1.3.1 for the dep.

from nativescript-feedback.

bradmartin avatar bradmartin commented on May 24, 2024

Looks like npm view reports 1.3.3 published on Dec. 10, 2018. So I would have pulled in 1.3.3 on the 11th when the build was processed.

The sentry log stack trace reports back to a call to warning on feedback instance so I'll see what I can find out.

from nativescript-feedback.

EddyVerbruggen avatar EddyVerbruggen commented on May 24, 2024

Unless package-lock.json or some other local cache said otherwise. Reason number 45347 why I hate using ^ (and even ~ in dependencies of production apps).

Can you perhaps decompile the app to make sure?

from nativescript-feedback.

bradmartin avatar bradmartin commented on May 24, 2024

I've went thru a few builds and all the 1.3.x versions to try and find anything.

I also avoid not pinning the version, this and one of my plugins were the only ones with ^ 🤦‍♂️

At any rate, this seems to be specific to this Samsung device. It works fine on my emulators and Pixel2. So I'm now looking to see if I can find anything about this device.

from nativescript-feedback.

bradmartin avatar bradmartin commented on May 24, 2024

No worries though, for now I'm just going to use my own icon for this .warning usage and move on. Since only the Samsung device throws it, there is no telling what's happening 😄

Thanks tho 👍

from nativescript-feedback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.