Topic: IOS : how to download a picture from google maps

Good morning,
after finding the photo reference , how can I download an image with IOS ?

( Ios not support the HTTPS protocol in Unity 3d )

example : https://maps.googleapis.com/maps/api/pl … R_API_KEY.


Thanks in advance.

Re: IOS : how to download a picture from google maps

Hello.

iOS supports HTTPS.
Starting from iOS9 you can have problems with HTTP.
http://stackoverflow.com/questions/3073 … d-on-ios-9

I create a small script and tested it on iOS.
Everything works well.

Script:

using System.Collections;
using UnityEngine;
using UnityEngine.UI;

public class TestLoadImage : MonoBehaviour
{
    public RawImage image;
    public string key;

    private IEnumerator Start ()
    {
        WWW www = new WWW("https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=" + key);
        yield return www;
        image.texture = www.texture;
    }
}
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: IOS : how to download a picture from google maps

thanks a lot for your help