urbanairship.com - Push notifications to Passbook via Urban Airship not appearing on device -
i've found post helpful in getting set up, have yet see force notification come through on iphone on pass installed.
passkit-push-notification-not-working-with-urban-airship
i set app on urban airship's site pushing apple's development servers. installed pass on phone , run next commands found in above post:
airship = urbanairship.airship(_urbanairshippassbookkey, _urbanairshippassbookmastersecret) airship.push({'aps': {'alert': 'go.'}}, device_tokens=tokens) i see confirmation of force in iphone console window in xcode.
received force topic pass.xxx.xxx: { ... aps = { banner = "hello"; }; and iphone sends update tag along pass type id , device library id web service. @ point web service supposed send list of changed passes. however, instead see next error message:
<warning>: web service error pass.mypasstype.id (http://192.168.30.209:8000): response 'what changed?' request included 1 serial numbers lastupdated tag (2013-02-11t17:25:25) remained same. does know why happening? need modify field in pass force notification appear on device?
the short reply question yes, need modify field in pass force notification show. because, unlike app pushes, passbook force payload not determine content of notification.
the purpose of passbook force message alert device web service has new pass updated content. alert text determined solely new pass contents. content in force payload ignored. apple advise a force notification empty json dictionary.
once force sent, triggers next chain:
device receives force , queries web servicepasstypeidentifier , lastupadted tag web service provides list of serials passes passtypeidentifier have changed since lastupdated tag device receives serial(s) , requests web service send new .pkpass bundle each new pass web service send new .pkpass bundle device receives .pkpass bundle , checks against old pass changes if next criteria met, device display notification provided in changemessage key: the value has changed the changemessage contains %@ string id %@ string not present, pass show notification pass changed. if no changemessage key nowadays changed value, no message show.
apple-push-notifications urbanairship.com passbook
No comments:
Post a Comment