push notification technicaltalk
Post on 02-Jul-2015
396 Views
Preview:
TRANSCRIPT
00
hello.
01
what ispush?
02
whypush?
0201
push ispersonal.<hug here>
0202
peoplewant(!) push
0203
pushto wooooow#yay
03
but how?
0301
like this:1. device requests a token from apns
0301
like this:2. apns returns a new token to device
0301
like this:3. device registers its token at little postman
0301
like this:4. you create a message using little postman api/back-end
0301
like this:5. little postman pushes the token to apns
0301
like this:6. apns pushes notification to device
why bother?04
multi-platformmadness
0401
scalabilityhell
0402
0403
simplifica-tion
0403
automation
0403
personali-zation
0403
segmenta-tion
0403
localization
0403
evaluation
0403
location
0403
multi-app
0403
and on top some colorful charts for the salesdepartment?
0404
release!
05
finally...
0501
we are here*to help.
* berlin-mitte, germany.
0501
init
self.pushClient = [[LPPushClient alloc] initWithClientKey:KEYenvironment:ENV];
UIApplication *app = [UIApplication sharedApplication];[app registerForRemoteNotificationTypes:TYPES];
0502
register
self.pushClient.deviceToken = deviceToken;[self.pushClient registerDeviceToken];
0503
push!
$item = $feed->get_items()[0];$msg = new Lp_RPC_Model_OutgoingMessage($item->get_title());$msg->setData(array('url' => $item->get_link()));
$lpClient = new Lp_RPC_LPClient($this->_serverKey);$lpClient->push($outgoingMessage);
0504
top related