{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/938","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/938/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/938/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/938","id":157297352,"number":938,"title":"Not receiving notifications on iOS when using an adhoc distribution certificate/provisioning profile","user":{"login":"jcus0006","id":14921889,"avatar_url":"https://avatars.githubusercontent.com/u/14921889?v=3","gravatar_id":"","url":"https://api.github.com/users/jcus0006","html_url":"https://github.com/jcus0006","followers_url":"https://api.github.com/users/jcus0006/followers","following_url":"https://api.github.com/users/jcus0006/following{/other_user}","gists_url":"https://api.github.com/users/jcus0006/gists{/gist_id}","starred_url":"https://api.github.com/users/jcus0006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcus0006/subscriptions","organizations_url":"https://api.github.com/users/jcus0006/orgs","repos_url":"https://api.github.com/users/jcus0006/repos","events_url":"https://api.github.com/users/jcus0006/events{/privacy}","received_events_url":"https://api.github.com/users/jcus0006/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/ios","name":"ios","color":"BFD4F2"},{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-27T21:54:52Z","updated_at":"2016-06-02T15:13:57Z","closed_at":null,"body":"### Expected Behaviour\r\n\r\nTo my knowledge the app should register and also receive notifications with this configuration. Details in 'Reproduce Scenario' section. \r\n\r\n### Actual Behaviour\r\n\r\nThe app is registering. I can see the registration with the PNS identifier and the Registration ID in Azure. However, when sending push notifications (that are received on same devices using development config) are not received using the distribution (ad-hoc) certificate/provisioning profile.\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\nI created the certificate and the provisioning profile based on an App Id which has both development and production enabled push notification settings.\r\n\r\nFirst I was trying the App Store distribution provisioning profile (but then I realised that kind of provisioning profile is only suitable for sending to App Store - in fact I wasnt managing to deploy), then I realised I could use Ad-hoc and specify the devices that I was going to deploy on: which I did. I got the .p12 to upload into Azure and uploaded it in Azure. \r\n\r\nUsing this configuration, the app deploys and runs properly, the push plugin manages to register and I can see the registration in the Notification Hub on Visual Studio, including the PNS identifier and the registration id.  When sending a push from the backend service I have developed, and even from Azure debug or Visual Studio test send (in notification hub), nothing happens neither when in app and neither when the app is running in the background or closed. \r\n\r\nI was building/deploying via taco remote build but I also tried to upload the app on diawi.com and install it from there; a possible fix which I found online that didn't solve the problem.\r\n\r\nMy question is: should I be receiving notifications using ad-hoc and the above-mentioned configuration? Is there something that I could be missing? I saw something about .pem files, I also found code that can be done in the terminal that actually creates a pem file; which I did, but have no idea what to do with. Is the pem something I need or is it completely irrelevant? \r\n\r\nRemember that Im managing to work properly (both registering and receiving) using the Development build and development configuration. Please help :)\r\n\r\nPlease note: I am unsure if this is an issue with the Push Plugin when working with this specific kind of config or a problem with the certificates/provisioning profile itself. I would be able to provide more info if useful to assess my situation.\r\n\r\n#### (iOS) What device vendor/type\r\n\r\nApple iPhone 6, Apple iPad 4 (latest versions)\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    Cordova 6.2.0\r\n\r\n#### Plugin version\r\n\r\n    1.6.4\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/223323127","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/938#issuecomment-223323127","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/938","id":223323127,"user":{"login":"jcus0006","id":14921889,"avatar_url":"https://avatars.githubusercontent.com/u/14921889?v=3","gravatar_id":"","url":"https://api.github.com/users/jcus0006","html_url":"https://github.com/jcus0006","followers_url":"https://api.github.com/users/jcus0006/followers","following_url":"https://api.github.com/users/jcus0006/following{/other_user}","gists_url":"https://api.github.com/users/jcus0006/gists{/gist_id}","starred_url":"https://api.github.com/users/jcus0006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcus0006/subscriptions","organizations_url":"https://api.github.com/users/jcus0006/orgs","repos_url":"https://api.github.com/users/jcus0006/repos","events_url":"https://api.github.com/users/jcus0006/events{/privacy}","received_events_url":"https://api.github.com/users/jcus0006/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T15:13:57Z","updated_at":"2016-06-02T15:13:57Z","body":"In my case my problem was not even with an App Store certificate. I was using an ad-hoc certificate (a release certificate which can only be used on pre-registered devices) and I did not want to send it to App Store just yet. Does the same apply regarding the gcmSandbox? Im managing to register but not receive notifications. "}}
{"actor":{"display_login":"jcus0006"}}