How can i change the ios app icon in flutter? - ios

I have a problem when i change the ios app icon in the flutter .
This is my icon configuration list.
This is my problem. The small icon cannot be replaced.
However, the icon of the app has been changed.

you could change the icon automatically by using this package: https://pub.dev/packages/flutter_launcher_icons
add the icon image to the assets folder,
then add this to your pubspec.yaml file
dev_dependencies:
flutter_launcher_icons: "^0.9.2"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon.png"
and run these commands in the terminal of your project
flutter pub get
flutter pub run flutter_launcher_icons:main

You just need to watch this tutorial.
https://www.youtube.com/watch?v=O9ChjwrZqns&t=458s
It teaches how to change the android and ios icon.

Related

Why I am getting app icon error while build IOS flutter app?

While I am debugging flutter IOS app with real device, I always get
" The app icon set "AppIcon" has 46 unassigned children ".
I have been added app icons in the ios> Runner>Assets.xcassets>AppIcon.appiconset .But build failed in xcode. How to fix it.
I described with screen shoots of my project specifications.
You must open your iOS folder to Xcode:
goto https://appicon.co/ and drag your icon and generate assets icons:
after download AppIcon.zip you must unzip and drag or copy and paste to the directory:
paste it to the directory in below picture:
You can use package so it will take care of all this issue.
please add this dependency on your pubspec.yaml page
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.7.4
you have to upload an image/icon on your project which you want to see as a launcher icon. (i have created a folder name:image in my project then upload the logo.png in the image folder). Now you have to add the below codes and paste your image path on image_path: in pubspec.yaml page.
flutter_icons:
image_path: "images/logo.png"
android: true
ios: true
Go to terminal and execute this command:
flutter pub get
After executing the command then enter below command:
flutter pub run flutter_launcher_icons:main
Done
I can run on either IOS simulator or physical device.
Step -> Delete LauchScreen folder and Asset Catalog Launch name remove in build setting. Then I got it.

launching release iOS app not downloading to multiple device when using .ipa file via url in flutter

I am building a flutter app and I want to public ios using .ipa file which is going to be downloaded via URL
After creating the .ipa file and use the URL to download, it only works with my device (iPhone ios 12.3.1). In other devices, it just stopped downloading at the end.
Steps used to create the .ipa file and the URL:
using flutter command to build a release ios (flutter build ios --release)
archive it using XCode 10.2.1
export .ipa file using Adhoc (I am using individual apple developer membership)
using this site (https://www.diawi.com/) to create the URL
The libraries used is:
flutter_bloc: ^0.17.0
firebase_auth: ^0.11.1+6
cloud_firestore: ^0.12.5
firebase_storage: ^3.0.1
firebase_messaging: ^5.0.3
intl: ^0.15.8
cached_network_image: ^1.0.0

Flutter released app not working on the device, when installed

When I am debugging the app, everything works fine, but after I perform these commands:
flutter clean
flutter build apk
flutter install
The installed app is not working properly (Not loading data from API). Any ideas?
pubspec.yaml:
name: test_app
description: A new Flutter project.
https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
http: ^0.12.0+2
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
Since this is a problem that might concern other developers and the question deserves an answer I've decided to post it as an answer rather than a comment.
When you create a new flutter project, the framework won't add any permissions to AndroidManifest.xml or any configurations to Info.plist for iOS. This has to be done manually by the developer.
Also, there are some flutter packages that take care of runtime permissions, but these permissions require user input (grant permission or deny it). Runtime permissions are sensitive permissions but internet access permission is not in this category, so there's no need for requesting user feedback on it.
To be even more confusing, the flutter framework can do API requests in debug mode or on simulators without Internet permission added to the AndroidManifest.xml (maybe in the future we'll get an error/warning) about missing permission from the flutter team, until then, don't forget to add it in your AndroidManifest.xml file.
Below steps work for me
Check your flutter channel in terminal
run flutter channel
If your channel is in Dev
Flutter channels:
master
* dev
beta
stable
Change your channel to stable
run flutter channel stable
It will ask for flutter upgrade.
run flutter upgrade
you final output will be
Flutter channels:
master
dev
beta
* stable
Voila!!!

Not showing icon app in Android 9.0 Flutter

I using library https://pub.dartlang.org/packages/flutter_launcher_icons run icon app. I also try flutter pub pub get and flutter pub pub run flutter_launcher_icons:main but in Android 9.0, I'm not found icon app which I using but only see the default flutter icon. How to fix it?

Default project screen with Cordova on iOS

I have built a project written in Cordova/PhoneGap for iOS and I can only see default screen with Cordova logo. What do I have to set in XCode to copy files in www directory to cordova project stub?

Resources