GithubHelp home page GithubHelp logo

googleplayservicescomponents's Introduction

Google Play Services / Firebase / ML Kit for .NET for Android

Microsoft creates and maintains .NET for Android bindings for many of Google's Google Play Services, Firebase, and ML Kit libraries.

Support for Xamarin.Android ended on May 1st, 2024. New versions of these packages will not support Xamarin.Android.

What is Google Play Services / Firebase / ML Kit

Google Play Services, Firebase, and ML Kit (GPS/FB/MLKit) are a set of libraries that allow Android apps to take advantage of Google APIs and services.

Binding Policies

  • This repository binds over 200 GPS/FB/MLKit libraries that are published to NuGet.org. The full package list can be found in config.json.
  • GPS/FB/MLKit Java artifacts and some dependencies come from Google's Maven Respository.
  • Additional dependencies come from Maven/Sonatype Central.
  • Google's release notes for GPS/FB/MLKit libraries are available here.
  • The major/minor/patch version numbers are the GPS/FB/MLKit library version prefixed with a 1. For example, the NuGet Xamarin.GooglePlayServices.Maps 117.0.1 binds version 17.0.1 of the GPS library com.google.android.gms:play-services-maps.
    • The revision version number is used when a new NuGet needs to be built but the GPS/FB/MLKit library has not been updated.
  • We endeavor to release updated NuGets within a month after new GPS/FB/MLKit releases, however large changes occasionally require more time.
  • In general, we do not bind pre-release libraries. As their API is not stable yet, it results in too much rework.

Details

Full list of maven artifact to NuGet mappings:

./docs/artifact-list.md

Full list of maven artifact with versions to NuGet mappings with versions:

./docs/artifact-list-with-versions.md

License

The license for this repository is specified in LICENSE.md.

Each package published from this repository generally contains third-party code (ie: .jar/.aar) that is governed by its own license. Per-package license information is available in cgmanifest.json.

The externals build task downloads some external dependencies from Google which are licensed under and subject to the terms of Android Software Development Kit License Agreement

Building

Instructions for building this repository are specified in BUILDING.md.

Contribution Guidelines

The Contribution Guidelines for this repository are listed in CONTRIBUTING.md.

.NET Foundation

This project is part of the .NET Foundation.

googleplayservicescomponents's People

Contributors

aandino-dev avatar alexsorokoletov avatar amay077 avatar aritchie avatar bholmes avatar dellis1972 avatar github-actions[bot] avatar iguins avatar jonathanpeppers avatar jonpryor avatar jpobst avatar kzu avatar mattleibow avatar moljac avatar pjcollins avatar redth avatar sotoighost avatar tipa avatar wcoder avatar yamachu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

googleplayservicescomponents's Issues

Firebase Messaging Problems

Xamarin.Android 6.1
Compiling using Android 6.0 with Target Android version as 6.0 also
Windows 10, Visual Studio Community Edition 2015
Google Play Services Version 9.2.56
Debugging using Samsung Galaxy S7

Issue:
Cannot get Firebase Messaging to work. Have tried my own project as well as directly from the sample using the latest commit for v9.2.0 Branch.

Steps to reproduce are just using the committed version of the FirebaseMessagingQuickstart sample project and replacing the google-services.json with my own test project json. I have added the Debug SHA1 in the Firebase Console and have tried almost every possible way to send a test notification. I also changed the package name to match my package name in the Firebase Console.

I understand it's still early but I have tried various things for almost a month. I have been able to use the Firebase Auth and Database just fine. One thing I notice is that the breakpoints for the IID and Messaging Service activities do not get hit. I'm not sure if this has been tested yet by anyone else or if I'm just not getting it right. Thanks for all the hard work.

Missing PlacePicker.IntentBuilder in v57 beta1

Xamarin.Android Version (eg: 6.0):

Version: 7.4.5.1 (Visual Studio Community)

Operating System & Version (eg: Mac OSX 10.11):

Mac OS X 10.12.6

Google Play Services Version (eg: 8.4.0):

11.04

Describe your Issue:

Missing PlacePicker.IntentBuilder

Steps to Reproduce (with link to sample solution if possible):

Try to create a new instance of PlacePicker.IntentBuilder

Include any relevant Exception Stack traces, build logs, adb logs:

The "CheckDuplicateJavaLibraries" task failed unexpectedly

Xamarin.Android Version (6.0):

Operating System & Version (Windows 10):

Google Play Services Version ( 9.4.0):

Describe your Issue:

I've been trying to build this branch and was following your build instructions. I first downloaded the zip for version 9.4 and unzipped it. I then ran the following in powershell:
.\build.ps1 -Target externals -Verbosity diagnostic
I next opened up the GooglePlayServices.sln in VS and tried to build. Everything built fine with the exception of below that was thrown. Is this something I need to address or can I ignore?

Include any relevant Exception Stack traces, build logs, adb logs:

Severity Code Description Project File Line Suppression State
Error The "CheckDuplicateJavaLibraries" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find file '\AppData\Local\Android\android-sdk\extras\android\support\multidex\library\libs\android-support-multidex.jar'.
File name: '\AppData\Local\Android\android-sdk\extras\android\support\multidex\library\libs\android-support-multidex.jar'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.get_Length()
at Xamarin.Android.Tasks.MonoAndroidHelper.SizeAndContentFileComparer.GetHashCode(FileInfo obj)
at System.Linq.Set1.InternalGetHashCode(TElement value) at System.Linq.Set1.Find(TElement value, Boolean add)
at System.Linq.Enumerable.d__631.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Xamarin.Android.Tasks.MonoAndroidHelper.DistinctFilesByContent(IEnumerable1 filePaths)
at Xamarin.Android.Tasks.CheckDuplicateJavaLibraries.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() GpsBuildAll

Xamarin Forms: Firebase Messages are only randomly received

Xamarin.Android Version (eg: 6.0):

6

Firebase.Messaging 32.940-beta3 (last one that can be installed together with Forms)

Describe your Issue:

I have the problem that after some deploys my App does receive Notifications without problems, other completely don't.

I have no clue where to start searching. It seems to be working only when the last version of the App is uninstalled and the App is in release mode, But even that is not for certain.

Any help where to start searching would be great.

I'm really frustrated.

Thomas

Doubts

Guys, I just found this great initiative and start to ask myself, this project is alive, moreover there is any tutorial/help/link/blog/post/twiit about how to use it?

Thanks a lot in advance.

error: package com.google.firebase.messaging does not exist extends com.google.firebase.messaging.FirebaseMessagingService

Xamarin.Android Version

Android Version 6.0

Operating System & Version

Mac 10.12.6

Google Play Services Version

8.4.0

Describe your Issue:

Using Xamarin.Firebase and Xamarin.GooglePlayServices
Build issue stating:

error: package com.google.firebase.messaging does not exist extends com.google.firebase.messaging.FirebaseMessagingService

though I have the packages imported correctly and no issues with the referencing to Firebase.Messaging. But during build it throws an exception.
Able to receive the Token using FirebaseInstanceIdService after commenting out the FirebaseMessagingService class.

when checked the obj/Debug/library_projects/Xamarin.Firebase.Messaging/library_project_imports folder - it is empty unlike the other references.

Unable install Xamarin Firebase - Common 32.961.0 to xamarin.forms solution

Xamarin.Android Version (eg: 6.0):

Xamarin 6.1.3, MonoAndroid,Version=v6.0

Operating System & Version (eg: Mac OSX 10.11):

Windows 10

Describe your Issue:

Unable to add Xamarin Firebase - Common NuGet to my xamarin.forms solution

Steps to Reproduce (with link to sample solution if possible):

Create a new xamarin.forms solution and try to add firebase package

Include any relevant Exception Stack traces, build logs, adb logs:

Attempting to gather dependency information for package 'Xamarin.Firebase.Common.32.961.0' with respect to project 'Fire.Droid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'Xamarin.Firebase.Common.32.961.0' with DependencyBehavior 'Lowest'
Unable to find a version of 'Xamarin.Android.Support.v4' that is compatible with 'Xamarin.Android.Support.Animated.Vector.Drawable 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Android.Support.Design 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Android.Support.v7.AppCompat 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Android.Support.v7.MediaRouter 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Android.Support.v7.RecyclerView 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Android.Support.Vector.Drawable 23.3.0 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.Forms 2.3.3.180 constraint: Xamarin.Android.Support.v4 (= 23.3.0)', 'Xamarin.GooglePlayServices.Basement 32.961.0 constraint: Xamarin.Android.Support.v4 (>= 24.2.1)'.

ProcessGoogleServicesJson msbuild task not executed and do not generate resources

Xamarin.Android Version (eg: 6.0):

7.3.1 (latest stable) with VS for Mac

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.12

Google Play Services Version (eg: 8.4.0):

Xamarin.GooglePlayServices.Basement 42.1021.1

Describe your Issue:

The MSBuild target ProcessGoogleServicesJson defined in the file GooglePlayServicesComponents/basement/buildtasks/Xamarin.GooglePlayServices.Basement.targets is not generating resource file when needed. eg: Resource like gcm_defaultSenderId (needed for Firebase to initialize successfully) are not added in the Resource.Designer.cs file.

Steps to Reproduce (with link to sample solution if possible):

  • Create a blank android project
  • Add package Xamarin.GooglePlayServices.Basement
  • Add a google-services.json from Firebase and set its build target to GoogleServicesJson
  • In MainActivity, add GetString(Resource.Strings.gcm_defaultSenderId);
  • Build the project, everything compile fine
  • Build the project once more, the resource is missing

Include any relevant Exception Stack traces, build logs, adb logs:

On the second build the file goog_svcs_json.xml in obj/Debug/res/values has been removed. but the stamp file in ProcessGoogleServicesJson.stamp in obj/Debug is still there so the msbuild target is not executed again against the google-services.json

Removing Inputs / Outputs parameters make the task to execute each time with no cache based on last modified date on file.

Unable to build solution OS X

Operating System & Version (eg: Mac OSX 10.11):

OSX 10.13.1
VS for Mac 7.3

Describe your Issue:

After cloning the repository I am unable to build the projects. Using the bootstrapper script I receive an error:

Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Could not find any assemblies compatible with .NETFramework,Version=v4.5.
Error: Failed to install addin 'Cake.Json'.

After trying a few different versions it seems that I can install Cake with a newer nuget version. I changed the dependency in both package files to 0.23.0 and it progresses. But now I receive:

All packages listed in <removed>/GooglePlayServicesComponents-master/tools/packages.config are already installed.
Analyzing build script...
Processing build script...
Installing tools...
Error: Value cannot be null.
Parameter name: path

My guess is that the nuget package introduced some breaking changes compared to 17, I also tried calling cake.exe with only the cake script and the error persists

ActivityNotFoundException: com.google.android.gms.auth.api.signin.internal.SignInHubActivity

Xamarin.Android Version (eg: 6.0):

Version: 7.1.0.41

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.12.3

Google Play Services Version (eg: 8.4.0):

Xamarin.GooglePlayServices.Auth 42.1001.0

Describe your Issue:

Unable to find the GoogleSignInHubActivity when using following code:

gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DefaultSignIn)
                                                      .RequestIdToken("--mytoken--")
                                                      .Build();
mGoogleApiClient = new GoogleApiClient.Builder(this)		
			              .EnableAutoManage(this, (obj) =>  { Toast.MakeText(this, "Failed login", ToastLength.Long); }) 
                                      .AddApi(Auth.GOOGLE_SIGN_IN_API)
                                      .Build();

Intent signInIntent = Auth.GoogleSignInApi.GetSignInIntent(mGoogleApiClient);
StartActivityForResult(signInIntent, RC_SIGN_IN);

Steps to Reproduce (with link to sample solution if possible):

I'm trying to authenticate to azure mobile services with google login. The current state de SDK for azure mobile services does not allow to directly use it to perform google authentication. I have to pass an access token to it to be able to authenticate. (recently google decided not to allow login trough in app webviews.)

So I've setup a google oauth client in the google console, Added the Xamarin google play services auth packages for xamarin. I've downloaded the google-services.json file and set the build action to GoogleServicesJson, Added the internet permission to my manifesta nd the googleSignIn button to my axml. and now I'm getting this error.

Include any relevant Exception Stack traces, build logs, adb logs:

Unable to find explicit activity class {be.appmigo.kwashy/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}; have you declared this activity in your AndroidManifest.xml?

Is this stuff TagManager v4 compatible?

Xamarin.Android Version (eg: 6.0):

4.6.0.295

Operating System & Version (eg: Mac OSX 10.11):

Win 10 Pro

Google Play Services Version (eg: 8.4.0):

What version? SDK is rev 43, otherwise latest NuGet package

Describe your Issue:

Where is TagManager or TagManagerClass? Can't find it. I'm looking to be TagManager v4 compatible.

Steps to Reproduce (with link to sample solution if possible):

Try to get TagManager.GetInstance(context). TagManager nor TagManagerClass is there.

Include any relevant Exception Stack traces, build logs, adb logs:

Crash with InstanceID.GetInstance when using support library 24.2.1

Xamarin.Android Version (eg: 6.0):

Latest stable

Operating System & Version (eg: Mac OSX 10.11):

Windows

Google Play Services Version (eg: 8.4.0):

Nuget says 29.0.0.2

Describe your Issue:

InstanceID.GetInstance throws an exception when calling InstanceID.GetInstance:

The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.ara.eugsclient-1/base.apk)

This is because the latest version of google play services that Xamarin provides is much older and has an incompatibility with their latest support library release of 24.2.1.

Steps to Reproduce (with link to sample solution if possible):

Call InstanceID.GetInstance

Include any relevant Exception Stack traces, build logs, adb logs:

http://stackoverflow.com/questions/37337393/android-google-cloud-messaging-gcm-token-generation-crash-after-firebase-relat

google cloud storage stopped working on android.

Xamarin.Android Version (eg: 6.0):

6.0.1

Operating System & Version (eg: Mac OSX 10.11):

Visual Studio Community 2017 for Mac
Version 7.1 (build 1297)
Installation UUID: 1c0dc94c-64de-48d1-95ea-a0568d59bc80
Runtime:
Mono 5.2.0.215 (d15-3/da80840) (64-bit)
GTK+ 2.24.23 (Raleigh theme)

Package version: 502000215

NuGet
Version: 4.3.0.2418

.NET Core
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler
Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Xamarin.Android
Version: 7.4.0.21 (Visual Studio Community)
Android SDK: /Volumes/DataDrive/android/sdk
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)

SDK Tools Version:
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Apple Developer Tools
Xcode 8.3.3 (12175.1)
Build 8E3004b

Xamarin.iOS
Version: 10.12.0.20 (Visual Studio Community)
Hash: 80b8487d
Branch: d15-3
Build date: 2017-08-18 16:07:26-0400

Xamarin.Mac
Version: 3.6.0.19 (Visual Studio Community)

Xamarin Inspector
Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

Build Information
Release ID: 701001297
Git revision: 9c5299666538b2f8baf501418a5c064d784d64da
Build date: 2017-08-07 11:29:35-04
Xamarin addins: 3bb0c32a14f1b7e368bf5ac53a84c3581c019391
Build lane: monodevelop-lion-d15-3

Operating System
Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
Fri Apr 14 16:21:16 PDT 2017
root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

Google Play Services Version (eg: 8.4.0):

Xamarin.Firebase.Storage.Common.57.1104.0-beta1
Xamarin.GooglePlayServices.Tasks.57.1104.0-beta1
Xamarin.Firebase.Common.57.1104.0-beta1
Xamarin.Firebase.Common.57.1104.0-beta1

Describe your Issue:

Cant get Xamarin,firebase.storage working again. I had it working on both android and ios for some time a few weeks, it was uploading files. Them bam it just stopped working on android only even builds that were working just stopped. iOS continues to work.

Have recreated the google-services.json file many times, its set to GoogleServices.json type in build, it matches the bundle id. But when i call FirebaseApp.InitializeApp(Application.Context) in activity the logs displays :-

[FirebaseInitProvider] FirebaseApp initialization unsuccessful

Am trying to build with your sample code, but cant get it build at all, but looking at code it doesn't even call FirebaseApp.InitializeApp(Application.Context) , but if i dont call it whenever i use static function to get instance it says you must call FirebaseApp.InitializeApp(Application.Context). Is the sample code really out of date.

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

Awareness Api not compatible with Xamarin Forms.

Visual Studio Version:

14.0.25431.01 Update 3

Xamarin.Android Version:

7.0.2.42

Xamarin Forms Version:

Tried 2.3.3.193, 2.3.4.192-pre2 & 2.3.3.180.

Operating System & Version:

Win 10 Pro ver. 1607 build 14393.693

Google Play Services Version:

Xamarin.GooglePlayServices.Awareness ver. 42.1001.0

Describe your Issue:

Xamarin.GooglePlayServices.Awareness doesn't work with Xamarin Forms.

Steps to Reproduce:

Create a blank Xamarin Forms project & use Xamarin.GooglePlayServices.Awareness as described in Xamarin's blog post.

Add Xamarin.GooglePlayServices.Base dependency to Firebase (Messaging) packages.

Xamarin.Android Version (eg: 6.0):

7.3.1.2

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 (Version 1703 - Build 15063.483)

Google Play Services Version (eg: 8.4.0):

10.2.1

Describe your Issue:

The Firebase (and Xamarin) documentation states that we should check for Google Play services APK using Android.Gsm.Common.GoogleApiAvailability, but this API is not available under the currently installed depdendencies for Xamarin.Firebase.Messaging.

This, combined with the "do not install directly" description message on the Xamarin.GooglePlayServices.* packages, makes the whole thing a bit confusing, and nonsensical.

Suggest that Xamarin.GooglePlayServices.Base be included as a dependency when consuming Xamarin.Firebase.* packages/API's.

Steps to Reproduce (with link to sample solution if possible):

Add Xamarin.Firebase.Messaging to your solution / Android project.

Try to follow the guide linked below, more specifically, the part where you're asked/recommended to implement the suggested "IsPlayServicesAvailable ()" method:

https://developer.xamarin.com/guides/android/application_fundamentals/notifications/remote-notifications-with-fcm/

The following line will return "The name "GoogleApiAvailability" does not exist in the current context, even after including "Android.Gms.Common".

int resultCode = GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable(this);

Include any relevant Exception Stack traces, build logs, adb logs:

Xamarin.Firebase.Database.Connection nuget not adding to project

Xamarin.Android Version (eg: 6.0): 7.0.2.37, Xamarin Studio

Operating System & Version (eg: Mac OSX 10.11): WIndows 10

Google Play Services Version (eg: 8.4.0): Play services is not getting due to same error

Describe your Issue: Any google play service is getting added to project.

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

Could not install package 'Xamarin.Firebase.Database.Connection 42.1001.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Does this work with Firebase in an offline mode?

Xamarin.Android Version (eg: 6.0):

Operating System & Version (eg: Mac OSX 10.11):

Google Play Services Version (eg: 8.4.0):

Describe your Issue:

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

Firebase support for iOS

Hi,

First of all good work to wrap Firebase SDK in the branch (v9.0.1).

My question is - Will there be corresponding effort for Xamarin iOS ?

Regards & thanks
Kapil

Firebase Messaging not working with Xamarin.Forms

Xamarin.Android

Version 6.0

Operating System & Version :

Mac OSX 10.10.5

Describe your Issue:

installed "Xamarin Firebase - Messaging 32.4.0-beta2" in my droid project. I get the token, but my services are never called. I want to use it for Push notification.

Here is my MainActivity:

   protected override void OnCreate (Bundle bundle)
   {
    base.OnCreate (bundle);

    global::Xamarin.Forms.Forms.Init (this, bundle);

    var options = new FirebaseOptions.Builder()
        .SetApplicationId(ApplicationId)
        .SetApiKey(ApiKey)
        //.SetDatabaseUrl("Firebase-Database-Url")
        .SetGcmSenderId(GcmSenderId)
        .Build();

    var firebaseApp = FirebaseApp.InitializeApp(this, options);
    // Generate token in background thread
    Task.Run (() => {
        var instanceID = FirebaseInstanceId.Instance;
        instanceID.DeleteInstanceId ();
        var iid1 = instanceID.Token;
        var iid2 = instanceID.GetToken (GcmSenderId, Firebase.Messaging.FirebaseMessaging.InstanceIdScope);
        Console.WriteLine( "Iid1: {0}, iid2: {1}", iid1, iid2);
    });

    LoadApplication (new App ());

}

Services:

[Service]
[IntentFilter (new [] { "com.google.firebase.INSTANCE_ID_EVENT" })]
public class MyFirebaseIIDService : FirebaseInstanceIdService
{
const string TAG = "MyFirebaseIIDService";

public override void OnTokenRefresh ()
{
    // Get updated InstanceID token.
    var refreshedToken = FirebaseInstanceId.Instance.Token;
    Android.Util.Log.Debug (TAG, "Refreshed token: " + refreshedToken);

    // TODO: Implement this method to send any registration to your app's servers.
    SendRegistrationToServer (refreshedToken);
}
// [END refresh_token]

void SendRegistrationToServer (string token)
{
    // Add custom implementation, as needed.
}
}

[Service]
[IntentFilter (new [] { "com.google.firebase.MESSAGING_EVENT" })]
public class MyFirebaseMessagingService : FirebaseMessagingService
{
const string TAG = "MyFirebaseMsgService";

public override void OnMessageReceived (RemoteMessage message)
{
    Android.Util.Log.Debug (TAG, "From: " + message.From);
    Android.Util.Log.Debug (TAG, "Notification Message Body: " + message.GetNotification ().Body);
}

void SendNotification (string messageBody)
{
    var intent = new Intent (this, typeof (MainActivity));
    intent.AddFlags (ActivityFlags.ClearTop);
    var pendingIntent = PendingIntent.GetActivity (this, 0 /* Request code */, intent, PendingIntentFlags.OneShot);

    var defaultSoundUri = RingtoneManager.GetDefaultUri (RingtoneType.Notification);
    var notificationBuilder = new NotificationCompat.Builder (this)
        .SetContentTitle ("FCM Message")
        .SetContentText (messageBody)
        .SetAutoCancel (true)
        .SetSound (defaultSoundUri)
        .SetContentIntent (pendingIntent);

    var notificationManager = NotificationManager.FromContext (this);

    notificationManager.Notify (0, notificationBuilder.Build ());
}
}

Any guidance / thoughts on this?
Thanks

Solution fails to open after build script

Xamarin.Android Version (eg: 6.0):

Latest

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 Visual Studio 2015

Google Play Services Version (eg: 8.4.0):

NA

Describe your Issue:

The build script runs fine, no isssues. However, when I open the solution afterwards, VS just locks up. You have to kills the VS task to close it. The only way to open it is to delete the entire project and repull it down again from Github.

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

DeleteToken() vs DeleteInstanceId()

Xamarin.Android Version (6.0):

Operating System & Version (Win10):

Google Play Services Version (9.4.0):

Describe your Issue:

I'm not sure if this is an issue so much as understanding the different between the two methods in the title (DeleteToken() and DeleteInstanceId()).

In your FirebaseMessagingQuickstart Sample you have the following code to register with FCM:
Task.Run(() => { var instanceID = FirebaseInstanceId.Instance; instanceID.DeleteInstanceId(); var iid1 = instanceID.Token; var iid2 = instanceID.GetToken(GetString(Resource.String.gcm_defaultSenderId), FirebaseMessaging.InstanceIdScope); Android.Util.Log.Debug(TAG, "Iid1: {0}, iid2: {1}", iid1, iid2); });

However, I would like to keep Instance Id and use that as a unique identifier per app install/device. I discovered there is a DeleteToken() method which I have replaced with DeleteInstanceId() and used as follows:
Task.Run(() => { var instanceID = FirebaseInstanceId.Instance; instanceID.DeleteToken(GetString(Resource.String.gcm_defaultSenderId), FirebaseMessaging.InstanceIdScope); //instanceID.DeleteInstanceId(); var iid1 = instanceID.Token; var iid2 = instanceID.GetToken(GetString(Resource.String.gcm_defaultSenderId), FirebaseMessaging.InstanceIdScope); Android.Util.Log.Debug(TAG, "Iid1: {0}, iid2: {1}", iid1, iid2); });

I have been able to receive messages from FirebaseConsole using both DeleteToken() and DeleteInstanceId(), however I am only able to send messages to target user segments by app/package name when I use DeleteInstanceId(). If I use DeleteToken(), then I will only receive messages sent to topics I'm subscribed to or single devices by FCM token.

Steps to Reproduce (with link to sample solution if possible):

Using FirebaseMessagingQuickstart, modify the Task.run code as follows:
Task.Run(() => { var instanceID = FirebaseInstanceId.Instance; instanceID.DeleteToken(GetString(Resource.String.gcm_defaultSenderId), FirebaseMessaging.InstanceIdScope); //instanceID.DeleteInstanceId(); var iid1 = instanceID.Token; var iid2 = instanceID.GetToken(GetString(Resource.String.gcm_defaultSenderId), FirebaseMessaging.InstanceIdScope); Android.Util.Log.Debug(TAG, "Iid1: {0}, iid2: {1}", iid1, iid2); });

Comment out DeleteInstanceId(), run the app, then send messages to the app (you wont receive a message). However, send a message to the device using what is printed for iid2 in the log and you will receive a message.

Cannot find PlacePicker in Android.Gms.Location.Places.UI

Xamarin.Android Version (eg: 6.0)

7.0

Operating System & Version (eg: Mac OSX 10.11)

Mac OS 10.12.1

Google Play Services Version (eg: 8.4.0)

Nuget 32.940.0 beta 3

Describe your Issue

Can't find PlacePicker class as per the https://developers.google.com/android/reference/com/google/android/gms/location/places/ui/package-summary
in Android.Gms.Location.Places.UI

Installed GMS.Location, GMS.Maps, GMS.Places and the all other dependent nugets
screen shot 2016-10-31 at 12 58 13 pm

Missing PlaceAutocomplete.IntentBuilder from GooglePlayeServices.Places version 60.1142.0

Xamarin.Android Version (eg: 6.0):

8.1

Operating System & Version (eg: Mac OSX 10.11):

MacOsx 10.13.2

Google Play Services Version (eg: 8.4.0):

60.1142.0

Describe your Issue:

After the last update of NuGet package Xamarin.GooglePlayeServices.Places to version 60.1142.0,
the class PlaceAutocomplete is not exposing IntentBuilder method.
As describer here:

https://stackoverflow.com/questions/47768722/missing-placeautocomplete-intentbuilder-from-googleplayeservices-places-version

Steps to Reproduce (with link to sample solution if possible):

Just update and try:
AutocompleteFilter autocompleteFilter = new AutocompleteFilter.Builder()
.SetTypeFilter(Place.TypeCountry)
.SetCountry("UK")
.Build();
var intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeFullscreen)
.SetFilter(autocompleteFilter)
.Build(Activity);

Include any relevant Exception Stack traces, build logs, adb logs:

Error CS0426: The type name 'IntentBuilder' does not exist in the type 'PlaceAutocomplete'

Remote Display (RemoteDisplayLocalService) not working.

Xamarin.Android Version (7.0.2.37)
(Windows 10 Visual Studio 2015 Enterprise)

No matter what I have tried, I cannot get a working example of RemoteDisplayLocalService to work completely. After calling
CastRemoteDisplayLocalService.StartService(this, Class.FromType(typeof(MyPresentationService)), "APP_ID", castDevice, settings, new CastDisplayCallbacks(castDevice, this));
my instance of CastRemoteDisplayLocalService OnCreate method is called...and the default display is displayed on TV with name of application registered... however the OnCreatePresentation(Display display) method never gets called?!?! This is needed to create the CastPresentation.
I'm looking for a Christmas Miracle here. I have posted on every forum available, and I've been kicked in the face for not posting it the "appropriate forums. The sample only utilizes media playback, so I am hoping you guys have a secret arsenal of sample code for remote display that you can share with me!

Getting Failed resolution of: Lcom/google/android/gms/R$string;

Xamarin.Android Version (eg: 6.0):

7.4.0.19

Operating System & Version (eg: Mac OSX 10.11):

windows 10 pro

Google Play Services Version (eg: 8.4.0):

Describe your Issue:

I'm using version 32.961.0 to be compatible with TagManager v4.

Getting this error at start of the application.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;

Steps to Reproduce (with link to sample solution if possible):

Add TagManager 32.961.0 to android project

Include any relevant Exception Stack traces, build logs, adb logs:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.google.android.gms.common.internal.zzaj.(Unknown Source)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.google.firebase.FirebaseOptions.fromResource(Unknown Source)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.content.ContentProvider.attachInfo(ContentProvider.java:1748)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.content.ContentProvider.attachInfo(ContentProvider.java:1723)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread.installProvider(ActivityThread.java:5153)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4748)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread.-wrap1(ActivityThread.java)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.os.Handler.dispatchMessage(Handler.java:102)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.os.Looper.loop(Looper.java:148)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at android.app.ActivityThread.main(ActivityThread.java:5417)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at java.lang.reflect.Method.invoke(Native Method)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-19 18:09:17.063 E/AndroidRuntime( 3615): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.R$string" on path: DexPathList[[zip file "/data/app/ch.globus.customer-1/base.apk"],nativeLibraryDirectories=[/data/app/ch.globus.customer-1/lib/x86, /data/app/ch.globus.customer-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]
08-19 18:09:17.063 E/AndroidRuntime( 3615): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
08-19 18:09:17.063 E/AndroidRuntime( 3615): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

Unable to use Fuse location provider

Xamarin.Android Version (eg: 6.0):

7.4.0.21

Operating System & Version (eg: Mac OSX 10.11):

Win10 / VS17

Google Play Services Version (eg: 8.4.0):

Xamarin.GooglePlayServices.Location" version="57.1104.0-beta1" targetFramework="monoandroid71"

Describe your Issue:

Unable to use Fuse location provider.

Steps to Reproduce (with link to sample solution if possible):

        var builder = new GoogleApiClient.Builder(activity)
        builder.AddConnectionCallbacks(gc);
        builder.AddOnConnectionFailedListener(gc);
        builder.AddApi(LocationServices.API);
        var client = builder.Build(); <==== CRASH

      private GoogleCallbacks gc = new GoogleCallbacks();


        class GoogleCallbacks : Java.Lang.Object, GoogleApiClient.IConnectionCallbacks, GoogleApiClient.IOnConnectionFailedListener
        {
            public void OnConnected(Bundle connectionHint)
            {
            }

            public void OnConnectionSuspended(int cause)
            {
            }

            public void OnConnectionFailed(ConnectionResult result)
            {
            }
        }

Include any relevant Exception Stack traces, build logs, adb logs:

340,53 AbstractMethodError: abstract method "com.google.android.gms.common.api.Api$zze com.google.android.gms.common.api.Api$zza.zza(android.content.Context, an 08-29 17:56:41.517 23102 23237 E mvx : droid.os.Looper, com.google.android.gms.common.internal.zzg, java.lang.Object, com.google.android.gms.common.api.GoogleApiClient$ConnectionCallbacks, com.google 08-29 17:56:41.517 23102 23237 E mvx : .android.gms.common.api.GoogleApiClient$OnConnectionFailedListener)" 08-29 17:56:41.517 23102 23237 E mvx : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d 08-29 17:56:41.517 23102 23237 E mvx : 315ca4ba7b117efb8dacaedcf>:0 08-29 17:56:41.517 23102 23237 E mvx : at Java.Interop.JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMetho 08-29 17:56:41.517 23102 23237 E mvx : dInfo method) [0x00068] in <6cd960837cc24c26bab2a0a29b597627>:0 08-29 17:56:41.517 23102 23237 E mvx : at Android.Runtime.JNIEnv.CallObjectMethod (System.IntPtr jobject, System.IntPtr jmethod) [0x 08-29 17:56:41.517 23102 23237 E mvx : 0000e] in <d278c06ad5684d6882c743a94a93ebc2>:0 08-29 17:56:41.517 23102 23237 E mvx : at Android.Gms.Common.Apis.GoogleApiClient+Builder.Build () [0x00033] in <f2bc38c188d2451ab02a977b52544b4c>:0

Xamarin GooglePlayServices version vs Google Play Services version

I'm struggling to understand which Google Play Services version does the Xamarin binding map to.
This is important when for some reason you want to target a specific version of Google Play Services , for example you know there's a bug in a specific version.

So how does the Xamarin version map to the Google version?
I see it a very important information.... Maybe it's written somewhere already but I can't find it

https://developers.google.com/android/guides/releases
https://www.nuget.org/packages/Xamarin.GooglePlayServices.Location/

As of today, released version of Xamarin Google Play Services is v29.0.0.2 and Google Play Services is Google Play services updated to 9.2.1

Firebase analytics not appearing in firebase console

Xamarin.Android Version (eg: 6.0):

Version: 7.0.2.42

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.12.2(16C67)

Google Play Services Version (eg: 8.4.0):

Version: 32.961.0

Describe your Issue:

Firebase analytics not appearing in firebase console

Steps to Reproduce (with link to sample solution if possible):

Sample Solution:-
https://www.dropbox.com/s/trqk60vr7os8n1l/FirebaseAnalyticsDemo.zip?dl=0###

Include any relevant Exception Stack traces, build logs, adb logs:

Duplicate class definitions when upgrading to 32.940.0-beta3

Xamarin.Android Version:

Version 6.1.1 (build 15)
Installation UUID: c8d9d174-a2c8-4101-870c-d07ece81c653
Runtime:
Mono 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406010005

Operating System & Version:

Max OSX 10.11.6

Google Play Services Version:

32.940.0-beta3

Describe your Issue:

I did an upgrade of the Android Support Libraries to v24-rc1 (xamarin/AndroidSupportComponents#11) but when running our app with this update, we receive the following error:

[AndroidRuntime] FATAL EXCEPTION: IntentService[GCMRegistrationService]
[AndroidRuntime] java.lang.IncompatibleClassChangeError: android.support.v4.content.ContextCompat
[AndroidRuntime]    at com.google.android.gms.iid.zzd.zzeb(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.iid.zzd.<init>(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.iid.zzd.<init>(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
[AndroidRuntime]    at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
[AndroidRuntime]    at com.pushwoosh.GCMRegistrationService.a(Unknown Source)
[AndroidRuntime]    at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source)
[AndroidRuntime]    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
[AndroidRuntime]    at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime]    at android.os.Looper.loop(Looper.java:146)
[AndroidRuntime]    at android.os.HandlerThread.run(HandlerThread.java:61)

After this error I upgraded the Xamarin.GooglePlayServices.Gcm to 32.940.0-beta3 but I now get the following compile error:

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Tool exited with code: 10. Output: Note: there were 332 duplicate class definitions.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-multidex.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [bolts-tasks.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [gson.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com.github.chrisbanes.photoview.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [picasso-2.5.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [play-services-base-8.4.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [play-services-basement-8.4.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [play-services-gcm-8.4.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [play-services-location-8.4.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [.readme] (Duplicate zip entry [classes.jar:.readme])
Warning: can't write resource [.readme] (Duplicate zip entry [classes.jar:.readme])
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
Error: Can't write [/private/tmp/mainDexClasses-2681.tmp.jar] (Can't read [/Users/thomasvdb/.local/share/Xamarin/Xamarin.GooglePlayServices.Basement/9.4.0/embedded/classes.jar] (Duplicate zip entry [classes.jar:com/google/android/gms/common/annotation/KeepName.class]))

We have the multi-dex option enabled in our build but even with the option disabled I can't compile.
At that point I get the following error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : java.lang.IllegalArgumentException: already added : Lcom/google/android/gms/dynamite/descriptors/com/google/android/gms/flags/ModuleDescriptor;

When I upgraded to v24 of the support libraries I also needed to update Proguard manually and downloaded version 5.3 (https://sourceforge.net/projects/proguard/files/proguard/), due to this Xamarin bug.

No notification generated if targeting Android 8 because firebase messaging version is too old

Xamarin.Android Version (eg: 6.0):

Any

Operating System & Version (eg: Mac OSX 10.11):

Any

Google Play Services Version (eg: 8.4.0):

10.2.1 is the version pulled by the nuget packages.

Describe your Issue:

If your application targets API level 26, no notification is generated on Android 8 devices.

Steps to Reproduce (with link to sample solution if possible):

Integrate Firebase Messaging in an app with latest nugets for everything.
Make the app target API level 26 explicitly in Android build options.
Push a notification to your device that uses Android 8:
Instead of seeing a notification you see an error in ADB logcat.

The solution is to bind this nuget to Firebase version 11 at minimum.

Include any relevant Exception Stack traces, build logs, adb logs:

10-30 12:54:57.665 797-808/? E/NotificationService: No Channel found for pkg=com.microsoft.azure.mobile.xamarin.forms.puppet, channelId=null, id=0, tag=GCM-Notification:36506881, opPkg=com.microsoft.azure.mobile.xamarin.forms.puppet, callingUid=12348, userId=0, incomingUserId=0, notificationUid=12348, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)

Indeed, creating a notification channel is mandatory when targeting Android 0 API level, and you need to update Firebase SDK to have the updated code using channels.

Nearby: incomplete wrapper

Xamarin.Android Version (eg: 6.0):

6.0

Operating System & Version (eg: Mac OSX 10.11):

Windows 7

Google Play Services Version (eg: 8.4.0):

N/A

The package version is 29.0.0.2 (= latest stable)

Describe your Issue:

The Builder class from the MessagesOptions.Builder is missing in the wrapper. This makes it impossible to initiate background scanning for BLE beacons without getting the user's consent. These builder classes are in fact included for all the other APIs that are available in the nearby package. The MessagesOptions.Builder seems to be overlooked when testing the wrapper.

Steps to Reproduce (with link to sample solution if possible):

The java code for what I'm trying to achieve (from Google Developers here: https://developers.google.com/nearby/messages/android/user-consent)

mGoogleApiClient = new GoogleApiClient.Builder(this)
        .addApi(Nearby.MESSAGES_API, new MessagesOptions.Builder() // <---- this class is not included in the wrapper
            .setPermissions(NearbyPermissions.BLE)
            .build())
        .addConnectionCallbacks(this)
        .enableAutoManage(this, this)
        .build();

Include any relevant Exception Stack traces, build logs, adb logs:

N/A

After updating i can no longer use GoogleAuthUtil

Xamarin.Android Version (eg: 6.0):

7.2.0.7 (Xamarin Studio Community)

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 Version 10.0.14393 Build 14393

Google Play Services Version (eg: 8.4.0):

Nuget 42.1021

Describe your Issue:

Error CS0234: The type or namespace name 'GoogleAuthUtil' does not exist in the namespace 'Android.Gms.Auth' (are you missing an assembly reference?) (CS0234)

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs:

A lot of compilation and references warnings

Xamarin.Android Version (eg: 6.0):

Xamarin.Android 7.1
I have Xamarin updated to latest released stable.

Android SDK Tools 25.2.5
Android SDK Platform-tools 25.0.3
Android SDK Build-tools 25.0.2

Java SDK in Xamarin settings points to C:\Program Files\Java\jdk.1.8.0_121

Visual Studio 2015 (Update 3)
NuGet 3.5.0

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 x64

Google Play Services Version (eg: 8.4.0):

25.1.0
Same issue with 25.1.1, see last step in "Steps to Reproduce" below.

Describe your Issue:

I get a lot of compilation and references warnings when adding Xamarin Google Play Services to an Android app just created from template.

Steps to Reproduce (with link to sample solution if possible):

  1. In Visual Studio 2015, create a new Android app. I chose Single-View App template.

  2. Just checking, Android project shows
    image

  3. In NuGet, I select to add Xamarin.GooglePlayServices.Location latest stable (42.1001.0)
    image

  4. Rebuild solution, 13 warnings are shown:
    image

  5. I close solution, reopen it and rebuild it. Now I see warnings on references and compilation warnings
    image
    image

  6. I tried to remove obj and bin directories and rebuild solution, same result.

  7. I updated to 25.1.1
    image

Some warnings are gone (regarding constant) but there's still same compilation and references warnings:
image
image

The same issue is reproducible in Xamarin Studio. I also tried it on another PC, same configuration, same issues.

Include any relevant Exception Stack traces, build logs, adb logs:

Required XML attribute "adSize" was missing

Xamarin.Android Version (eg: 6.0):

6.1.1.1

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 - 1607, Visual Studio 2015 Update 3

Google Play Services Version (eg: 8.4.0):

  <package id="Xamarin.GooglePlayServices.Ads" version="29.0.0.2" targetFramework="monoandroid41" />
  <package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.2" targetFramework="monoandroid41" />

Describe your Issue:

adsize_bug
AXML code:

<!-- AdMob banner -->
    <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/res-auto"
        android:id="@+id/adMobBanner"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_toLeftOf="@+id/gameInfoLayout"
        ads:adSize="MEDIUM_RECTANGLE"
        ads:adUnitId="ca-app-pub-<secret>"
        android:layout_centerVertical="true" />

Steps to Reproduce (with link to sample solution if possible):

2016-08-04_21-16-54

packages.config:
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.Android.Support.v13" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.Android.Support.v4" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.Android.Support.v7.AppCompat" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.Android.Support.Vector.Drawable" version="23.4.0.1" targetFramework="monoandroid41" />
  <package id="Xamarin.GooglePlayServices.Ads" version="29.0.0.2" targetFramework="monoandroid41" />
  <package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.2" targetFramework="monoandroid41" />
  <package id="xamstore-xamarin.inappbilling" version="1.5" targetFramework="monoandroid403" />
</packages>

Include any relevant Exception Stack traces, build logs, adb logs:

Error while delivering the message: ServiceIntent not found

Xamarin.Android Version (eg: 6.0):

Xamarin.Android 7.4.0.19

Operating System & Version (eg: Mac OSX 10.11):

Windows 7

Google Play Services Version (eg: 8.4.0):

42.1021.1

Describe your Issue:

Getting below error in logcat
FirebaseInstanceId Failed to resolve target intent service, skipping classname enforcement
FirebaseInstanceId Error while delivering the message: ServiceIntent not found.

Steps to Reproduce (with link to sample solution if possible):

Add Xamarin.Firebase components to Xamarin project and Debug, shows the above error in log

Include any relevant Exception Stack traces, build logs, adb logs:

NA

Please release new version of maps

Maps now contains some important fixes including the ability to associate a tag with a marker. This has been out for a long time. Please release a new version.

GoogleServicesJson BuildAction missing

Xamarin.Android Version ( 6.0):

Operating System & Version (Windows 10 VisualStudio 2015)

Google Play Services Version (9.4.0)

Describe your Issue:

If I use the FirebaseMessaging quickstart sample I see GoogleServicesJson BuildAction is available when I selecet the google-services.json file in the project.

However, according to @Redth 's comment in this thread I just need to add the nuget package for Xamarin.GoogleServices.Basement and it should be available. I have tried this in new projects but I have been unsuccesful. Is there something else I need to do?

Steps to Reproduce (with link to sample solution if possible):

-Create a new project
-Add your google-services.json to the project
-Add the nuget package for Xamarin.GoogleServices.Basement
-Click on google-services.json and go to properties. The buildaction is not available and if you try to enter it manually an error appears saying "Property value is not valid"

Basement is not detecting google-services.json

Xamarin.Android Version (eg: 6.0):

8.0.0.33 (Visual Studio Community)

Operating System & Version (eg: Mac OSX 10.11):

MacOS 10.12.6

Google Play Services Version (eg: 8.4.0):

42.1021.11

Describe your Issue:

I have added the google-services.json and set the compile action as GoogleServicesJson and it does not detect the values in the file. In the logs I got this message

Target "ProcessGoogleServicesJsonChecks" skipped, due to false condition; ( '@(GoogleServicesJson)' == '' ) was evaluated as ( 'google-services.json' == '' ).

Steps to Reproduce (with link to sample solution if possible):

Just add the google-services.json file I try to get the instance in for example the OnCreate method inside the MainActivity and it says the Instance is undefined when I do this

var instance = FirebaseApp.Instance;

Include any relevant Exception Stack traces, build logs, adb logs:

(google-services.json properties view)
screen shot 2017-10-12 at 5 15 46 pm
(exception)
screen shot 2017-10-12 at 5 18 10 pm

Missing ExpandedControllerActivity Under Android.Gms.Cast.Framework.Media.Widget

Xamarin.Android Version : 7.0.2.42
Operating System & Version : Windows 7 x64, Windows 10 x64
Google Play Services Version : 42.1001.0/10.0.1

Issue :
I am trying to add google cast support for my app, and I am following the guide on Google Cast Documentation to do this. So one of the steps is to create an Activity that extends ExtendedControllerActivity. So, from what I can guess, this class should fall under Android.Gms.Cast.Framework.Media.Widget namespace. But the only classes I can see are the ControlButtonsContainer and MiniControllerFragment.

I am very much a noob when it comes to Xamarin Java Bindings (may a couple of minutes old). So decided to checkout this code (master @ f1da9ae) and try building my self, and discovered that the generated code is still missing, the ExpandedControllerActivity class. So I added the following line :

<attr path="/api/package[@name='com.google.android.gms.cast.framework.media.widget']/class[@name=ExpandedControllerActivity]" name="managedName">ExpandedControllerActivity</attr>

to the cast-framework\source\Transforms\Metadata.xml. But the generated code is still missing the said file, but I am getting the following warning (there are like 1000 warnings, but filtered this one out) :

D:\GooglePlayServicesComponents-master\cast-framework\source\BINDINGSGENERATOR: Warning BG8604: top ancestor ExpandedControllerActivity not found for nested type Android.Gms.Cast.Framework.Media.Widget.ExpandedControllerActivity.1. (BG8604) (Cast.Framework)

I am not sure, why this happens or whether further more experimenting can fix this issue, but I would love it, if you guys can look into this issue as soon as possible. Not trying to pressure you guys or anything, its just that I need to implement cast into the app, so that I can test it through out the next week.

Google Play Services - Maps assembly not compiling

Xamarin.Android Version (eg: 6.0):

6.0

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 Home

Google Play Services Version (eg: 8.4.0):

Xamarin.GooglePlayServices.Maps 29.0.0.2
Google Play Services Rev 37 (From Android SDK Manager)

Describe your Issue:

After installing the Google Play Services - Maps component into my android application and using the MapFragment class:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

  <fragment xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/map"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            class="com.google.android.gms.maps.MapFragment" />

</LinearLayout>

When building, I simply receive all kinds of errors that makes me suspicious that something in the Maps package was not configured correctly.

err

Also: the Xamarin documentation on Maps is way out of date and does not show any accurate info on using maps anymore.

Steps to Reproduce (with link to sample solution if possible):

  • Create a new solution
  • Install the Google Play Services Maps component
  • Use the layout XAML shown above
  • Build and Run

Include any relevant Exception Stack traces, build logs, adb logs:

N/A

Not able to connect to Play services when using Awareness API.

IDE:

Visual Studio 2017

Xamarin.Android Version:

7.1.041

Operating System & Version:

Lineage OS 14.1 (custom Android ROM equivalent to Android 7.1.1)
Win 10 Pro 14393

Google Play Services Version:

Google Play services 10.2.99
Xamarin.GooglePlayServices.Awareness 42.1001.0

Xamarin Forms version:

2.3.4.212-pre4

Describe your Issue:

Code written after initializing GoogleApiClient.Builder() inside OnCreate() doesn't run.

public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
        private GoogleApiClient _client;

        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());

            _client = await new GoogleApiClient.Builder(this)
                            .AddApi(Awareness.Api)
                            .AddConnectionCallbacks(() =>
                            {
                                Debug.WriteLine($"******########Connected to Awareness from Forms. Even this is not printed******########");

                            })
                            .BuildAndConnectAsync((i) =>
                            {
                                Debug.WriteLine($"******########Connected to Awareness from Forms. Even this is not printed******########");

                            });


                  Debug.WriteLine("Testing\nTesting\nTesting\nThis line never executes");   // Set breakpoint
       }
}

Stackoverflow answer suggests that Awareness api doesn't work on custom Android ROMs.

Steps to Reproduce (with link to sample solution if possible):

  1. Copy above code in MainActivity
  2. Set breakpoint on line: Debug.WriteLine("Testing\nTesting\nTesting\nThis line never executes");
  3. Breakpoint never reaches.

Xamarin.GooglePlayServices compile error in Mac

Xamarin.Android Version (eg: 6.0):

xamarin.android-7.1.0-43

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.11

Google Play Services Version (eg: 8.4.0):

Xamarin.GooglePlayServices.Maps.42.1001.0
Xamarin.GooglePlayServices.Tasks.42.1001.0
Xamarin.GooglePlayServices.Basement.42.1001.0
Xamarin.GooglePlayServices.Base.42.1001.0

Describe your Issue:

AndroidLibraryProjects.zip unzip error
image
It should unzip like this
image

Steps to Reproduce (with link to sample solution if possible):

Build it on Mac use the Xamarin.GooglePlayServices.Maps.42.1001.0 Version

Include any relevant Exception Stack traces, build logs, adb logs:

Firebase Token not Registered

Xamarin.Android Version (eg: 6.0):

Xamarin.Android = 7.2.0.7

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 Professional - Visual Studio 2015

Google Play Services Version (eg: 8.4.0):

Xamarin.Firebase.Messaging 10.2.1 V42.1021.0-beta-1

Describe your Issue:

The code below will work when I build and install the release version for the very first time on a physical mobile phone Android Lollipop. Subsequent build/rebuild to the release version the token value returned will be exactly the same as the first instance but sending message from the Firebase website will return an error saying "unregistered registration token".

firebaseinstanceid = FirebaseInstanceId.Instance;
Log.Info(TAG, "Service Firebase Token: " + firebaseinstanceid.Token.ToString());

Steps to Reproduce (with link to sample solution if possible):

  1. Build the app as release version and install from VS. Send message from Firebase website.
    First time no problem the token is good. (make sure the app is not install in the mobile phone).

  2. Rebuild App as release version and install from VS, Token value returned by the Firebase method still the same as first install but now the firebase website shows. "Unregistered Registration Token"

Include any relevant Exception Stack traces, build logs, adb logs:

-- No error from adb logs or onMessage

My question is why is the Firebase Server knows that the token is invalid but the Firebase method in my app is not refreshing the token?

VS bug #732435

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.