{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/14720","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/14720/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/14720/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/14720/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/14720","id":358480378,"node_id":"MDU6SXNzdWUzNTg0ODAzNzg=","number":14720,"title":"Android Azure notification hub SDK is not working in Android Pie","user":{"login":"Prashanthlkv","id":2149197,"node_id":"MDQ6VXNlcjIxNDkxOTc=","avatar_url":"https://avatars3.githubusercontent.com/u/2149197?v=4","gravatar_id":"","url":"https://api.github.com/users/Prashanthlkv","html_url":"https://github.com/Prashanthlkv","followers_url":"https://api.github.com/users/Prashanthlkv/followers","following_url":"https://api.github.com/users/Prashanthlkv/following{/other_user}","gists_url":"https://api.github.com/users/Prashanthlkv/gists{/gist_id}","starred_url":"https://api.github.com/users/Prashanthlkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prashanthlkv/subscriptions","organizations_url":"https://api.github.com/users/Prashanthlkv/orgs","repos_url":"https://api.github.com/users/Prashanthlkv/repos","events_url":"https://api.github.com/users/Prashanthlkv/events{/privacy}","received_events_url":"https://api.github.com/users/Prashanthlkv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-10T06:08:42Z","updated_at":"2018-09-10T18:40:25Z","closed_at":"2018-09-10T18:40:25Z","author_association":"NONE","body":"Android Azure notification hub SDK is not working in Android Pie. \r\nBelow are the SDK details:\r\n**Mavel url**: \"http://dl.bintray.com/microsoftazuremobile/SDK\" \r\n**Dependencies:** \r\ncompile 'com.microsoft.azure:notification-hubs-android-sdk:0.4@aar' \r\ncompile 'com.microsoft.azure:azure-notifications-handler:1.0.1@aar'\r\n\r\n**Steps to reproduce:** \r\n1. Receive GCM/FCM token \r\n2. Create instance of NotificationHub \r\n3. Call method \"registerTemplate\" using the instance of NotificationHub along with the required parameters.\r\n\r\n**Error:**\r\n\r\nCaused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/net/http/AndroidHttpClient; at com.microsoft.windowsazure.messaging.Connection.executeRequest(Connection.java:217) at com.microsoft.windowsazure.messaging.Connection.executeRequest(Connection.java:178) at com.microsoft.windowsazure.messaging.Connection.executeRequest(Connection.java:134) at com.microsoft.windowsazure.messaging.NotificationHub.refreshRegistrationInformation(NotificationHub.java:296) at com.microsoft.windowsazure.messaging.NotificationHub.registerInternal(NotificationHub.java:390) at com.microsoft.windowsazure.messaging.NotificationHub.registerTemplate(NotificationHub.java:196)\r\n\r\n**Required Fix:**\r\nThe SDK uses AndroidHttpClient for network operations, this API is deprecated in Android 6 and removed completely in Android 9. Could you guys please update the SDK with the fix?\r\n\r\n**Also I have posted this issue in stack overflow:**\r\nhttps://stackoverflow.com/questions/52247151/android-azure-notification-hub-sdk-is-not-working-in-android-pie"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/420017487","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/14720#issuecomment-420017487","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/14720","id":420017487,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDAxNzQ4Nw==","user":{"login":"Karishma-Tiwari-MSFT","id":20851144,"node_id":"MDQ6VXNlcjIwODUxMTQ0","avatar_url":"https://avatars0.githubusercontent.com/u/20851144?v=4","gravatar_id":"","url":"https://api.github.com/users/Karishma-Tiwari-MSFT","html_url":"https://github.com/Karishma-Tiwari-MSFT","followers_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/followers","following_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/subscriptions","organizations_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/orgs","repos_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/repos","events_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/Karishma-Tiwari-MSFT/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T18:40:25Z","updated_at":"2018-09-10T18:40:25Z","author_association":"MEMBER","body":"@Prashanthlkv Thanks for bringing this to our attention. We will close this issue as it is a duplicate of https://github.com/MicrosoftDocs/azure-docs/issues/14718\r\nWe will address this issue in #14718"}}
{"actor":{"display_login":"Karishma-Tiwari-MSFT"}}