I have developed universal application using Titanium platform.
But I am not able to set ipad application icon appicon-72.png.
Can you please advice me how to solve this issue.
Thanks
A better way to do it is to create an info.plist file in the root of your project. You need to add:
<key>CFBundleIconFiles</key>
<array>
<string>appicon.png</string>
<string>appicon#2x.png</string>
<string>appicon-72.png</string>
</array>
for info.plist Creation try this
The info.plist file will now be used during building for distribution to appstore and the different icons will be correctly used in the binary.
Related
I am adding a share extension to my existing Universal app, but it's never showing up in the shared menu.
xcode 9.3 , Deployment target for Parent app and extension 9.3
Steps for adding xcode
File -> New -> Target-> shareExtesnion
All certificates for share extension + containing app on automatic.
Enable app Groups for bot app and extension.
Select Same app group for app and extension.
Build the app using safari.
build successfull, and safari opens fine, but can't see my App extension on the share sheet.
Then created new sample app with same steps mention above, it works properly.
Things I tried to clear the issue
Created new App group.
Deployment target changed to 11.3
Changed ActivationRule
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<integer>1</integer>
</dict>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.ui-services</string>
</dict>
I need your valuable suggestions. Thanks in advance.
I am developing a project in titanium and i want to create a similar functionality of plist as in iOS in titanium. Can anyone tell me that whether there is a way to do so in titanium.
Although I have not done this before it should be possible due to the Titanium documentation (The relevant subtopic is: Settings integration).
Due to the official guide you should put your plist file in the directory platform/iphone/Settings.bundle
okay two questions,
1. how do you force theos to use the 3.2 sdk (is it as simple replacing the 2.0 sdk with the 3.2 one? and
2. how would you develop a simple gui application for iPad using the sdk
If you haven't figured this out yet, and for anyone else looking for this information the solution is quite simple.
In your Info.plist add the "UIDeviceFamily" key and an array with integer's for the devices you wish to support, 1 for iPhone/iTouch and 2 for iPad.
Example.
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
This makes the app universal.
More Info: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
Install BigBoss Recommended Tools from Cydia. Download the libgcc package from http://apt.saurik.com/cydia/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb and then install it. After that install the GNU C Compiler also from Cydia. Add the repo ininjas.com/repo/ and install class-dump-z, Perl iPhone Source and Mobile Terminal from Cydia. Fire up terminal and run su, enter root password (alpine by default) and then finallyinstalltheos3. After that let it do its magic then run $THEOS/bin/nic.pl to get started!
i make a application on Titanium. whose work on cross platform (android or iphone).
i want to stop orientation in android device how i can do?
because, android have default orientation change. and iphone have not default.
win.orientationModes = [Ti.UI.PORTRAIT];
This is working ...
For any kind of android application you can use below in android manifest.
<activity android:screenOrientation="landscape" android:name="org.appcelerator.titanium.TiActivity" android:configChanges="keyboardHidden"/>
For any kind of IOS application you can use below in main plist file in xcode
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
For Titanium Mobile specific; please check below link from Titanium dev center
http://developer.appcelerator.com/question/22241/is-there-a-way-to-disable-orientation-change-on-the-ipadiphone
Has anyone gotten UIFileSharingEnabled or CFBundleDocumentTypes to work? I added UIFileSharingEnabled as true to my plist and used Apple's example from the link below for CFBundleDocumentTypes, but can't seem to get it to work.
I don't see my app under file sharing in iTunes, and I do not get the option to open documents I registered in my app when I click on them in the mail.app
http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html
Carloe,
Open your app-info.plist as a text file. The UIFileSharingEnabled setting should look like this:
<key>UIFileSharingEnabled</key>
<true/>
If you did what I did and added UIFileSharingEnabled in the plist and set its value to YES, your key will look like this:
<key>UIFileSharingEnabled</key>
<string>YES</string>
After I fixed that key, my app popped right up in the File Sharing section under the Apps tab of iTunes.
Hope that fixes your problem too!
File sharing does work on 3.2, but there is a little bug, you have to remove the application after adding UIFileSharingEnabled to the plist in order to get itunes to refresh and see that the app now supports file sharing (rebooting/disconnecting does not do it).
I can confirm what valexa said: UIFileSharingEnabled started working as soon as I had removed the app from the device. Building & running it on the device afterwards made iTunes recognize the app in the file sharing section of iTunes. So, an ad-hoc or any other 'distribution' build is definitely not needed. HTH!
It seems you also need to have CFBundleDisplayName set. This is what fixed my problem. See UIFileSharingEnabled has no effect.
I also confirm Valexa's idea. I use default .plist which shows
<key>UIFileSharingEnabled</key>
<true/>
After Removing/Installing several times, iTunes successfully recognized the File Sharing feature with my app.
I don't know if UIFileSharingEnabled works the way you think it does. Apple is mentioning opening documents from Mail as a 4.0 feature. Setting it should mean your app shows up in the file section of iTunes.
UIFileSharingEnabled affects only when your app is built as 'distribution'. If you build ad-hoc version and install it, you can check your program.