Onesignal integration

Justice Obiaya 1 Reputation point
2020-11-29T03:58:53.173+00:00

I'm trying to setup the Onesignal integration but after I do it show's a subscriber but "no push token" so the app isn't receiving any alerts.

43463-image.png

I assumed the error was because I didn't setup Firebase on my project, so I followed the tutorial (https://learn.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/remote-notifications-with-fcm?tabs=windows), but when I upload the GoogleService.Json file the app will no longer build and throws the below error:

**"NU1605: Detected package downgrade: Xamarin.Google.Android.DataTransport.TransportBackendCct from 2.2.2 to 2.2.1. Reference the package directly from the project to select a different version.
ASIFAC20_App -> Xamarin.Firebase.Messaging 120.1.7 -> Xamarin.Firebase.Datatransport 117.0.5 -> Xamarin.Google.Android.DataTransport.TransportBackendCct (>= 2.2.2)
ASIFAC20_App -> Xamarin.Firebase.Messaging 120.1.7 -> Xamarin.Google.Android.DataTransport.TransportBackendCct (>= 2.2.1)
NU1605: Detected package downgrade: Xamarin.Google.Android.DataTransport.TransportRuntime from 2.2.2 to 2.2.1. Reference the package directly from the project to select a different version.
ASIFAC20_App -> Xamarin.Firebase.Messaging 120.1.7 -> Xamarin.Firebase.Datatransport 117.0.5 -> Xamarin.Google.Android.DataTransport.TransportRuntime (>= 2.2.2)
ASIFAC20_App -> Xamarin.Firebase.Messaging 120.1.7 -> Xamarin.Google.Android.DataTransport.TransportRuntime (>= 2.2.1)
1>------ Build started: Project: ASIFAC20_App, Configuration: Debug Any CPU ------
1>C:\Users\Justice\OneDrive\Documents\Visual Studio Apps\Android_App_Test4\Properties\AndroidManifest.xml : warning XA0101: @(Content) build action is not supported
1>C:\Users\Justice.nuget\packages\xamarin.build.download\0.10.0\buildTransitive\Xamarin.Build.Download.targets(88,3): warning XBD100: ItemGroup XamarinBuildDownloadRestoreAssemblyAar is no longer supported. If your build is failing, revert to an older Xamarin.Build.Download version, or migrate your packages to use the new XamarinBuildDownloadAndroidAarLibrary ItemGroup. If your build is succeeding it is safe to ignore this warning.
1>C:\Users\Justice\OneDrive\Documents\Visual Studio Apps\Android_App_Test4\obj\Debug\90\googsvcsjson\values\goog_svcs_json.xml : error APT2126: file not found.

==========
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

==========
Deploy: 0 succeeded, 0 failed, 0 skipped =========="**

Can anyone help?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,992 questions
0 comments No comments
{count} votes