easyAPNS deviceUuid // IOs 5 and later

258 views
Skip to first unread message

svenj...@googlemail.com

unread,
Nov 1, 2013, 8:02:47 AM11/1/13
to easy...@googlegroups.com
Hi everyone,

i have two questions and don´t get it work.

1.) What´s the best way to include IOs5+ with the device UUID?

This code looks not working (
deviceUuid = dev.uniqueIdentifier;), as i always get an error. I want to include all devices from version ios 5+

UIDevice
*dev = [UIDevice currentDevice];
        NSString *deviceUuid;
        if ([dev respondsToSelector:@selector(uniqueIdentifier)])
                deviceUuid = dev.uniqueIdentifier;
        else {
                NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
                id uuid = [defaults objectForKey:@"deviceUuid"];
                if (uuid)
                        deviceUuid = (NSString *)uuid;
                else {
                        CFStringRef cfUuid = CFUUIDCreateString(NULL, CFUUIDCreate(NULL));
                        deviceUuid = (NSString *)cfUuid;
                        CFRelease(cfUuid);
                        [defaults setObject:deviceUuid forKey:@"deviceUuid"];
                }
        }

2.) How is it possible to send around 10000 messages in one time?

Hope to get an fast answer.

Best

Sven

John Jones

unread,
Nov 1, 2013, 8:11:32 AM11/1/13
to easy...@googlegroups.com
for your Q2.

Depends on the size of the message but I would not think sending 10000 messages at the same time, I have written a drupal module (apple_tools) that will send multiple messages at the same time from db tables, and allows it to be throttled etc.  Note the apple services also seam to have a max payload size when sending multiple messages at the same time.

--
--
You received this message because you are subscribed to the Google
Groups "Easy APNS" group.
To post to this group, send email to easy...@googlegroups.com
To unsubscribe from this group, send email to
easyapns+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/easyapns?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Easy APNs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to easyapns+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

svenj...@googlemail.com

unread,
Nov 1, 2013, 8:34:59 AM11/1/13
to easy...@googlegroups.com
What is your suggestion? What´s the easiest way to post a couple of messages? Do you have a link?

svenj...@googlemail.com

unread,
Nov 1, 2013, 8:35:29 AM11/1/13
to easy...@googlegroups.com
php would be fine.


Am Freitag, 1. November 2013 13:11:32 UTC+1 schrieb John Jones:

John Jones

unread,
Nov 1, 2013, 9:13:32 AM11/1/13
to easy...@googlegroups.com
If you get that module from drupal and look inside the main module file there is all the php code you need to send multiple messages at one time to apple ;)

Sent from my iPhone

svenj...@googlemail.com

unread,
Nov 3, 2013, 11:06:35 AM11/3/13
to easy...@googlegroups.com
I´m not using drupal - maybe you have the snippet?

John Jones

unread,
Nov 3, 2013, 11:12:20 AM11/3/13
to easy...@googlegroups.com
To get the snippet I would download the module open it up and copy paste you would be better off doing that, the function is in the module file.  You don't need to use drupal to download its modules.

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages