All Projects → ccavazos → titanium-alternate-icons

ccavazos / titanium-alternate-icons

Licence: other
Leverage the ability to change the app icon in iOS 10.3+

Programming Languages

objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to titanium-alternate-icons

ti.moddevguide
Appcelerator Titanium native Module Guide
Stars: ✭ 39 (+62.5%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.admob
Use the Google AdMob SDK on iOS and Android with Titanium
Stars: ✭ 51 (+112.5%)
Mutual labels:  titanium, appcelerator, titanium-module
titanium-apple-sign-in
Use the iOS 13+ Apple Sign In API with Titanium
Stars: ✭ 29 (+20.83%)
Mutual labels:  titanium, appcelerator, titanium-module
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+304.17%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.paint
Touch-based painting with the Titanium SDK.
Stars: ✭ 27 (+12.5%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.playservices
Titanium module for Google Play Services
Stars: ✭ 19 (-20.83%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.locationservices
Titanium Location Services Module for Android
Stars: ✭ 13 (-45.83%)
Mutual labels:  titanium, titanium-module
titanium-turbo
Axway Amplify module that adds some enhancements for Appcelerator Titanium Alloy
Stars: ✭ 15 (-37.5%)
Mutual labels:  titanium, appcelerator
staballoy
Reactive UI framework for Titanium Alloy
Stars: ✭ 18 (-25%)
Mutual labels:  titanium, appcelerator
griffin-app-opensource
The Axway Griffin App goes open source!
Stars: ✭ 19 (-20.83%)
Mutual labels:  titanium, appcelerator
To.BounceView
A bouncing view widget for Titanium
Stars: ✭ 49 (+104.17%)
Mutual labels:  titanium, appcelerator
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+10537.5%)
Mutual labels:  titanium, appcelerator
ti.youtube
A small library to get the URL of the desired YouTube video ID to use it natively in Ti.Media.VideoPlayer.
Stars: ✭ 13 (-45.83%)
Mutual labels:  titanium, titanium-module
nl.fokkezb.button
Bootstrap Button widget for Appcelerator (Titanium)
Stars: ✭ 72 (+200%)
Mutual labels:  titanium, appcelerator
vscode-appcelerator-titanium
Appcelerator development tools and UI package for Visual Studio Code.
Stars: ✭ 35 (+45.83%)
Mutual labels:  titanium, appcelerator
TiFastlane
With TiFastlane you'll be able to fully optimize the way you submit your app updates and maintain your certificates and provisioning profiles of all your Titanium Apps.
Stars: ✭ 83 (+245.83%)
Mutual labels:  titanium, appcelerator
ti.exoplayer
A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.
Stars: ✭ 17 (-29.17%)
Mutual labels:  titanium, appcelerator
ti recover
Appcelerator Titanium APK source code recovery tool
Stars: ✭ 17 (-29.17%)
Mutual labels:  titanium, appcelerator
ti.coremotion
Support for the native iOS CoreMotion framework in Appcelerator Titanium
Stars: ✭ 15 (-37.5%)
Mutual labels:  titanium, appcelerator
titanium-dark-mode
Full support for iOS 13+ / Android 10+ dark mode (semantic colors and images) in Appcelerator Titanium
Stars: ✭ 26 (+8.33%)
Mutual labels:  titanium, appcelerator

Alternate App Icon Ti Module (iOS 10.3+)

Summary

Leverage the ability to change the app icon in iOS 10.3+.

WhiteIcon

Requirements

  • Titanium Mobile SDK 6.0.3.GA or later
  • iOS 10.3 or later
  • Xcode 8.3 or later

Download

Setup

Unzip the module in the modules/iphone/ folder of your project. Add the module requirement in your tiapp.xml file.

<modules>
    <module platform="iphone">ti.alternateicons</module>
</modules>

In order to use this module with Titanium you will need to disable app thinning by editing the adding the following property in your tiapp.xml:

<ios>
    <use-app-thinning>false</use-app-thinning>
</ios>

Alternatively, you can pass the hashed name of the icon to the methods. You can look up the generated names in build/iphone/Assets.xcassets.

Next, you have to declare the icons that you will use in your by adding the following to the tiapp.xml. The <key> named alloyIcon is the string that you will use to call the set​Alternate​Icon​Name method .

<ios>
    <dict>
        <key>CFBundleIcons</key>
        <dict>
            <key>CFBundleAlternateIcons</key>
            <dict>
                <key>alloyIcon</key>
                <dict>
                    <key>CFBundleIconFiles</key>
                    <array>
                        <string>alloy</string>
                    </array>
                </dict>
            </dict>
            <key>CFBundlePrimaryIcon</key>
            <dict>
                <key>CFBundleIconFiles</key>
                <array>
                    <string>AppIcon</string>
                </array>
            </dict>
        </dict>
    </dict>
</ios>

Copy your icons into the app/assets/ folder. You can try it out with [email protected] and [email protected] in the example folder of this repo.

Hyperloop

This module is also built in Hyperloop to demonstrate the native API access with JavaScript. You can simple require the ti.alternateicons.js in your application and run it!

Example

var AlternateIcons = require('ti.alternateicons');

if (AlternateIcons.isSupported()) {
    AlternateIcons.setAlternateIconName('alloyIcon', function(e) {
        if (!e.success) {
            Ti.API.error(e.error);
        }
    });
}

Methods

  • isSupported
  • supportsAlternateIcons
  • alternateIconName
  • set​Alternate​Icon​Name
  • setDefaultIconName

Author

Cesar Cavazos (@cesarcvz / Web)

License

Apache 2.0

Contributing

Code contributions are greatly appreciated, please submit a new pull request

Special Thanks

To Hans Knoechel because this module was created using titanium-review-dialog as a reference.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].