NativeScript / NativeScript/firebase

@nativescript/firebase-admob crashed without any error message. Application just disappear.

オープン
#265 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
62
フォーク
53
平均マージ
8日 4時間
マージ済み PR(30日)
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:

  1. Change Zone.js from V13 to V14 (with V13 application working perfectly), than install @nativescript/firebase-core and @nativescript/firebase-admob - application still working.
  2. Add google-services.json from new Firebase project I created specially to this project.
  3. 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 '
  4. Add Admob.init() to main.ts file (this is Android project)
  5. Add AdmobModule to app.module.ts
  6. Add frame with Banner to one of the form<BannerAd height="100%" width="100%" [unitId]='bannerAdUnit' (layoutChanged)="bannerLoaded($event)" row="1" >
  7. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。