NativeScript / NativeScript/firebase

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

Đang mở
#265 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
62
Fork
53
Merge trung bình
8 ngày 4 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện lỗi khởi tạo theo các bước trong issue, sau đó kiểm tra main.ts, app.module.ts và platforms/android/app/src/main/AndroidManifest.xml, bao gồm cả manifest do Gradle tạo ra. Kiểm tra đầu ra debug của Android để tìm lỗi đầu tiên. Được coi là hoàn tất khi ứng dụng khởi động và hiển thị form đầu tiên với cấu hình banner AdMob được bật.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, firebase, typescript
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.