NativeScript / NativeScript/firebase
@nativescript/firebase-admob crashed without any error message. Application just disappear.
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 62
- Forks
- 53
- Merge medio
- 8 d 4 h
- PR fusionados (30 d)
- 2
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el fallo de inicialización siguiendo los pasos del issue y, después, inspecciona main.ts, app.module.ts y platforms/android/app/src/main/AndroidManifest.xml, incluido el manifest generado por Gradle. Comprueba la salida de depuración de Android para detectar el primer fallo. Se considera terminado cuando la aplicación se inicia y muestra su primer formulario con la configuración del banner de AdMob habilitada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, firebase, typescript
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100