{"id":1643,"date":"2023-03-25T21:43:18","date_gmt":"2023-03-25T13:43:18","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1643"},"modified":"2023-04-23T21:59:34","modified_gmt":"2023-04-23T13:59:34","slug":"google-play-reject-solution","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/google-play-reject-solution\/","title":{"rendered":"Google Play\u4e0a\u67b6\u88ab\u62d2\u89e3\u51b3"},"content":{"rendered":"<h2>\u56e0\u4e0a\u4f20\u7528\u6237\u624b\u673a\u53f7\u89e6\u72af\u9690\u79c1\u653f\u7b56<\/h2>\n<h3>\u88ab\u62d2\u63cf\u8ff0<\/h3>\n<p><strong>APK REQUIRES VALID PRIVACY POLICY\u200b<\/strong><\/p>\n<p><!-- more --><\/p>\n<p>Your app is uploading users&#8217; \u200b<strong>phone number\u200b<\/strong> information to <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/api.appblog.cn\">https:\/\/api.appblog.cn<\/a> without posting a privacy policy in both the designated field in the Play Developer Console and from within the Play distributed app itself.<\/p>\n<p><strong>APK UPLOAD USER\u2019S DATA PRIOR TO USER INTERACTION<\/strong><\/p>\n<p>Your app is uploading users\u2019 \u200b<strong>phone number\u200b<\/strong> information to <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/api.appblog.cn\">https:\/\/api.appblog.cn<\/a> prior to user interaction (i.e. login).<\/p>\n<h3>\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u6ce8\u91ca\u5982\u4e0b\u83b7\u53d6\u624b\u673a\u53f7\u7684\u4f7f\u7528\u53ca\u7981\u6b62\u5c06\u624b\u673a\u53f7\u585e\u5165HTTP Header\u4e0a\u62a5<\/p>\n<pre><code class=\"language-java\">public static String getPhoneNum(Context context) {\n    String result = &quot;&quot;;\n    try {\n        if (ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_SMS) != PackageManager.PERMISSION_GRANTED &amp;&amp;\n                ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_NUMBERS) != PackageManager.PERMISSION_GRANTED &amp;&amp;\n                ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n            return &quot;&quot;;\n        }\n        TelephonyManager telephonyManager = (TelephonyManager) (context.getSystemService(Context.TELEPHONY_SERVICE));\n        result = telephonyManager.getLine1Number();\n        if (result == null)\n            result = &quot;&quot;;\n    } catch (Exception e) {\n        NLog.e(Constants.TAG, Log.getStackTraceString(e));\n    }\n    return result;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e0a\u4f20\u7528\u6237\u624b\u673a\u53f7\u89e6\u72af\u9690\u79c1\u653f\u7b56 \u88ab\u62d2\u63cf\u8ff0 APK REQUIRES VALID PRIVACY POLICY\u200b  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202],"tags":[408],"class_list":["post-1643","post","type-post","status-publish","format-standard","hentry","category-android-build","tag-google-play"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1643"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1643\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}