white,pages,yellow,tracker,search,find,gps,mobile,411,ringtone,business,911,likes,follower,locator

UIDevice uniqueIdentifier property is deprecated – What now?

7 January, 2013 admin 10

I’m going to show you in this post how to write a workaround for this problem. Many of the existing Apps in the App Store are dependent on this property (uniqueIdentifier) for uniquely identifying a particular device… Apple stopped supporting a unique identifier for iOS (>=5.0). Solution 1: Instead of: [UIDevice uniqueIdentifier]; Use: [UIDevice uniqueDeviceIdentifier]; But wait… where does this property it come from? The following source code solves the problem. It generates a unique identifier based […]

Localizable Strings

Localizable.strings – How to load translation files dynamically from a web server and use them it inside your iPhone App

4 January, 2013 admin 24

We all know we can use “Localizable.strings” to translate our Apps into different languages like this in our code: NSLocalizedString(@”myKey”, @””); … if we have created our “Localizable.strings” file first and put in some keys and values… but what if I want my translation to be dynamic, that is, download it from a webserver and use the key value pairs of that file instead of our “locked” app resources like Localizable.strings after deployment? Fortunately there is a […]

white,pages,yellow,tracker,search,find,gps,mobile,411,ringtone,business,911,likes,follower,locator

Apple Push Notification Services Tutorial: Part 3/3

2 January, 2013 admin 33

Step 3: Build up your database to store user information Now we need a MySQL database to store all user information so that we know where to send the Push Notifications! Build up database to receive user information -> Create a database and a user for that database. -> Update the apns.php file and sendMessage.php file with the database information (username, pwd, database name, host, etc.) We need three tables: “apns_devices”, “apns_device_history” and “apns_messages”. We will actually […]

white,pages,yellow,tracker,search,find,gps,mobile,411,ringtone,business,911,likes,follower,locator

Apple Push Notification Services Tutorial: Part 2/3

2 January, 2013 admin 7

Step 2: Do some stuff on your terminal We now have to generate some files that are needed to communicate with Apple’s pushnotification servers: Generate cert & key files used by your php script to comm. with APNS Remember the “aps_production.cer” file we downloaded? Now we need that one to make all the files we need for our php script to be able to create some nice messages and send them to all the devices that installed […]