admob and vanilla js for Android
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, javascript, typescript
- 领域
- mobile-dev
调研方向
首先,使用 issue 中显示的 app.js、AndroidManifest.xml 路径以及 @nativescript/google-mobile-ads 包版本,通过 ns run android 重现该设置。捕获缺失的构建或运行时错误,并将测试应用的配置与插件文档中的 Android 设置进行比较。当测试应用成功初始化 MobileAds 并显示预期的 AdMob 行为时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I've been trying to add ADMOB to a test app for several days without success. Steps I've taken:
-
Add "@nativescript/google-mobile-ads": "^5.0.3"
-
In AndroidManifest.xml (./App_Resources/Android/src/main) add
<application..> ...
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />
...
</application>
- in the app.js add
import { Application } from '@nativescript/core';
import { MobileAds } from '@nativescript/google-mobile-ads';
console.log("🔥 Inicializando Google Mobile Ads...");
MobileAds.init();
Application.run({ moduleName: 'main-page' });
Then "ns run android"
So far, I haven't been able to get it working.
Other data:
ns --version 8.9.2
windows 10 and vscode
Mi repo https://github.com/germandeburzaco/testMonetizarApp
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/plugins 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
NativeScript/plugins#680 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
NativeScript/plugins#671 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
NativeScript/plugins#640 ·
-
难度 4/5 3-5 天 新手友好度 45/100
NativeScript/plugins#668 ·
-
难度 4/5 3-5 天 新手友好度 45/100
NativeScript/plugins#665 · 1 条评论 ·
查看 NativeScript/plugins 的全部 Issue
相似的 Issue
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
OpenNSW/nsw-srilanka#497 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
难度 1/5 1 小时以内 新手友好度 88/100
digidem/comapeo-cloud-app#403 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 78/100