Exception when I use Googleplayservices v71 with Xamarin Forms Maps v4.3 - google-maps

When I want to show google Maps I'm getting a:
Java.Lang.NoClassDefFoundError: 'Failed resolution of: Lcom/google/android/gms/dynamic/zza;'
It was working fine before I installed:
xamarin.GooglePlayServices.Base 71.1610.0 and xamarin.GooglePlayServices.Basement 71.1620.0
I need these two plugins because Com.OneSignal requires them.
When I uninstall Com.Onesignal it also doesn't work, but when I also uninstall xamarin.GooglePlayServices.Base and xamarin.GooglePlayServices.Basement again, I don't get the exception again and it shows the map. But then no notifications :(
I using Xamarin Forms 4.3.0.947036 and using a shell project.

Related

iOS 14 Widget cannot be updated from Notification Service Extension

I have an iOS application + a Notification Service Extension + a Widget. Whenever I update in the app something in UserDefaults, that is read by the widget and I call WidgetCenter.shared.reloadTimelines, the widget does update instantly.
If I try to update the widget from the Notification Service Extension using WidgetCenter.shared.reloadTimelines, it does not work, throwing the following error:
[widget] reloadTimelines(ofKind:) - remoteObjectProxy error: Couldn’t communicate with a helper application.
Has anyone had this problem? Any input is much appreciated.
As a follow-up, I've tried to call WidgetCenter.shared.reloadTimelines from my application right after receiving a silent push notification, but it does not update the widget if the app is not running in the foreground.
It does seem to perform the WidgetCenter.shared.reloadTimelines right after starting up the app again, as if it was blocked somehow.

ManifestChildren throwing InvalidArgumentException in Forge PHP SDK

My file is not being translated due to an exception:
Invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail','Autodesk.CloudPlatform.PropertyDatabase','viewable', 'ifc'
I debugged the SDK and the role that is causing the exception is Autodesk.AEC.ModelData.
The file that I am trying to translate is the same I am used to translate in my application, so I think it is a problem in Forge PHP SDK.
Yes, this is most likely an issue with the PHP SDK for Forge being out-of-date. I see that you already submitted a PR to the codebase - I will contact the dev team to make sure the new role type is recognized properly.

Map issues when testing in IOS 8

I have an application that uses MapBox's API to stylize the underlying map which uses Google Places. This all worked perfectly fine when running in IOS 7+, but when I try testing this in IOS 8, it immediately crashes with the following error message:
Terminating app due to uncaught exception NSInternalInconsistencyException, reason: 'The layout constraints still need update after sending -updateConstraints to MapView at {0,0}-{320x444}.
RMMapView or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them. Both are programming errors.'
I have been looking around the Web and Stack for a while but have been unable to find anything helpful unfortunately. Any suggestions?
I deleted all Mapbox framework / headers / lib from my project and reinstalled the latest (1.4.1) mapbox static library (libMapbox.a) and the Headers, and everything was ok after that without changing a line of my code.

Is there a workaround for shadowdom and Google/Leaflet Maps and Dart in mobile creating exception, thus preventing click events from being processed?

I'm coming across this bug , while running my Polymer Element inside a mobile browser. Chrome in this case.
DOMException {message: "Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is null.", name: "InvalidStateError", code: 11, stack: "Error: Failed to execute 'dispatchEvent' on 'Event…/packages/shadow_dom/shadow_dom.debug.js:2678:12)",
INDEX_SIZE_ERR: 1…}
"Error: Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is null.
at o.Map.Tap.o.Handler.extend._simulateEvent (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:9:5230)
at o.Map.Tap.o.Handler.extend._onUp (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:9:4807)
at Document.t.(anonymous function).s (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:8:20285)
at invoke (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2805:28)
at dispatchBubbling (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2753:12)
at dispatchEvent (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2706:9)
at HTMLDocument.dispatchOriginalEvent (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2678:12)" shadow_dom.debug.js:2816
It only occurs in a mobile browser, when using Google Maps or Leaflet maps which involves using the
import 'dart:js';
library. There is a bug report which seems to be same issue here https://code.google.com/p/dart/issues/detail?id=16125, but no answer of how to deal with it.
To see if the same issue affected Leaflet I also implemented it using the
'dart:js'
library, but get the same issue.
Is there a solution/work around for this?

How do I get the Quick Start Project to build and execute?

I tried to get the Google Quickstart project to work on Android.
https://developers.google.com/drive/quickstart-android. I notice there are lots of similar questions on this- and wondered if there was a sample project anywhere that does work?
I followed the instructions but I get an error when it starts up:
06-10 00:15:04.904: E/AndroidRuntime(16613): FATAL EXCEPTION: main
06-10 00:15:04.904: E/AndroidRuntime(16613): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
Which refers to this line:
credential = GoogleAccountCredential.usingOAuth2(this, DriveScopes.DRIVE);
startActivityForResult(credential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);
You should target an API level with Google APIs and make sure that Google APIs client library jars are on your build path.