app icon replaced blackberry - blackberry

Having some app icon with a Blackberry application built using Phonegap. When it installs I can see the application icon on the device. However after using the app a couple of times the icon is replaced by a generic folder icon.
I have the icon in a folder inside the root folder like - appfolder/images/icon.png.
When I go to setup to manage the applications the application icon is visible and shows up alongside the app. Any suggestions?
EDIT Happens when the app crashes due to low memory...

Check your config.xml and make sure you have the following line in it:
<icon src="images/icon.png" width="72" height="72" />
Point it to the image you'd like to be your icon. You can even specify the width and height depending on the resolution.

Related

Cordova iOS single size icon support

Does Cordova support single-size icons for iOS and if so, how to add it to config.xml?
I removed all the different icon sizes and just left
<icon height="1024" src="src/resources/images/Icons/ios/Icon-App-1024x1024.png" width="1024" />
But either way, I only get the default Cordova icon to display.
If I set it to single size in Xcode it works as expected.
Deployment is through Azure Pipeline, so I canĀ“t set it manually for release.

Two Different Launch Screens Shown for on iPhone X on Initialization

Just updated a Cordova app to contain an iPhone X LaunchImage and now in emulation, I'm seeing a properly sized launch image, which then a second later shows another that is too large and expands off the page.
I can't figure out why a launch image/splash screen is being displayed twice? In device initialization the navigator.splashscreen invokes hide and then never calls show so it isn't happening in the code. I placed launch images in Xcode and am using the cordova-plugin-splashscreen plugin. From the docs I assumed using Xcode or adding them to the config.xml were equivalent regarding splashscreen legacy assets, but now I'm confused. This only occurs on iPhone X and not on iPhone 5s, 6, 7, 8, or iPad.
Okay so the first launch image display is the one displayed by the system, and the second is the one displayed by the splashscreen plugin. The issue was solved by updating to cordova-plugin-splashscreen v5.0.2, which contains the bug fix.
In addition to #mtpultz solution above, I also found old splash screen files that needed to be deleted and a few new ones added.
For anyone sharing my above issue or having issues on an Ionic app related to this, after compiling I found OLD splash screen files in this folder: platforms/ios/myApp/Images/xcassets/LaunchImage.launchimage/ - also check the LaunchStoryboard.imageset folder and ensure all your images are correct. I found two files still showing the default cordova icon (Default-2436h.png and Default-Landscape-2436h.png) - I created two new image files of those Width/Height dimensions and copied over those two files. Everything is working now.
The problem is that you splascreen hidden early and iOS change to native splash screen, one posible solution is increase SplashScreenDelay in config.xml <preference name="SplashScreenDelay" value="100000"/> or manually hide splash screen when you app charge all components.

error in Application icon

I am getting an application icon error I have put all the icon images but I am still getting an error in it saying The app icon set named "App Icon" did not have any application content
What can be done to solve this issue.
You can Generate App iOS and Android Icons of all sizes with a single click.
Personally I use https://makeappicon.com/ website to generate app icons.
Then go to xcassets file and place the icons in proper places.

Phonegap application getting crash when entered in background mode

I'm working on application in ios using PhoneGap(1.9).Following are the issue's i'm facing with quiet few hours...
1)My application is getting crash when application enters in background mode.
2)Also,how to disable splash screen.I have deleted default.png image,but still it is showing splash screen with phonegap logo followed by white blank screen.
Thanks & regards.
I came across this question because I'm having the same problem with background mode.
However, regarding splash screen, I can tell you that you have to replace the specific file for the screen size. It generates images for all of the screen sizes and you have to replace them in the built folder, not just the original project folder (at least I seem to have to do this).
The built folder is at the path that should look like /MyProject/platforms/ios/www/res/screen/ios/[screen_specific_splash_screens]
Similarly I had to do the same for the icons:
/MyProject/platforms/ios/www/res/icon/ios/[screen_specific_icons]
Docs for these files (talks about which screen sizes):
http://docs.phonegap.com/en/4.0.0/config_ref_images.md.html

iOS : Icon occasionally fails to transfer to device

Does anyone know why this happens? My project uses a local network, so it doesn't make sense to test it on just one device, so I want to install it on 20. The way I do this is I build it once and then load it onto each device using the organizer. However, about every 3 or 4 transfers, the icon fails to transfer with it, and instead I am left with a white icon only on the home screen. If I launch it, and then check the multitask bar, the icon is there (and it is shown faded out on the home screen while the multitask bar is active). If I transfer the app again, the icon comes just fine. The devices are all 32 GB iPad 2.
The dimensions of the icon are correct (72x72 RGB24), and the name of the icon is correct (Icon-72.png). I noticed that there are two entries in my info plist: Icon files and Icon files (iOS 5). My deployment target is 5.0, so should I erase the first one? This program is big and takes a long time to transfer and install so I dislike loading it twice. What can I do?
The App icons (retina and normal) need to be placed on the root of your application.
To fix the problem I found that the best is to start the process from scratch:
remove the icons from your project
clean the build
delete Derived Data (Organizer->Projects) *
remove the icons from the app info plist file (Icon files and Icon files iOS5).
drag the icons into the Summary App Icon section
Build
* I do not know if this step is needed but I do it anyway while troubleshooting.
In newer versions of Xcode it doesn't seem to be happening. So I will chalk it up to a quirk in Xcode.

Resources