{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1136","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1136/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1136/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/1136","id":168908654,"number":1136,"title":"push.on('registration',  not fired in iOs + APNS","user":{"login":"vousys","id":12813221,"avatar_url":"https://avatars.githubusercontent.com/u/12813221?v=3","gravatar_id":"","url":"https://api.github.com/users/vousys","html_url":"https://github.com/vousys","followers_url":"https://api.github.com/users/vousys/followers","following_url":"https://api.github.com/users/vousys/following{/other_user}","gists_url":"https://api.github.com/users/vousys/gists{/gist_id}","starred_url":"https://api.github.com/users/vousys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vousys/subscriptions","organizations_url":"https://api.github.com/users/vousys/orgs","repos_url":"https://api.github.com/users/vousys/repos","events_url":"https://api.github.com/users/vousys/events{/privacy}","received_events_url":"https://api.github.com/users/vousys/received_events","type":"User","site_admin":false},"labels":[{"id":307723293,"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/ios","name":"ios","color":"BFD4F2","default":false},{"id":196374009,"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2016-08-02T15:02:13Z","updated_at":"2017-01-31T07:52:52Z","closed_at":"2016-08-29T01:56:45Z","body":"Hi Simon! I gave up with GCM in ios, they're not working for me. \nI'm trying with APNS but the registration event, never gets fire.\n\nCertificate to push in apple sandbox : OK\nPem in server: OK\nDevice profile to compile and test: OK\n\nEvents:\nInit:  fires OK\nunregister: works fine\nregistration: never gets call\n#### Device\n\nIpad ios 9.0.3\n#### Cordova CLI version and cordova platform version\n\n```\ncordova --version                                    cli-6.3.0   (via phonegap build web)\n```\n#### Plugin version                                    ~1.8.0\n\nThis is my config.xml\n\n```\n    <preference name=\"phonegap-version\" value=\"cli-6.3.0\" /> \n    <preference name=\"android-build-tool\" value=\"gradle\" />\n    <preference name=\"android-minSDKVersion\" value=\"17\" />\n    <preference name=\"android-maxSDKVersion\" value=\"\" />\n    <preference name=\"android-targetSdkVersion\" value=\"12\" />  \n    <preference name=\"target-device\" value=\"universal\" />\n    <preference name=\"deployment-target\" value=\"8\" />    \n    <preference name=\"permissions\" value=\"none\"/> \n    <preference name=\"orientation\" value=\"auto\" />\n    <preference name=\"DisallowOverscroll\" value=\"true\" />\n    <preference name=\"fullscreen\" value=\"false\" />\n    <preference name=\"android-installLocation\" value=\"auto\" />\n    <preference name=\"show-splash-screen-spinner\" value=\"true\" />\n    <preference name=\"auto-hide-splash-screen\" value=\"true\" />\n    <preference name=\"splash-screen-duration\" value=\"2500\" />\n    <preference name=\"exit-on-suspend\" value=\"false\" />\n    <preference name=\"load-url-timeout\" value=\"25000\" />\n    <preference name=\"EnableViewportScale\" value=\"true\" />\n\n    ... some plugins...\n\n   <gap:plugin name=\"phonegap-plugin-push\"  spec=\"~1.8.0\" source=\"npm\">\n        <param name=\"SENDER_ID\" value=\"XXXXX\"/>\n    </gap:plugin>  \n```\n\nin my  onDeviceReady function: \n\n```\n             push = PushNotification.init({\n                \"android\": {\n                    senderID: api.gcm_sender_id  // Es el ID del proyecto en la consola de GCM\n                },\n                \"ios\": {\n                    /*senderID: api.gcm_sender_id,  si lo agrego sale por GCM */\n                    \"sound\": true,\n                    \"alert\": true,\n                    \"badge\": true\n                }\n            });\n\n\n\n\n            push.on('registration', function(data) {\n                 alert(\"registration event\");\n            });\n\n            push.on('notification', function(data) {\n                // data.message,\n                // data.title,\n                // data.count,\n                // data.sound,\n                // data.image,\n                // data.additionalData\n\n                    navigator.notification.alert(\n                            data.message,         // message\n                            null,                 // callback\n                            data.title,           // title\n                            'Ok'                  // buttonName\n                    );\n\n\n                    // do something with the push data\n                    // then call finish to let the OS know we are done\n                    push.finish(function() {\n                         // Do something\n                    });\n\n\n            });\n\n            push.on('error', function(e) {\n\n                if (e.code != 7) {\n                   modal_errores(e.message);\n\n                }   \n                // e.message\n            });\n```\n\nI've also try compiling with cli-6.1.0 and push plugin version ~1.6.2  but happens the same.\n¿what else can I do? \n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/276297013","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/1136#issuecomment-276297013","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1136","id":276297013,"user":{"login":"IgnazioSammarco","id":9348718,"avatar_url":"https://avatars.githubusercontent.com/u/9348718?v=3","gravatar_id":"","url":"https://api.github.com/users/IgnazioSammarco","html_url":"https://github.com/IgnazioSammarco","followers_url":"https://api.github.com/users/IgnazioSammarco/followers","following_url":"https://api.github.com/users/IgnazioSammarco/following{/other_user}","gists_url":"https://api.github.com/users/IgnazioSammarco/gists{/gist_id}","starred_url":"https://api.github.com/users/IgnazioSammarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgnazioSammarco/subscriptions","organizations_url":"https://api.github.com/users/IgnazioSammarco/orgs","repos_url":"https://api.github.com/users/IgnazioSammarco/repos","events_url":"https://api.github.com/users/IgnazioSammarco/events{/privacy}","received_events_url":"https://api.github.com/users/IgnazioSammarco/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T07:52:52Z","updated_at":"2017-01-31T07:52:52Z","body":"Hi, I have the same issue. How can I debug my app. Is there any log file from plugin ? Where Can I find it ?"}}
{"actor":{"display_login":"IgnazioSammarco"}}