NativeScript / NativeScript/firebase

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

Offen
#265 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
TypeScript
Sterne
62
Forks
53
Ø Merge
8 T. 4 Std.
Gemergte PRs (30 T.)
2

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Initialisierungsfehler mit den Schritten im Issue und untersuche anschließend main.ts, app.module.ts und platforms/android/app/src/main/AndroidManifest.xml einschließlich des von Gradle generierten Manifests. Überprüfe die Android-Debugausgabe auf den ersten Fehler. Erledigt ist es, wenn die App startet und ihr erstes Formular mit aktivierter AdMob-Banner-Konfiguration anzeigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, firebase, typescript
Bereich
mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.