Software Archive
Read-only legacy content
17060 Discussions

spotlight search icon not updated

Alon_I_
Beginner
1,974 Views

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 ?

 

 

0 Kudos
18 Replies
John_H_Intel2
Employee
1,974 Views

The additions file needs to be named  intelxdk.config.additions.xml

0 Kudos
Alon_I_
Beginner
1,974 Views

Hi John, thats the name i used for my file

the icons are at the root where the file is. 

 

other then that i dont know why it stuill shows the default cordova icon.

 

Alon

 

0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

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.

0 Kudos
Alon_I_
Beginner
1,974 Views

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

 

 

0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

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.

 

0 Kudos
Alon_I_
Beginner
1,974 Views

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 ?

 

 

 

0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

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

0 Kudos
Alon_I_
Beginner
1,974 Views

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" />

 

0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

nothing has changed, your declaration is correct, just delete the app on device and reinstall.

make sure that after you build, u are see the <icon ..> tags in the ios config xml file

0 Kudos
Alon_I_
Beginner
1,974 Views

Thanks, so do i need to use the same icon names in the xml or i can renamed their location and names inside the xml ?

0 Kudos
Alon_I_
Beginner
1,974 Views

unfortuntely that doest work

while i used exactly the same file name and location and got no build error. ipad still shows the cordova icon in the spotlight search

0 Kudos
Alon_I_
Beginner
1,974 Views

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
0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

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" />

 

 

0 Kudos
Alon_I_
Beginner
1,974 Views
Hi thats exactly what i did The icon152 is in the root directory but fron reason it doesnt upload it. Btw this icon is called from the xdk icon selection and still it wasnt uploaded. The icons 40 20@2x etc were in root/ios/ and still are not uploaded. Will it help if i send you in pm my additions xml and file structure? There
0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

just sent you a PM, send me link to download your project, I can try and let you know whats going on.

0 Kudos
Alon_I_
Beginner
1,974 Views

Thanks,

I am going away for a few days without my computer. i will send it to you in a few days. Many thanks 

0 Kudos
Alon_I_
Beginner
1,974 Views

've sent you a PM :)

 

Thanks

0 Kudos
Rakshith_K_Intel
Employee
1,974 Views

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" />

 

0 Kudos
Reply