Random language appearing on iOS when using latest plugin version
I'm submitting a ... (check one with "x")
- [ ] question
- [x] any problem or bug report
- [ ] feature request
If you choose 'problem or bug report', please select OS: (check one with "x")
- [ ] Android
- [x] iOS
cordova information: (run $> cordova plugin list)
com.cordova.plugin.SamsungPassPlugin 1.0.0 "SamsungPassPlugin"
com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
cordova-fabric-plugin 1.1.9 "cordova-fabric-plugin"
cordova-open-native-settings 1.4.1 "Native settings"
cordova-plugin-android-fingerprint-auth 0.3.1 "FingerprintAuth"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appminimize 1.0 "AppMinimize"
cordova-plugin-camera 2.3.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-firebase 0.1.25 "Google Firebase Plugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googlemaps 2.2.5 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 1.6.1 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.17dev "cordova-plugin-ionic-webview"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-touch-id 3.2.0 "Touch ID"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-x-toast 2.5.2 "Toast"
cordova.plugins.diagnostic 3.7.1 "Diagnostic"
ionic-plugin-keyboard 2.2.1 "Keyboard"
If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
4.1.0
Current behavior:
v2.2.4 and v2.2.5 display a random language across the app, for example keyboard done button and camera done and cancel buttons. Map works on these versions. On v2.2.3 the map sometimes crashes when it is moved and sometimes does not display. On v2.2.2 and down the map does not display.
Expected behavior:
Expect the map to work without adding a random language to the rest of the app.
Screen capture or video record:

Related code, data or error log (please format your code or data):
ngAfterViewInit() {
this.loadMaps();
}
ngOnDestroy() {
if (this.map) {
this.map.clear();
}
}
loadMaps() {
if (!!google) {
this.loadNativeMap().then((map: GoogleMap) => {
this.onMapReady.emit();
if (this.showAutocomplete) {
this.initAutocomplete();
}
});
}
}
loadNativeMap(): Promise<any> {
return new Promise((resolve) => {
this.map = GoogleMaps.create(this.mapElement.nativeElement);
this.map.one(GoogleMapsEvent.MAP_READY).then(() => {
if (this.enableGeoLocation && !this._defaultLocation) {
this.geolocation.getCurrentPosition().then((location: Geoposition) => {
this._defaultLocation = new LatLng(location.coords.latitude, location.coords.longitude);
this.setUpMap(this.map, resolve);
}, (error) => {
this.setUpMap(this.map, resolve);
});
} else {
this.setUpMap(this.map, resolve);
}
});
});
}
private setUpMap(map: GoogleMap, resolve: any) {
if (this._defaultLocation) {
let cameraPosition: CameraPosition<LatLng> = {
target: this._defaultLocation,
zoom: this.defaultZoom,
};
map.moveCamera(cameraPosition);
if (this.locationMarker) {
let markerOptions: MarkerOptions = {
position: this._defaultLocation,
title: 'Current location',
draggable: true
};
map.addMarker(markerOptions).then((marker: Marker) => {
this.markers.push(marker);
this.onLocationChanged.emit(this._defaultLocation);
this.setUpDraggableMarker(marker);
});
}
}
map.on(GoogleMapsEvent.MAP_CLICK).subscribe((position: LatLng) => {
if (this.enableTap) {
if (this.allowMultipleMarkers) {
map.addMarker({
position: position,
draggable: true
}).then((marker: Marker) => {
this.markers.push(marker);
this.selectedPlace = position;
this.map.animateCamera({target: position, zoom: this.defaultZoom, duration: 10});
this.setUpDraggableMarker(marker);
});
}
else {
if (this.markers.length > 0) {
this.markers.map((marker) => {
marker.remove();
});
this.markers.length = 0;
map.addMarker({
position: position,
draggable: true
}).then((marker: Marker) => {
this.markers.push(marker);
this.selectedPlace = position;
this.onLocationChanged.emit(position);
this.map.animateCamera({target: position, zoom: this.defaultZoom, duration: 10});
this.setUpDraggableMarker(marker);
});
}
}
}
});
resolve(map);
}
With version 2.2.5 the app language changes to Japanese. I had the same issue with the camera plugin. Either wait for version 2.2.6 or use the multiple_maps branch in the meantime.
I can see version 2.2.6 has been released in the meantime so it should fix the issue.
The v2.2.6 has been already released.
After update to 2.2.6 I have error with ios:
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CopyStringsFile build/emulator/project.app/pgm_Localizable.strings project/Resources/uk.lproj/pgm_Localizable.strings
(1 failure)
Please make another issue ticket, nd share your project files on GitHub.
@wf9a5m75 Re-add plugin fix the problem. Please, close the issue.