@nativescript/firebase-admob crashed without any error message. Application just disappear.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- android, firebase, typescript
- Bereich
- mobile
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.
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:
- 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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 62
- Forks
- 53
- Ø Merge
- 8 T. 4 Std.
- Gemergte PRs (30 T.)
- 2
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus NativeScript/firebase
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
NativeScript/firebase#292 ·
-
Can't install package Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
NativeScript/firebase#289 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
NativeScript/firebase#288 · 4 Reaktionen ·
-
bug ios
NativeScript/firebase#287 · 1 zugewiesene Person ·
-
Uh-Oh Shazam Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
NativeScript/firebase#286 ·
Alle Issues in NativeScript/firebase
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
fil-donadoni/tolaria#4409 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
corsairdev/corsair#1764 ·