{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/813","labels_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/813/comments","events_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/813/events","html_url":"https://github.com/Azure/azure-mobile-services/issues/813","id":109950409,"number":813,"title":" hub.mobileClient._request","user":{"login":"honght0068","id":13172450,"avatar_url":"https://avatars.githubusercontent.com/u/13172450?v=3","gravatar_id":"","url":"https://api.github.com/users/honght0068","html_url":"https://github.com/honght0068","followers_url":"https://api.github.com/users/honght0068/followers","following_url":"https://api.github.com/users/honght0068/following{/other_user}","gists_url":"https://api.github.com/users/honght0068/gists{/gist_id}","starred_url":"https://api.github.com/users/honght0068/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honght0068/subscriptions","organizations_url":"https://api.github.com/users/honght0068/orgs","repos_url":"https://api.github.com/users/honght0068/repos","events_url":"https://api.github.com/users/honght0068/events{/privacy}","received_events_url":"https://api.github.com/users/honght0068/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T07:32:36Z","updated_at":"2015-10-15T22:52:31Z","closed_at":"2015-10-15T22:52:31Z","body":"I hit error \"Not found\" in the following method with cordova-android but proceed with no issue for cordova-ios.\r\n\r\nPlease advice...\r\n\r\nvar createRegistrationId = function (hub) {\r\n\t\talert('createRegistrationId');\r\n        // Variables needed to make the request to the mobile service.\r\n        var method = \"POST\";\r\n        var uriFragment = \"/push/registrationids\";\r\n\r\n        var deferred = $.Deferred();\r\n\t\talert('createRegistrationId2');\r\n        // Send a Notification Hubs registration request to the Mobile Service.\r\n        hub.mobileClient._request(method, uriFragment, null, null, null,\r\n            function (error, response) {\r\n            if (error) {\r\n\t\t\t\t//alert('Error: ' + error);\r\n\t\t\t\talert('Error: ' + JSON.stringify(error));\r\n                console.log(\"Error: \" + error);\r\n                deferred.reject(\"Error: \" + error);\r\n            } else {\r\n\r\n                // Get the unique registration ID from the Location header.\r\n                var location = response.getResponseHeader(\"Location\");            \r\n                var regex = /\\S+\\/registrations\\/([^?]+).*/;\r\n                var regId = regex.exec(location)[1];\r\n\r\n                // Return the registration ID.\r\n                deferred.resolve(regId);\r\n            }\r\n        });\r\n        return deferred.promise();\r\n    };"}}