Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27699] iOS: Map.createSnapshotter takeSnapshot take black images on iOS 13 simulator.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.3.0
Fix Version/sn/a
ComponentsiOS
Labels8.2.0, engTriage, iOS13, snapshotter, takeSnaposhot
ReporterLorenzo Piccinini
AssigneeUnknown
Created2019-09-22T00:15:06.000+0000
Updated2020-01-06T23:50:12.000+0000

Description

SDK 8.2.0 IOS 13

var Snapshotter = Map.createSnapshotter({
					mapType: Map.HYBRID_FLYOVER_TYPE,
					showBuildings: true,
					showPointsOfInterest: true,
				    region: {
						latitude: 37.32460403644528,
					    longitude: -122.02452087404698,
						latitudeDelta: 0.012915901884511527,
						longitudeDelta: 0.009989774770957638
					},
				    size: {
				        width: 840,
				        height: 340
				    }
				});


				Snapshotter.takeSnapshot({
				    success: function(e) {
					var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'aaa');
		f.write(e.image);
				    },
				    error: function(e) {
				    }
				});

Comments

  1. Hans Knöchel 2019-09-22

    It's e.image, not e.snapshot.
  2. Lorenzo Piccinini 2019-09-22

    Yes sure, mistake of my report. I tried to publish in test flight and it's works fine, the problem it seem is only on emulator.

JSON Source