{"action":"created","comment":{"url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/comments/57232278","id":57232278,"diff_hunk":"@@ -3,13 +3,34 @@\n Specify the permissions your application needs, by adding <uses-permission> elements as children of the <manifest> element in AndroidManifest.xml.\n \n You must request the android.permission.WRITE_EXTERNAL_STORAGE permission.\n+\n ```\n <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n-``\n+```\n \n The following permissions are defined in the TQG SDK manifest, and are automatically merged into your app's manifest at build time. You don't need to add them explicitly to your manifest:\n \n  - android.permission.INTERNET - Used by the SDK to comunicate with the TQG API Server.\n  - android.permission.ACCESS_NETWORK_STATE - Allows the SDK to access information about networks.\n- - android.permission.ACCESS_WIFI_STATE - Allows the SDK to access information about Wi-Fi networks.\n- - android.permission.ACCESS_FINE_LOCATION - Allow SDK to access precise user location.\n\\ No newline at end of file\n+ - android.permission.ACCESS_FINE_LOCATION - Allow the SDK to access precise user location.\n+ - android.permission.ACCESS_COARSE_LOCATION - Allows the SDK to access approximate location.\n+\n+\n+ ### Location Permission on Android Versions >= 6\n+\n+From Android Marshmallow on, permissions for sensitive information access are asked during runtime, so you need to explicitly ask for them if you want to use. TQG has methods to do this for you. See example below:\n+\n+ ``` \n+ if (!TQGeoTracker.sharedInstance().isLocationNotAuthorized(this)) {\n+        TQGeoTracker.sharedInstance().askForLocationPermission(this);\n+ } \n+ ```\n+This will open a pop-up windows asking for permission. The app should handle the permission changed event.","path":"docs/menus/2-Required-Permission.md","position":null,"original_position":30,"commit_id":"77c8ce91637bb70b6d0f3b3e502172b6d7a77688","original_commit_id":"491c89372db60108fbf8a516c70790145684b1cb","user":{"login":"jessicafernandes209","id":7630957,"avatar_url":"https://avatars.githubusercontent.com/u/7630957?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicafernandes209","html_url":"https://github.com/jessicafernandes209","followers_url":"https://api.github.com/users/jessicafernandes209/followers","following_url":"https://api.github.com/users/jessicafernandes209/following{/other_user}","gists_url":"https://api.github.com/users/jessicafernandes209/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicafernandes209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicafernandes209/subscriptions","organizations_url":"https://api.github.com/users/jessicafernandes209/orgs","repos_url":"https://api.github.com/users/jessicafernandes209/repos","events_url":"https://api.github.com/users/jessicafernandes209/events{/privacy}","received_events_url":"https://api.github.com/users/jessicafernandes209/received_events","type":"User","site_admin":false},"body":"@askmon Done!","created_at":"2016-03-23T20:36:52Z","updated_at":"2016-03-23T20:36:52Z","html_url":"https://github.com/tq1/tqg-sdk-docs/pull/5#discussion_r57232278","pull_request_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/comments/57232278"},"html":{"href":"https://github.com/tq1/tqg-sdk-docs/pull/5#discussion_r57232278"},"pull_request":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5","id":63943827,"html_url":"https://github.com/tq1/tqg-sdk-docs/pull/5","diff_url":"https://github.com/tq1/tqg-sdk-docs/pull/5.diff","patch_url":"https://github.com/tq1/tqg-sdk-docs/pull/5.patch","issue_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/5","number":5,"state":"open","locked":false,"title":"[CHORE] Update docs","user":{"login":"jessicafernandes209","id":7630957,"avatar_url":"https://avatars.githubusercontent.com/u/7630957?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicafernandes209","html_url":"https://github.com/jessicafernandes209","followers_url":"https://api.github.com/users/jessicafernandes209/followers","following_url":"https://api.github.com/users/jessicafernandes209/following{/other_user}","gists_url":"https://api.github.com/users/jessicafernandes209/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicafernandes209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicafernandes209/subscriptions","organizations_url":"https://api.github.com/users/jessicafernandes209/orgs","repos_url":"https://api.github.com/users/jessicafernandes209/repos","events_url":"https://api.github.com/users/jessicafernandes209/events{/privacy}","received_events_url":"https://api.github.com/users/jessicafernandes209/received_events","type":"User","site_admin":false},"body":"## Changes\r\n\r\n- Add `ACCESS_COARSE_LOCATION` permission;\r\n- Add `Marshmallow` permission notes.\r\n\r\nResolves: [#93](https://github.com/tq1/br-tqg-android/issues/93)","created_at":"2016-03-23T20:01:52Z","updated_at":"2016-03-23T20:36:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e4a237846a83f47f8bdbb2402bf6d76285bb51a","assignee":{"login":"jessicafernandes209","id":7630957,"avatar_url":"https://avatars.githubusercontent.com/u/7630957?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicafernandes209","html_url":"https://github.com/jessicafernandes209","followers_url":"https://api.github.com/users/jessicafernandes209/followers","following_url":"https://api.github.com/users/jessicafernandes209/following{/other_user}","gists_url":"https://api.github.com/users/jessicafernandes209/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicafernandes209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicafernandes209/subscriptions","organizations_url":"https://api.github.com/users/jessicafernandes209/orgs","repos_url":"https://api.github.com/users/jessicafernandes209/repos","events_url":"https://api.github.com/users/jessicafernandes209/events{/privacy}","received_events_url":"https://api.github.com/users/jessicafernandes209/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5/commits","review_comments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5/comments","review_comment_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/5/comments","statuses_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/statuses/77c8ce91637bb70b6d0f3b3e502172b6d7a77688","head":{"label":"tq1:chore/update-docs","ref":"chore/update-docs","sha":"77c8ce91637bb70b6d0f3b3e502172b6d7a77688","user":{"login":"tq1","id":2687124,"avatar_url":"https://avatars.githubusercontent.com/u/2687124?v=3","gravatar_id":"","url":"https://api.github.com/users/tq1","html_url":"https://github.com/tq1","followers_url":"https://api.github.com/users/tq1/followers","following_url":"https://api.github.com/users/tq1/following{/other_user}","gists_url":"https://api.github.com/users/tq1/gists{/gist_id}","starred_url":"https://api.github.com/users/tq1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tq1/subscriptions","organizations_url":"https://api.github.com/users/tq1/orgs","repos_url":"https://api.github.com/users/tq1/repos","events_url":"https://api.github.com/users/tq1/events{/privacy}","received_events_url":"https://api.github.com/users/tq1/received_events","type":"Organization","site_admin":false},"repo":{"id":45560445,"name":"tqg-sdk-docs","full_name":"tq1/tqg-sdk-docs","owner":{"login":"tq1","id":2687124,"avatar_url":"https://avatars.githubusercontent.com/u/2687124?v=3","gravatar_id":"","url":"https://api.github.com/users/tq1","html_url":"https://github.com/tq1","followers_url":"https://api.github.com/users/tq1/followers","following_url":"https://api.github.com/users/tq1/following{/other_user}","gists_url":"https://api.github.com/users/tq1/gists{/gist_id}","starred_url":"https://api.github.com/users/tq1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tq1/subscriptions","organizations_url":"https://api.github.com/users/tq1/orgs","repos_url":"https://api.github.com/users/tq1/repos","events_url":"https://api.github.com/users/tq1/events{/privacy}","received_events_url":"https://api.github.com/users/tq1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tq1/tqg-sdk-docs","description":"","fork":false,"url":"https://api.github.com/repos/tq1/tqg-sdk-docs","forks_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/forks","keys_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/teams","hooks_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/hooks","issue_events_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/events{/number}","events_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/events","assignees_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/assignees{/user}","branches_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/branches{/branch}","tags_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/tags","blobs_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/languages","stargazers_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/stargazers","contributors_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/contributors","subscribers_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/subscribers","subscription_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/subscription","commits_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/contents/{+path}","compare_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/merges","archive_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/downloads","issues_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues{/number}","pulls_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/labels{/name}","releases_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/releases{/id}","deployments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/deployments","created_at":"2015-11-04T18:55:52Z","updated_at":"2015-11-04T18:55:52Z","pushed_at":"2016-03-23T20:36:44Z","git_url":"git://github.com/tq1/tqg-sdk-docs.git","ssh_url":"git@github.com:tq1/tqg-sdk-docs.git","clone_url":"https://github.com/tq1/tqg-sdk-docs.git","svn_url":"https://github.com/tq1/tqg-sdk-docs","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tq1:master","ref":"master","sha":"85ca2588f723f8bcf77e0598d6fc72dbcd24a867","user":{"login":"tq1","id":2687124,"avatar_url":"https://avatars.githubusercontent.com/u/2687124?v=3","gravatar_id":"","url":"https://api.github.com/users/tq1","html_url":"https://github.com/tq1","followers_url":"https://api.github.com/users/tq1/followers","following_url":"https://api.github.com/users/tq1/following{/other_user}","gists_url":"https://api.github.com/users/tq1/gists{/gist_id}","starred_url":"https://api.github.com/users/tq1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tq1/subscriptions","organizations_url":"https://api.github.com/users/tq1/orgs","repos_url":"https://api.github.com/users/tq1/repos","events_url":"https://api.github.com/users/tq1/events{/privacy}","received_events_url":"https://api.github.com/users/tq1/received_events","type":"Organization","site_admin":false},"repo":{"id":45560445,"name":"tqg-sdk-docs","full_name":"tq1/tqg-sdk-docs","owner":{"login":"tq1","id":2687124,"avatar_url":"https://avatars.githubusercontent.com/u/2687124?v=3","gravatar_id":"","url":"https://api.github.com/users/tq1","html_url":"https://github.com/tq1","followers_url":"https://api.github.com/users/tq1/followers","following_url":"https://api.github.com/users/tq1/following{/other_user}","gists_url":"https://api.github.com/users/tq1/gists{/gist_id}","starred_url":"https://api.github.com/users/tq1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tq1/subscriptions","organizations_url":"https://api.github.com/users/tq1/orgs","repos_url":"https://api.github.com/users/tq1/repos","events_url":"https://api.github.com/users/tq1/events{/privacy}","received_events_url":"https://api.github.com/users/tq1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tq1/tqg-sdk-docs","description":"","fork":false,"url":"https://api.github.com/repos/tq1/tqg-sdk-docs","forks_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/forks","keys_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/teams","hooks_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/hooks","issue_events_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/events{/number}","events_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/events","assignees_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/assignees{/user}","branches_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/branches{/branch}","tags_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/tags","blobs_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/languages","stargazers_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/stargazers","contributors_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/contributors","subscribers_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/subscribers","subscription_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/subscription","commits_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/contents/{+path}","compare_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/merges","archive_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/downloads","issues_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues{/number}","pulls_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/labels{/name}","releases_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/releases{/id}","deployments_url":"https://api.github.com/repos/tq1/tqg-sdk-docs/deployments","created_at":"2015-11-04T18:55:52Z","updated_at":"2015-11-04T18:55:52Z","pushed_at":"2016-03-23T20:36:44Z","git_url":"git://github.com/tq1/tqg-sdk-docs.git","ssh_url":"git@github.com:tq1/tqg-sdk-docs.git","clone_url":"https://github.com/tq1/tqg-sdk-docs.git","svn_url":"https://github.com/tq1/tqg-sdk-docs","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5"},"html":{"href":"https://github.com/tq1/tqg-sdk-docs/pull/5"},"issue":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/5"},"comments":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/tq1/tqg-sdk-docs/statuses/77c8ce91637bb70b6d0f3b3e502172b6d7a77688"}}}}