{"_id":"58061d4e2188da0f00bda9a9","version":{"_id":"56cecbdc44c5700b0095c03d","project":"56cecbdb44c5700b0095c03a","__v":10,"createdAt":"2016-02-25T09:39:40.121Z","releaseDate":"2016-02-25T09:39:40.121Z","categories":["56cecbdc44c5700b0095c03e","56d1d2c05ad7ad0b00b7e809","56d1d2fa5ad7ad0b00b7e80a","56d369331660770b00081159","56d3693d1660770b0008115a","56e5361e7990160e002e3fbc","56e5362775eb791700a9c4d2","57a9030947f2f419009188d4","57b4705ee9e4c60e00f6f4c3","5828f5b04774ab0f005179a2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":1,"category":{"_id":"56d3693d1660770b0008115a","pages":["56e51ce64ddf0b0e004afbbc","56e51d092d90970e00af1b1a","56e69b0c00ea361700d4fa78","56ea7bdfcf35bf0e00adb91d"],"version":"56cecbdc44c5700b0095c03d","__v":4,"project":"56cecbdb44c5700b0095c03a","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-28T21:40:13.300Z","from_sync":false,"order":2,"slug":"ios","title":"iOS"},"parentDoc":null,"project":"56cecbdb44c5700b0095c03a","user":"56cecbb2e50c9c1b008303eb","githubsync":"","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-18T13:02:06.326Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"General Implementation\"\n}\n[/block]\nIn order to let PushApps SDK identify the right fields, on the external push provider push notifications, you'll need to override the following method, in your `NotificationService.m`:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"- (void)extractCampaignFieldsFromNotification:(NSDictionary *)userInfo\\n{\\n  self.notificationText = userInfo[:::at:::\\\"my_custom_text_key\\\"];\\n\\tself.campaignId = userInfo[@\\\"my_custom_campaign_id_key\\\"];\\n\\tself.contentUrl = userInfo[@\\\"my_custom_content_url_key\\\"];\\n\\tself.videoUrl = userInfo[@\\\"my_custom_video_key\\\"];\\n  self.imageUrl = userInfo[@\\\"my_custom_image_key\\\"];\\n}\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"ios-external-push-providers","type":"basic","title":"External Push Providers"}

External Push Providers


[block:api-header] { "type": "basic", "title": "General Implementation" } [/block] In order to let PushApps SDK identify the right fields, on the external push provider push notifications, you'll need to override the following method, in your `NotificationService.m`: [block:code] { "codes": [ { "code": "- (void)extractCampaignFieldsFromNotification:(NSDictionary *)userInfo\n{\n self.notificationText = userInfo[@\"my_custom_text_key\"];\n\tself.campaignId = userInfo[@\"my_custom_campaign_id_key\"];\n\tself.contentUrl = userInfo[@\"my_custom_content_url_key\"];\n\tself.videoUrl = userInfo[@\"my_custom_video_key\"];\n self.imageUrl = userInfo[@\"my_custom_image_key\"];\n}", "language": "objectivec" } ] } [/block]