Hello
I followed your instructions here on how to update spotlight search. this is for a construct game
ive added the following lines to my additions xml
<platform name="ios">
<!-- iOS 7.0+ -->
<!-- iPhone / iPod Touch -->
<icon src="icon-60.png" width="60" height="60" />
<icon src="icon120.png" width="120" height="120" />
<!-- iPad -->
<icon src="icon76.png" width="76" height="76" />
<icon src="icon152.png" width="152" height="152" />
</platform>
the icons are in the root directory of the construct export
What am i doing wrong ?
链接已复制
Thanks for reporting, we are looking into this issue.
The correct way to spotlight and settings icons in additions xml are as follows, the main icons for iphone and ipad should be added from build settings UI:
<icon platform="ios" src="ios/Icon-40.png" width="40" height="40" /> <icon platform="ios" src="ios/Icon-40@2x.png" width="80" height="80" /> <icon platform="ios" src="ios/Icon-40@3x.png" width="120" height="120" /> <icon platform="ios" src="ios/Icon-Small.png" width="29" height="29" /> <icon platform="ios" src="ios/Icon-Small@2x.png" width="58" height="58" /> <icon platform="ios" src="ios/Icon-Small@3x.png" width="87" height="87" />
The spotlight icon are not updated currently, we are looking in to this now.
HI Rakshith
I followed the instructions here : https://software.intel.com/en-us/xdk/docs/cordova-for-ios-build-option
there is another article with other instructions q19
https://software.intel.com/en-us/xdk/faqs/general
I guess that icon sizes in my file are not right
https://software.intel.com/en-us/xdk/docs/cordova-for-ios-build-options
The instruction in above doc is correct, the faq has to be updated.
However, we just found an issue, the icons for spotlight are not applied in the build, we are working on a fix.
Hi Rakshith,
We have an app ready for market only with this issue unresolved and relied on xdk to publsih for us. I saw that there is a new build for the XDK without this being addressed.
We can't upload the app with the cordova icons , its just not professional on our end. Any time estimate for this? Maybe a workaround ?
Can u check now again with these added to additions file:
<icon platform="ios" src="ios/Icon-40.png" width="40" height="40" /> <icon platform="ios" src="ios/Icon-40@2x.png" width="80" height="80" /> <icon platform="ios" src="ios/Icon-40@3x.png" width="120" height="120" /> <icon platform="ios" src="ios/Icon-Small.png" width="29" height="29" /> <icon platform="ios" src="ios/Icon-Small@2x.png" width="58" height="58" /> <icon platform="ios" src="ios/Icon-Small@3x.png" width="87" height="87" />
delete the existing app on ios device and install the new build on device, spotlight icon should work now, I just tried, it works in spotlight
Hello Rakshith,
Isnt it exactly the same file as you post in message # 4? What was changed ?
Do i need to locate the icons under ios folder and use the exact names ? i.e "Icon-Small@3x.png"
i used these files with diferent names and located on root but it didnt work
. i.e <
icon
platform
=
"ios"
src
=
"icon87.png"
width
=
"87"
height
=
"87"
/>
log file shows some errors in regards to uploading the files which are not related to what i have in the additions file.
Copying icon from .../shapes1/icon-60.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-60.png cp: no such file or directory: .../shapes1/icon-60.png Copying icon from .../shapes1/icon120.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-60@2x.png cp: no such file or directory: .../shapes1/icon120.png Copying icon from .../shapes1/icon-180.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-60@3x.png cp: no such file or directory: .../shapes1/icon-180.png Copying icon from .../shapes1/icon76.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-76.png cp: no such file or directory: .../shapes1/icon76.png Copying icon from .../shapes1/icon152.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-76@2x.png cp: no such file or directory: .../shapes1/icon152.png Copying icon from .../shapes1/ios/Icon-40.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-40.png cp: no such file or directory: .../shapes1/ios/Icon-40.png Copying icon from .../shapes1/ios/Icon-40@2x.png to .../shapes1/platforms/ios/shapes1/Resources/icons/icon-40@2x.png cp: no such file or directory: .../shapes1/ios/Icon-40@2x.png Copying splash from .../shapes1/splash_iphone_r.png to .../shapes1/platforms/ios/shapes1/Resources/splash/Default-Landscape-736h.png cp: no such file or directory: .../shapes1/splash_iphone_r.png
looks like the path for the icons are incorrectly defined in the xml file, you can have any name, the path for icon files should be relative to the folder where you have index.html.
if your project structure is like this:
- www/index.html
- www/ios/icon-40.png
then your icon should be defined like this
<icon platform="ios" src="ios/icon-40.png" width="40" height="40" />
I got your code and opened in Intel XDK v1995, changed to my provision profile and built ios, installed on my iPhone6, app icon and spotlight icons are working, see attached images.
http://s16.postimg.org/k6jjzh3vp/Screen_Shot_2015_05_14_at_11_07_43_AM.png
http://s28.postimg.org/w5cjpfjr1/image2_1.png
http://s12.postimg.org/5uycnz9hp/image1_4.png
For older iphone and ipad and older ios versions, you have to add 5 more icons in additions xml file:
<!-- Spotlight Icon --> <icon platform="ios" src="res/ios/icon-40.png" width="40" height="40" /> <icon platform="ios" src="res/ios/icon-40@2x.png" width="80" height="80" /> <icon platform="ios" src="res/ios/icon-40@3x.png" width="120" height="120" /> <!-- iPhone Spotlight and Settings Icon --> <icon platform="ios" src="res/ios/icon-small.png" width="29" height="29" /> <icon platform="ios" src="res/ios/icon-small@2x.png" width="58" height="58" /> <icon platform="ios" src="res/ios/icon-small@3x.png" width="87" height="87" /> <!-- iPad Spotlight and Settings Icon --> <icon platform="ios" src="res/ios/icon-50.png" width="50" height="50" /> <icon platform="ios" src="res/ios/icon-50@2x.png" width="100" height="100" />
