{"action":"closed","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1347","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1347/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1347/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/1347","id":346019128,"node_id":"MDU6SXNzdWUzNDYwMTkxMjg=","number":1347,"title":"React-Native endpoint un-recognized.","user":{"login":"thomasobrien99","id":13715890,"node_id":"MDQ6VXNlcjEzNzE1ODkw","avatar_url":"https://avatars3.githubusercontent.com/u/13715890?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasobrien99","html_url":"https://github.com/thomasobrien99","followers_url":"https://api.github.com/users/thomasobrien99/followers","following_url":"https://api.github.com/users/thomasobrien99/following{/other_user}","gists_url":"https://api.github.com/users/thomasobrien99/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasobrien99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasobrien99/subscriptions","organizations_url":"https://api.github.com/users/thomasobrien99/orgs","repos_url":"https://api.github.com/users/thomasobrien99/repos","events_url":"https://api.github.com/users/thomasobrien99/events{/privacy}","received_events_url":"https://api.github.com/users/thomasobrien99/received_events","type":"User","site_admin":false},"labels":[{"id":864677329,"node_id":"MDU6TGFiZWw4NjQ2NzczMjk=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/Analytics","name":"Analytics","color":"bfdadc","default":false},{"id":995486391,"node_id":"MDU6TGFiZWw5OTU0ODYzOTE=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/Push%20Notification","name":"Push Notification","color":"f9d0c4","default":false},{"id":772762686,"node_id":"MDU6TGFiZWw3NzI3NjI2ODY=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/investigating","name":"investigating","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-31T03:12:59Z","updated_at":"2018-12-27T23:49:20Z","closed_at":"2018-12-27T23:49:19Z","author_association":"NONE","body":"Thank you in advance for any assistance you can offer. I've been working more on Android, but having this issue in iOS as well.\r\n\r\nFollowed the docs here: \r\nhttps://aws-amplify.github.io/amplify-js/media/push_notifications_setup.html#configure-your-app\r\n\r\nand here: https://aws-amplify.github.io/amplify-js/media/analytics_guide\r\n\r\nConfiguring this way:\r\n```\r\nimport Amplify from 'aws-amplify';\r\nimport PushNotification from '@aws-amplify/pushnotification';\r\nimport awsExports from '../../aws-exports';\r\n\r\n// import Analytics from '@aws-amplify/analytics';\r\n// Analytics.configure(awsExports);\r\n\r\nAmplify.configure(awsExports);\r\nPushNotification.configure(awsExports);\r\n```\r\n\r\nI also tried configuring just the Analytics module (rather than the whole Amplify export), and just the @amplify-core export, but neither seemed to make a difference. **The docs are unclear about which of these configuration methods is current.** \r\n\r\nAnd despite what seems like successful logs: (?)\r\n\r\n{[DEBUG] 54:31.80 Amplify - amplify config: {…}}\r\n [DEBUG] 54:31.92 I18n - configure I18n\r\n [DEBUG] 54:31.92 I18n - create I18n instance\r\n{[DEBUG] 54:31.93 I18n: undefined}\r\n [DEBUG] 54:31.94 AnalyticsClass - configure Analytics\r\n{[DEBUG] 54:31.94 Parser - parse config: Array(3)}\r\n{[DEBUG] 54:31.94 DeviceInfo: Array(2)}\r\n{[DEBUG] 54:31.96 AWSPinpointProvider - configure Analytics: {…}}\r\n{[DEBUG] 54:31.97 Analytics - on hub capsule analytics: {…}}\r\n{[DEBUG] 54:31.98 AnalyticsClass - current configuration: {…}}\r\n [DEBUG] 54:31.98 AuthClass - configure Auth\r\n{[DEBUG] 54:31.98 Parser - parse config: Array(3)}\r\n{[DEBUG] 54:31.100 Analytics - on hub capsule auth: {…}}\r\n [DEBUG] 54:31.100 AnalyticsClass - configure Analytics\r\n [DEBUG] 54:31.103 Credentials - getting credentials\r\n [DEBUG] 54:31.103 Credentials - picking up credentials\r\n [DEBUG] 54:31.104 Credentials - getting new cred promise\r\n [DEBUG] 54:31.105 Credentials - checking if credentials exists and not expired\r\n [DEBUG] 54:31.106 Credentials - need to get a new credential or refresh the existing one\r\n [DEBUG] 54:31.106 AuthClass - Getting current user credentials\r\n{[DEBUG] 54:31.107 AuthClass - failed to get or parse item aws-amplify-federatedInfo: SyntaxError: Unexpected token u in JSON at position 0\r\n    at JSON.parse (<anonymous>)\r\n    at AuthCla…}\r\n [DEBUG] 54:31.109 AuthClass - Getting current session\r\n [DEBUG] 54:31.111 Storage - configure called\r\n [DEBUG] 54:31.112 StorageClass - configure Storage\r\n [DEBUG] 54:31.113 StorageClass - Do not have bucket yet\r\n [DEBUG] 54:31.113 StorageClass - configure Storage\r\n [DEBUG] 54:31.113 StorageClass - Do not have bucket yet\r\n{[DEBUG] 54:31.114 API - configure API: {…}}\r\n [DEBUG] 54:31.114 API - create API instance\r\n{[DEBUG] 54:31.115 RestClient - API Options: {…}}\r\n{[DEBUG] 54:31.116 PubSub - configure PubSub: {…}}\r\n{[DEBUG] 54:31.116 Interactions - configure Interactions: {…}}\r\n [DEBUG] 54:31.584 Credentials - getting credentials\r\n [DEBUG] 54:31.584 Credentials - picking up credentials\r\n [DEBUG] 54:31.585 Credentials - getting old cred promise\r\n{[DEBUG] 54:31.588 AuthClass - getting session failed: \"No userPool\"}\r\n [DEBUG] 54:31.589 Credentials - setting credentials for guest\r\n{[DEBUG] 54:31.598 Notification - update endpoint in push notification: \"eSOEKtwoOqQ:APA91bHt_hkCbbbEfhT3n8bS7mbsK2sL1H00ER…iKko7ADegtW9GRB0taXvXwF1Xd7rlyWaV9fvQPwn9-I3EI79A\"}\r\n1e7a7412-57c3-4f1f-9…-a5e8c6fce656:61351 in app registration eSOEKtwoOqQ:APA91bHt_hkCbbbEfhT3n8bS7mbsK2sL1H00ERhE4pw_z_rxu7Dcae9i9g4acOIlek5p0HNDBQmd8puF1qBLIAGYk2zZdizzmZ5fVjp5SE6zmHIgeiKko7ADegtW9GRB0taXvXwF1Xd7rlyWaV9fvQPwn9-I3EI79A\r\n{[DEBUG] 54:31.625 Notification - update endpoint in push notification: \"eSOEKtwoOqQ:APA91bHt_hkCbbbEfhT3n8bS7mbsK2sL1H00ER…iKko7ADegtW9GRB0taXvXwF1Xd7rlyWaV9fvQPwn9-I3EI79A\"}\r\n1e7a7412-57c3-4f1f-9…-a5e8c6fce656:61351 in app registration eSOEKtwoOqQ:APA91bHt_hkCbbbEfhT3n8bS7mbsK2sL1H00ERhE4pw_z_rxu7Dcae9i9g4acOIlek5p0HNDBQmd8puF1qBLIAGYk2zZdizzmZ5fVjp5SE6zmHIgeiKko7ADegtW9GRB0taXvXwF1Xd7rlyWaV9fvQPwn9-I3EI79A\r\n{[DEBUG] 54:32.339 Credentials - Load credentials successfully: CognitoIdentityCredentials}\r\n{[DEBUG] 54:32.340 AWSPinpointProvider - set credentials for analytics: CognitoIdentityCredentials}\r\n{[DEBUG] 54:32.341 AWSPinpointProvider - set credentials for analytics: CognitoIdentityCredentials}\r\n21e7a7412-57c3-4f1f-9…a5e8c6fce656:325212 Get item: key is AWSPinpoint_54ffba5acbdb4dfab2d287e233ded215 with options undefined\r\n{[DEBUG] 54:43.892 AWSPinpointProvider - endpointId from cache: Array(3)}\r\n [DEBUG] 54:43.893 AWSPinpointProvider - init clients\r\n{[DEBUG] 54:43.895 AWSPinpointProvider - init clients with credentials: {…}}\r\n\"[DEBUG] 54:43.903 AWSPinpointProvider - updateEndpoint with params: \": {…}}\r\n{[DEBUG] 54:43.922 AWSPinpointProvider - endpointId from cache: Array(3)}\r\n [DEBUG] 54:43.923 AWSPinpointProvider - init clients\r\n [DEBUG] 54:43.924 AWSPinpointProvider - no change for aws credentials, directly return from init\r\n [DEBUG] 54:43.924 AWSPinpointProvider - record session start\r\n{[DEBUG] 54:44.301 AWSPinpointProvider - updateEndpoint success: {…}}\r\n\"[DEBUG] 54:44.533 AWSPinpointProvider - record event success. \": {…}}\r\n\r\n**No endpoints are registered in the Pinpoint console. Nothing is targetable.**\r\n\r\nUsing : \r\n  \"@aws-amplify/analytics\": \"^1.0.3\",\r\n  \"@aws-amplify/pushnotification\": \"^1.0.3\",\r\n  \"aws-amplify\": \"^1.0.4\",\r\n  \"aws-amplify-react-native\": \"^1.0.4\"\r\n\r\nAnd buildscript dependencies\r\n  'classpath 'com.android.tools.build:gradle:2.3.2' // --> 2.2.3 as suggested in the docs doesn't appear to work with '@aws-amplify/pushnotification'\r\n  'classpath 'com.google.gms:google-services:3.2.0'\r\n\r\nI am not sure if something could have changed, because this was working for me before. The app is getting registered in Firebase, and I can see some analytics there.\r\n\r\n"}}
{"actor":{"display_login":"powerful23"}}