{"action":"created","issue":{"url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/502","repository_url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK","labels_url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/502/comments","events_url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/502/events","html_url":"https://github.com/OneSignal/OneSignal-iOS-SDK/issues/502","id":450738899,"node_id":"MDU6SXNzdWU0NTA3Mzg4OTk=","number":502,"title":"Tags are not registered if the app is sent to the background","user":{"login":"cnordvik","id":584549,"node_id":"MDQ6VXNlcjU4NDU0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/584549?v=4","gravatar_id":"","url":"https://api.github.com/users/cnordvik","html_url":"https://github.com/cnordvik","followers_url":"https://api.github.com/users/cnordvik/followers","following_url":"https://api.github.com/users/cnordvik/following{/other_user}","gists_url":"https://api.github.com/users/cnordvik/gists{/gist_id}","starred_url":"https://api.github.com/users/cnordvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnordvik/subscriptions","organizations_url":"https://api.github.com/users/cnordvik/orgs","repos_url":"https://api.github.com/users/cnordvik/repos","events_url":"https://api.github.com/users/cnordvik/events{/privacy}","received_events_url":"https://api.github.com/users/cnordvik/received_events","type":"User","site_admin":false},"labels":[{"id":196526748,"node_id":"MDU6TGFiZWwxOTY1MjY3NDg=","url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/labels/Enhancement%20/%20Feature","name":"Enhancement / Feature","color":"2980b9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2019-05-31T10:52:29Z","updated_at":"2019-10-04T19:47:10Z","closed_at":null,"author_association":"NONE","body":"SDK version: 2.10.0\r\n\r\nIf a user enters the app, enables a few alerts and exits the app by pressing home button then the tags are not registered until the user opens the app at a later stage. How are we supposed to handle this scenario? Is it possible to offer a \"send immediately\" flag in the SDK in cases like this? It seems you delay sending of the tags to avoid extra http requests but in cases like this it isn't an ideal solution. \r\n\r\nOnly workaround I've found is to send them to our server and make our server to a server->server registering of the tags. But this seems like something the SDK should handle? Or am I missing something here? \r\n\r\n```\r\n OneSignal.sendTags(tags, onSuccess: { [weak self] (_) in\r\n                self?.isLoading = false\r\n            }) { [weak self] (error) in\r\n                self?.isLoading = false\r\n            }\r\n```"},"comment":{"url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/comments/538536487","html_url":"https://github.com/OneSignal/OneSignal-iOS-SDK/issues/502#issuecomment-538536487","issue_url":"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/issues/502","id":538536487,"node_id":"MDEyOklzc3VlQ29tbWVudDUzODUzNjQ4Nw==","user":{"login":"rgomezp","id":11739227,"node_id":"MDQ6VXNlcjExNzM5MjI3","avatar_url":"https://avatars2.githubusercontent.com/u/11739227?v=4","gravatar_id":"","url":"https://api.github.com/users/rgomezp","html_url":"https://github.com/rgomezp","followers_url":"https://api.github.com/users/rgomezp/followers","following_url":"https://api.github.com/users/rgomezp/following{/other_user}","gists_url":"https://api.github.com/users/rgomezp/gists{/gist_id}","starred_url":"https://api.github.com/users/rgomezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgomezp/subscriptions","organizations_url":"https://api.github.com/users/rgomezp/orgs","repos_url":"https://api.github.com/users/rgomezp/repos","events_url":"https://api.github.com/users/rgomezp/events{/privacy}","received_events_url":"https://api.github.com/users/rgomezp/received_events","type":"User","site_admin":false},"created_at":"2019-10-04T19:47:10Z","updated_at":"2019-10-04T19:47:10Z","author_association":"CONTRIBUTOR","body":"@cnordvik ,\r\nUnfortunately this isn't something we plan to fix very soon"}}
{"actor":{"display_login":"rgomezp"}}