Title: Apns notification error: 'InvalidToken' · Issue #240 · NativeScript/push-plugin · GitHub
Open Graph Title: Apns notification error: 'InvalidToken' · Issue #240 · NativeScript/push-plugin
X Title: Apns notification error: 'InvalidToken' · Issue #240 · NativeScript/push-plugin
Description: We are experiencing an issue with sending notifications to our test iOS device. Everything works well on Android. Here is our environment: nodejs: 8.9.4 npm: 5.8.0 tns-ios: 4.1.0 push-plugin: 1.0.4 tns: 4.1.2 The certificates, the provis...
Open Graph Description: We are experiencing an issue with sending notifications to our test iOS device. Everything works well on Android. Here is our environment: nodejs: 8.9.4 npm: 5.8.0 tns-ios: 4.1.0 push-plugin: 1.0.4...
X Description: We are experiencing an issue with sending notifications to our test iOS device. Everything works well on Android. Here is our environment: nodejs: 8.9.4 npm: 5.8.0 tns-ios: 4.1.0 push-plugin: 1.0.4...
Opengraph URL: https://github.com/NativeScript/push-plugin/issues/240
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apns notification error: 'InvalidToken'","articleBody":"We are experiencing an issue with sending notifications to our test iOS device. Everything works well on Android. Here is our environment:\r\n\r\nnodejs: 8.9.4\r\nnpm: 5.8.0\r\ntns-ios: 4.1.0\r\npush-plugin: 1.0.4\r\ntns: 4.1.2\r\n\r\nThe certificates, the provisioning profile, and the p12 files were generated on the same machine (iMac). \r\nThe correct certificate and provisioning profile are set up in Sidekick. We are testing it via pushtry.com as well as locally via our API.\r\n\r\nHere is how we generate the token:\r\n\r\n```\r\n //iOS\r\n let iosSettings = {\r\n badge: true,\r\n sound: false,\r\n alert: true,\r\n clearBadge: false,\r\n interactiveSettings: {\r\n actions: [\r\n {\r\n identifier: \"READ_IDENTIFIER\",\r\n title: \"Read\",\r\n activationMode: \"foreground\",\r\n destructive: false,\r\n authenticationRequired: true\r\n },\r\n {\r\n identifier: \"CANCEL_IDENTIFIER\",\r\n title: \"Cancel\",\r\n activationMode: \"foreground\",\r\n destructive: true,\r\n authenticationRequired: true\r\n }\r\n ],\r\n categories: [\r\n {\r\n identifier: \"READ_CATEGORY\",\r\n actionsForDefaultContext: [\"READ_IDENTIFIER\", \"CANCEL_IDENTIFIER\"],\r\n actionsForMinimalContext: [\"READ_IDENTIFIER\", \"CANCEL_IDENTIFIER\"]\r\n }\r\n ]\r\n },\r\n notificationCallbackIOS: (message: any) =\u003e {\r\n //console.log('Push notification from iOS: ', message);\r\n //let response = JSON.parse(message);\r\n }\r\n };\r\n\r\n pushPlugin.register(\r\n iosSettings,\r\n (token: String) =\u003e {\r\n appSettings.setString(SettingsEnum.DEVICE_TOKEN.toString(), token.toString());\r\n\r\n pushPlugin.registerUserNotificationSettings(() =\u003e { }, err =\u003e { });\r\n },\r\n function (errorMessage: any) {\r\n console.log(\"Error from Apple notification: \", errorMessage);\r\n }\r\n );```\r\n\r\nWhat are we missing?\r\n\r\nThank you.","author":{"url":"https://github.com/dpdragnev","@type":"Person","name":"dpdragnev"},"datePublished":"2018-08-02T20:15:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/240/push-plugin/issues/240"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39c627c8-76c8-1af3-21f7-f19419edfe28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE92:1F4D74:2848A46:3314B6D:6991AF4B |
| html-safe-nonce | 6c3516a694e8b34961b09d4eff72f8c41945c05309679d0bf5c3abc99b9fc5ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTkyOjFGNEQ3NDoyODQ4QTQ2OjMzMTRCNkQ6Njk5MUFGNEIiLCJ2aXNpdG9yX2lkIjoiNzY2OTI4NDU0Njg2OTgzMzU0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4a3ae20d20304b7b3591e426cb5f1ef7e790599eca8b0a92771d04a64427fef7 |
| hovercard-subject-tag | issue:347158275 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/push-plugin/240/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c91fff1ce7bfd4343361e0cb1eb7820a435c08731f2f73e2d23076cc951ab75b/NativeScript/push-plugin/issues/240 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c91fff1ce7bfd4343361e0cb1eb7820a435c08731f2f73e2d23076cc951ab75b/NativeScript/push-plugin/issues/240 |
| og:image:alt | We are experiencing an issue with sending notifications to our test iOS device. Everything works well on Android. Here is our environment: nodejs: 8.9.4 npm: 5.8.0 tns-ios: 4.1.0 push-plugin: 1.0.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpdragnev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/push-plugin git https://github.com/NativeScript/push-plugin.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 39781030 |
| octolytics-dimension-repository_nwo | NativeScript/push-plugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 39781030 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/push-plugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width