Support iOS 5+ deprecated UDID. With CFUUIDCreate, each time you install your app you'll get a new deviceuid, but the token may be the same. You can end up with multiple entries for the same app, all with the same valid token. Database changes:
  CREATE UNIQUE INDEX `app_token` on apns_devices (`appname`,`devicetoken`);
With this change, if a new UID is generated but the token is unchanged, update the uid in the database:
  ON DUPLICATE KEY UPDATE `deviceuid`='{$deviceuid}',
Since it is now indexed, device token must be unique. This could be an issue if you store devices in the table that did not successfully get the token (or you reuse the table for non-iOS devices):
  ALTER TABLE apns_devices modify column devicetoken char(64) null;
Do not hardcode 'production' - added config variable.
Make _triggerError public so it can be used by apns.php etc.
Asynchronous register request

In order to avoid freezing the UI.
Update Delegate.m
passphrase support added
appversion is now also updated in database
Merge pull request #30 from do3meli/master

appversion is now also updated in database
Merge pull request #28 from do3meli/patch-1

passphrase support added
Merge pull request #26 from FloresRobles/master

Asynchronous register request (.m file)
Merge pull request #23 from trevoriancox/master

Fix for iOS 5: Fix for multiple messages sent to one device after app reinstall.
fix missing commas
Merge pull request #31 from Bcow7/master

fix missing commas
Added environment (sandbox and production) support in the constructor
Revert "Added environment (sandbox and production) support in the constructor"

This reverts commit 9e9e9dea6401f03c66e03ad28653aa1b38468db8.
Added environment (sandbox and production) support in the constructor
Merge pull request #33 from NicolasMassart/master

Add ability to define sandbox or production environment at class construction