NativeScript / NativeScript/firebase
@nativescript/firebase-admob crashed without any error message. Application just disappear.
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 62
- 派生
- 53
- 平均合并
- 8 天 4 小时
- 30 天内合并 PR
- 2
描述
Application compiling successfully, but disappear without any error message after I have add @nativescript/firebase-admob. Application disappear during initialization, there are no any forms of application showed.
What I done before application going to unworkable state:
- Change Zone.js from V13 to V14 (with V13 application working perfectly), than install @nativescript/firebase-core and @nativescript/firebase-admob - application still working.
- Add google-services.json from new Firebase project I created specially to this project.
- Follow documentation https://www.npmjs.com/package/@nativescript/firebase-admob#1-initialize-the-mobile-ads-sdk I have add line
to my platforms\android\app\src\main\AndroidManifest.xml (this is test value from https://developers.google.com/admob/android/test-ads#demo_ad_units )
Gradle process modified my AndroidManifest.xml description and deleted this line during command 'ns debug android --debug-brk ' - Add Admob.init() to main.ts file (this is Android project)
- Add AdmobModule to app.module.ts
- Add frame with Banner to one of the form<BannerAd height="100%" width="100%" [unitId]='bannerAdUnit' (layoutChanged)="bannerLoaded($event)" row="1" >
- And define variable with the same demo id "ca-app-pub-3940256099942544/9214589741" and event bannerLoaded(event){console.log(Banner: ${event})}
That's it. Now application became not workable. Now Even first form not showed in run-time. No any warning in compilation. No any error message in runtime. All done follow the package description https://www.npmjs.com/package/@nativescript/firebase-admob
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
按照 issue 中的步骤重现初始化失败,然后检查 main.ts、app.module.ts 和 platforms/android/app/src/main/AndroidManifest.xml,包括 Gradle 生成的 manifest。检查 Android 调试输出以找出第一个失败。完成标准是应用启动并显示启用了 AdMob 横幅配置的第一个表单。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, firebase, typescript
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100