Firebase push notification depends on above mention aar file.
AAR include code under two licenses GPLv2+CPE and the Apple Public Source License.
are copyleft licenses and are not approved for use in mobile applications.
OSS policy does not allow the use of such copyleft code in mobile Apps that are distributed through third party app stores (irrespective of whether they are from Google/Apple/Amazon/others).

How to solve this issue? Anyone else facing same issue.
Any help on this is highly appreciated