{"id":1238,"date":"2023-03-18T09:29:15","date_gmt":"2023-03-18T01:29:15","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1238"},"modified":"2023-04-29T09:33:08","modified_gmt":"2023-04-29T01:33:08","slug":"atlas-load-remote-bundle-design-for-facebook-login","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/atlas-load-remote-bundle-design-for-facebook-login\/","title":{"rendered":"Atlas\u52a0\u8f7dFacebook\u767b\u5f55\u7684\u8fdc\u7a0bBundle\u8bbe\u8ba1"},"content":{"rendered":"<h2>RemoteFragment<\/h2>\n<p>\u4f7f\u7528RemoteFragment\u65b9\u5f0f\uff0c\u5728onActivityResult\u56de\u8c03\u65f6\u62a5\u9519<\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-java\">@Override\npublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n    NLog.i(TAG, &quot;FacebookLoginFragment.onActivityResult&quot;);\n    super.onActivityResult(requestCode, resultCode, data);\n    mCallbancManager.onActivityResult(requestCode, resultCode, data);\n}<\/code><\/pre>\n<pre><code>Class not found when unmarshalling: com.facebook.login.LoginClient$Result\n    java.lang.ClassNotFoundException: com.facebook.login.LoginClient$Result\n\nCaused by: java.lang.ClassNotFoundException: Can&#039;t find class com.facebook.login.LoginClient$Result in BundleClassLoader: com.lianlianpay.europa_sign, dependencies=[], thread=Thread[main,5,main]<\/code><\/pre>\n<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developers.facebook.com\/support\/bugs\/1621984714705591\">https:\/\/developers.facebook.com\/support\/bugs\/1621984714705591<\/a><br \/>\n\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developers.facebook.com\/support\/bugs\/1721610004736672\">https:\/\/developers.facebook.com\/support\/bugs\/1721610004736672<\/a><\/p>\n<p>\u5927\u6982\u539f\u56e0\u662fcom.lianlianpay.europa_sign\u63d2\u4ef6\u5728\u56de\u8c03onActivityResult\u65f6\u6ca1\u6709Facebook\u7684\u4f9d\u8d56\uff0c\u56e0\u6b64\u627e\u4e0d\u5230com.facebook.login.LoginClient$Result<\/p>\n<h2>startActivity<\/h2>\n<pre><code class=\"language-java\">AppBundleHelper.bundleExplicitly(mActivity, &quot;facebook&quot;, &quot;me.yezhou.lib&quot;, new AtlasBundleLoadedListener() {\n        @Override\n        public void onBundleLoaded() {\n            AtlasDelegateHelper.startBundleActivityForResult(mActivity, ActivityConfig.ACTIVITY_SOCIAL_FACEBOOK_LOGIN, IntentCode.REQUEST_FACEBOOK_LOGIN.ordinal());\n            mActivity.overridePendingTransition(R.anim.push_bottom_in, R.anim.push_bottom_out);\n        }\n    });<\/code><\/pre>\n<blockquote>\n<p>\u6ce8\u610f\u8bbe\u7f6eFacebookLoginActivity\u7684\u80cc\u666f\u4e3a\u900f\u660e\uff0c\u8ba9\u7528\u6237\u770b\u4e0d\u51fa\u6709\u9875\u9762\u8df3\u8f6c\u7684\u75d5\u8ff9<\/p>\n<\/blockquote>\n<pre><code class=\"language-xml\">&lt;style name=&quot;Transparent&quot; parent=&quot;AppTheme&quot;&gt;\n    &lt;item name=&quot;android:windowBackground&quot;&gt;@color\/transparent&lt;\/item&gt;\n    &lt;item name=&quot;android:windowNoTitle&quot;&gt;true&lt;\/item&gt;\n    &lt;item name=&quot;android:windowIsTranslucent&quot;&gt;true&lt;\/item&gt;\n&lt;\/style&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>RemoteFragment \u4f7f\u7528RemoteFragment\u65b9\u5f0f\uff0c\u5728onActivityResult\u56de\u8c03\u65f6\u62a5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[275],"tags":[238],"class_list":["post-1238","post","type-post","status-publish","format-standard","hentry","category-atlas","tag-facebook"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1238","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=1238"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}