Closed Whip closed 4 years ago
You need to test your app in release. You can run your app on your device using tns run ios --release ...
. You can then see what's happening
I've tried that and it works. It just stops working when I generate the aab file and upload it to Play Store. Will it help if I add you to the internal test team of my app?
No it won't really help. Look at your generated aab file and make sure the file is there, that it is in the right location ... Can't really help more for now. I am 99,999% this has nothing to do with the plugin.
Of course I know where the aab file is, I uploaded it to the play store. Have you tried creating a bundle file and publishing it? Does it work fine?
I am not asking you if you know where the aab file is. I am telling to make sure the image is inside the aab when you publish it. {N} running within aab is no different from apk. I have created aab and have never seen any issues with image. However i am not sure if those apps were using local image like you do
I'm sorry if I didn't make it clear but I'm not using local images. They are being loaded from the server.
On Mon, May 6, 2019 at 6:41 PM Martin Guillon notifications@github.com wrote:
I am not asking you if you know where the aab file is. I am telling to make sure the image is inside the aab when you publish it. {N} running within aab is no different from apk. I have created aab and have never seen any issues with image. However i am not sure if those apps were using local image like you do
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Akylas/nativescript-image/issues/9#issuecomment-489614742, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYO5RFRVXWWAWIGAN6SBK3PUAU75ANCNFSM4HKTBKYQ .
@VeeK727 your example shows local image loading so i thought... Without any log i can't really help more. Sorry
The src
attribute is dynamic and is loaded via the api. The placeholder image is local and it does load. Can you share your email or other contact so I can share my project with you privately?
@VeeK727 see my profile
this is my problem too. I tested with run and debug mode works fine but if make aab and upload to release then crash the app. Please help me what I doing this error. I have facebook pipeline error.
@mikloshumli what is the facebook pipeline error?
@mikloshumli @VeeK727 should be fixed in 2.1.4. Let me know
Same problem. In 2.1.4.
It works perfectly in testing but crashes with aab, and doesn't work with tns run android --release ...
.
I'm developing my app with Angular. I've tested my app with tns android run
and everything worked fine, the images loaded properly, I use both local and remote src for images and all loaded without problems, then I've built the aab with webpack, uglify and snapshot options enabled, that builds the project without problems (but throws some log output errors), but then I've created and published the Android version, download it from the app store and the app crashes. I have to say the app version I've downloaded from play store works fine at the beginning, with the initial pages, but when I navigate to a page that loads an image with NSImg then it crashes. I have test other features and pages of my app (release version) that doesn't load any images and all they work fine, so I'm almost certainly sure that when it crashes the error is related or caused by nativescript-image.
Searching a few hours ago I saw the update, 2.1.4, I've installing it and I've tested the app again and with tns run android --bundle --env.uglify --env.snapshot --release ...
but no errors logs are printed. Also when running this way the app doesn't crashes, it only doesn't show the images.
These are the versions I'm using:
{
"nativescript": {
"id": {
"android": "my.app"
},
"tns-ios": {
"version": "5.4.1"
},
"tns-android": {
"version": "5.4.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN
The facebook pipeline log errors when building aab:
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) (node:8185) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Skip com.facebook.animated.gif.GifFrame Error: java.lang.NullPointerException Skip com.facebook.animated.gif.GifImage Error: java.lang.NullPointerException Skip com.google.errorprone.annotations.IncompatibleModifiers Error: java.lang.NullPointerException Project successfully built.
@ceht Just wanted to mention, I also receive those deprecation warnings in my app and have been receiving them pretty much since I started using nativescript and before using nativescript-image.
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
(node:8185) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
I don't think these lines are related to facebook or nativescript-image. BTW why do you call it facebook pipeline error? I don't have any facebook related modules in my app and I don't see you having one either in the version list above.
Yeah, as you mention I've also been receiving almost all of them before using nativescript-image, I just copied all the warnings, but these are new ones:
Note: Recompile with -Xlint:deprecation for details. Skip com.facebook.animated.gif.GifFrame Skip com.facebook.animated.gif.GifImage Skip com.google.errorprone.annotations.IncompatibleModifiers I install some other plugins and update tns at the same time I install nativescript-image, so I'm not sure if all they are related to this plugin. I just called it 'facebook errors' becasuse I saw @mikloshumli called it that way, (because this Skip com.facebook.animated.gif.GifImage) but I think they're related to fresco, but not sure. And yeah, I don't use any facebook related module in my app.
Okay. I'm not sure what exactly is a facebook pipeline error but these just seems like image/graphic assets that the app is not able to load/compile, hence skipping.
Anyways the core issue definitely exists and needs to be addressed.
guys did you remove the platform folder after updating the package? it should work. i tried here with success.
Solved! 😁
I finally had been able to use it properly. In the previous test I also cleaned the platform, now I deleted also the node_modules, and hooks folders and do npm prune. I also updated webpack with this commands. The app now works fine with both, tns run android --bundle --env.uglify --env.snapshot --release ...
and the released version from the app store that I built with tns build android --bundle --env.uglify --env.snapshot --release ...
as a aab. Thank you @farfromrefug the plugin is awesome.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Load an image from URL. Publish your app with Android App Bundle (.aab file) and test if image loads.
Is there any code involved?
Works fine on local testing.