{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/467","repository_url":"https://api.github.com/repos/firebase/quickstart-android","labels_url":"https://api.github.com/repos/firebase/quickstart-android/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-android/issues/467/comments","events_url":"https://api.github.com/repos/firebase/quickstart-android/issues/467/events","html_url":"https://github.com/firebase/quickstart-android/issues/467","id":313269490,"number":467,"title":"firebase_messaging_auto_init_enabled  flag does not work","user":{"login":"shubhamvashisht","id":16692282,"avatar_url":"https://avatars1.githubusercontent.com/u/16692282?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhamvashisht","html_url":"https://github.com/shubhamvashisht","followers_url":"https://api.github.com/users/shubhamvashisht/followers","following_url":"https://api.github.com/users/shubhamvashisht/following{/other_user}","gists_url":"https://api.github.com/users/shubhamvashisht/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhamvashisht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhamvashisht/subscriptions","organizations_url":"https://api.github.com/users/shubhamvashisht/orgs","repos_url":"https://api.github.com/users/shubhamvashisht/repos","events_url":"https://api.github.com/users/shubhamvashisht/events{/privacy}","received_events_url":"https://api.github.com/users/shubhamvashisht/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kroikie","id":2370200,"avatar_url":"https://avatars1.githubusercontent.com/u/2370200?v=4","gravatar_id":"","url":"https://api.github.com/users/kroikie","html_url":"https://github.com/kroikie","followers_url":"https://api.github.com/users/kroikie/followers","following_url":"https://api.github.com/users/kroikie/following{/other_user}","gists_url":"https://api.github.com/users/kroikie/gists{/gist_id}","starred_url":"https://api.github.com/users/kroikie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroikie/subscriptions","organizations_url":"https://api.github.com/users/kroikie/orgs","repos_url":"https://api.github.com/users/kroikie/repos","events_url":"https://api.github.com/users/kroikie/events{/privacy}","received_events_url":"https://api.github.com/users/kroikie/received_events","type":"User","site_admin":false},"assignees":[{"login":"kroikie","id":2370200,"avatar_url":"https://avatars1.githubusercontent.com/u/2370200?v=4","gravatar_id":"","url":"https://api.github.com/users/kroikie","html_url":"https://github.com/kroikie","followers_url":"https://api.github.com/users/kroikie/followers","following_url":"https://api.github.com/users/kroikie/following{/other_user}","gists_url":"https://api.github.com/users/kroikie/gists{/gist_id}","starred_url":"https://api.github.com/users/kroikie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroikie/subscriptions","organizations_url":"https://api.github.com/users/kroikie/orgs","repos_url":"https://api.github.com/users/kroikie/repos","events_url":"https://api.github.com/users/kroikie/events{/privacy}","received_events_url":"https://api.github.com/users/kroikie/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-11T10:43:44Z","updated_at":"2018-04-24T18:10:16Z","closed_at":"2018-04-24T18:10:16Z","author_association":"NONE","body":"Describe your environment\r\n\r\n  * Android device: Motorola G4 Plus\r\n  * Android OS version: & 7.0\r\n  * Google Play Services version: 12.5.21\r\n  * Firebase/Play Services SDK version: 12.0.1\r\n  \r\nDescribe the problem:\r\nAs mentioned in the docs to prevent auto initialisation of fcm tokens we may add ```firebase_messaging_auto_init_enabled``` flag to be ```false``` in ```AndroidManifest.xml```.\r\n\r\n```        <!--Disables the auto init of FCM-->\r\n        <meta-data android:name=\"firebase_messaging_auto_init_enabled\"\r\n            android:value=\"false\" /> \r\n```\r\n\r\n but this does not seem to work as token is still being generated automatically when the app starts.\r\n#### Steps to reproduce:\r\n\r\n  1. Add this to manifest.xml and token would still generate without even initialising the firebasemessaging again at runtime.\r\n "},"comment":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/comments/384028283","html_url":"https://github.com/firebase/quickstart-android/issues/467#issuecomment-384028283","issue_url":"https://api.github.com/repos/firebase/quickstart-android/issues/467","id":384028283,"user":{"login":"kroikie","id":2370200,"avatar_url":"https://avatars1.githubusercontent.com/u/2370200?v=4","gravatar_id":"","url":"https://api.github.com/users/kroikie","html_url":"https://github.com/kroikie","followers_url":"https://api.github.com/users/kroikie/followers","following_url":"https://api.github.com/users/kroikie/following{/other_user}","gists_url":"https://api.github.com/users/kroikie/gists{/gist_id}","starred_url":"https://api.github.com/users/kroikie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroikie/subscriptions","organizations_url":"https://api.github.com/users/kroikie/orgs","repos_url":"https://api.github.com/users/kroikie/repos","events_url":"https://api.github.com/users/kroikie/events{/privacy}","received_events_url":"https://api.github.com/users/kroikie/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T18:10:16Z","updated_at":"2018-04-24T18:10:16Z","author_association":"CONTRIBUTOR","body":"You also need to disable analytics which also uses Firebase Instance ID. So the required metadata would be:\r\n\r\n```\r\n<meta-data android:name=\"firebase_messaging_auto_init_enabled\" android:value=\"false\"/>\r\n<meta-data android:name=\"firebase_analytics_collection_enabled\" android:value=\"false\" />\r\n```\r\n\r\nNote however that `15.0.0` is required for `firebase_analytics_collection_enabled` field, it existed previously however a bug was fixed in `15.0.0`."}}
{"actor":{"display_login":"kroikie"}}