I encountered problems getting some sample widgets to install in the FP2 SDK emulator. The "Hello World" example which came with the SDK installed ok, but the Chinese Horoscope example from the "Getting_Started_with_Nokia_Web_Widget_Development_v1_0_en.zip" did not.
I noticed that the key and DTD names were different between them. Hello World looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BundleDisplayName</key>
<string>Hello-World</string>
<key>BundleIdentifier</key>
<string>com.nokia.widget.helloworld</string>
<key>BundleName</key>
<string>hello-world</string>
<key>BundleShortVersionString</key>
<string>1.00</string>
<key>BundleVersion</key>
<string>1.00</string>
<key>MainHTML</key>
<string>index.html</string>
</dict>
</plist>
Horoscope looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/plist-1.0.dtd">
<plist version="1.0">
<dict>
<key>DisplayName</key>
<string>Chinese Horoscope</string>
<key>Identifier</key>
<string>com.nokia.forum.widget.horoscope</string>
<key>MainHTML</key>
<string>horoscope.html</string>
</dict>
</plist>
Trying to install Horoscope.wgz with this Info.plist yields this message in the emulator: "Unable to install. Feature not supported."
By changing the key names in the Info.plist for Horoscope to line up with Hello World (i.e. prefixing "Bundle" to DisplayName and Identifier key names and adding BundleName and Bundle*Version pairs), I was able to get it to install and run. But the documentation describes the key names as per the orignal Horoscope example. So I'm a bit confused. Which is right going forward?
I've looked through the release notes and searched the forum for info on this without success. If I'm missing something obvious, please let me know.
Also, will it be possible to place widgets on the idle screen at some point in the future?
Thanks.
John

Reply With Quote

