# Push notification plugin is not working android in Capacitor v2

**URL:** <https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458>\
**Category:** Capacitor\
**Created:** [February 14, 2022, 4:07pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458 "2022-02-14T16:07:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![starmastar1126](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/starmastar1126/32/146640_2.png) [@starmastar1126](https://forum.ionicframework.com/u/starmastar1126)\
**Post date:** [February 14, 2022, 4:07pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/1 "2022-02-14T16:07:52Z")

</div>

Hello, everyone.  
I am building an ionic project using capacitor.

I am working on an ionic capacitor v2 project. I am able to implement push notifications via firebase cloud messaging. is working as well in the ios version. but when calling Push notification.register() in the android version, the app crashed. I didn’t find the solution for this. Please help me.

I also try to use @capacitor-community/fcm. but this is not working too.

Please help me

> **[Screenshot](https://prnt.sc/26voj57)**
>
> Captured with Lightshot

> **[fcm.services.ts](https://wetransfer.com/downloads/37cbe46453f6e86a32ad5f96e6635a3f20220214154122/d21c67)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

Thanks.  
Silas.

---

<div class="post-metadata">

**Author:** ![MozMike](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@MozMike](https://forum.ionicframework.com/u/MozMike)\
**Post date:** [February 14, 2022, 4:19pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/2 "2022-02-14T16:19:48Z")

</div>

Please post the error you are receiving so we can investigate the cause of this further and try to offer assistance.

---

<div class="post-metadata">

**Author:** ![starmastar1126](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/starmastar1126/32/146640_2.png) [@starmastar1126](https://forum.ionicframework.com/u/starmastar1126)\
**Post date:** [February 14, 2022, 4:26pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/3 "2022-02-14T16:26:56Z")

</div>

2022-02-14 08:18:59.994 2012-4422/com.google.android.gms.persistent E/AuthPII: Message is Long live credential not available.  
wre: Long live credential not available.  
at ieq.a(:com.google.android.gms@214815023@21.48.15 (040800-414534850):8)  
at ieu.h(:com.google.android.gms@214815023@21.48.15 (040800-414534850):1)  
at idd.m(:com.google.android.gms@214815023@21.48.15 (040800-414534850):110)  
at eif.m(:com.google.android.gms@214815023@21.48.15 (040800-414534850):31)  
at eif.d(:com.google.android.gms@214815023@21.48.15 (040800-414534850):40)  
at eif.h(:com.google.android.gms@214815023@21.48.15 (040800-414534850):0)  
at eif.ek(:com.google.android.gms@214815023@21.48.15 (040800-414534850):6)  
at eet.onTransact(:com.google.android.gms@214815023@21.48.15 (040800-414534850):5)  
at android.os.Binder.transact(Binder.java:499)  
at elr.onTransact(:com.google.android.gms@214815023@21.48.15 (040800-414534850):2)  
at android.os.Binder.transact(Binder.java:499)  
at agjz.onTransact(:com.google.android.gms@214815023@21.48.15 (040800-414534850):17)  
at android.os.Binder.execTransact(Binder.java:565)

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [February 14, 2022, 4:46pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/4 "2022-02-14T16:46:02Z")

</div>

It kinda looks like from the error message you didn’t save out the `google-services.json` file - [reference](https://capacitorjs.com/docs/v2/guides/push-notifications-firebase#download-and-use-the-google-servicesjson-file).

---

<div class="post-metadata">

**Author:** ![starmastar1126](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/starmastar1126/32/146640_2.png) [@starmastar1126](https://forum.ionicframework.com/u/starmastar1126)\
**Post date:** [February 14, 2022, 5:24pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/5 "2022-02-14T17:24:50Z")

</div>

I saved google-services.json in android/app folder. but still same issue. I added sha-1, sha-256 in firebase project.

Should be firebase billing plans → Blaze? absolutely?

> **[Screenshot](https://prnt.sc/26vqeqs)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [February 22, 2022, 1:31pm UTC](https://forum.ionicframework.com/t/push-notification-plugin-is-not-working-android-in-capacitor-v2/220458/6 "2022-02-22T13:31:55Z")

</div>

Spark includes push notifications.
