diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue index 37ef0dafce5e5fe66676790904db719d36dc9675..21b731d95d4f2129b4b152faa8cbab38f352c73d 100644 --- a/pages/advance/advance.vue +++ b/pages/advance/advance.vue @@ -152,7 +152,7 @@ icon:"none", title: '读取成功,注意查看控制台输出' }); - console.log("meta节点['DCLOUD_READ_PHONE_STATE'] 配置的值为:" + ret); + console.log(ret); }, testLifecyle: function() { uni.navigateTo({ diff --git a/uni_modules/uts-advance/utssdk/app-android/AndroidManifest.xml b/uni_modules/uts-advance/utssdk/app-android/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..369bbe3f115a364ebee8b78872f803020d2b8219 --- /dev/null +++ b/uni_modules/uts-advance/utssdk/app-android/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index 5cb7d8901c30cbd5f0f5a9e65114e110c9e76473..f497143de4b73bb3462f22045a0eb6dc4b958f7e 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -21,7 +21,7 @@ import Toast from 'android.widget.Toast'; import AlertDialog from 'android.app.AlertDialog'; import DialogInterface from 'android.content.DialogInterface'; import EditText from 'android.widget.EditText'; - +import R from 'io.dcloud.uni_modules.uts_advance.R'; import { onAppActivityDestroy, @@ -228,9 +228,15 @@ export function getMetaConfig(): string { } let adId = metaData.getString("DCLOUD_READ_PHONE_STATE") if (adId == null) { - return ""; + // 没有数据,说明是自定义基座,则读取自定义基座的配置 + let customMetaId = metaData.getString("UTS_CUSTOM_LAUNCHER_META") + if(customMetaId == null){ + return "" + } + return "自定义基座[UTS_CUSTOM_LAUNCHER_META]:" + customMetaId; } - return adId; + // 标准基座 + return "标准基座[DCLOUD_READ_PHONE_STATE]:" + adId; }