Topic: Markers don't show in the map in built app, but ok in Unity

Hi, i'm having a problem with multiple markers.
I have made a locative app and i'm getting the positions of the Markers from mySQL and PHP in a string.
I then made an Array of (lats,lons) to be called as Markers.
I have used the Group Markers Example to start with.
It all works fine in Unity, but when i build the app on ios 9.2.1 the markers are hidden somewhere.
The only thing that i can see is my own marker form the Online Maps Location Service.

Do you know why is this happening?

Thanks in advance.

Re: Markers don't show in the map in built app, but ok in Unity

Hello.

I just checked the work of Group Markers Example on iOS9.
Everything works well.

What is the protocol uses your server (http or https)?
iOS9 has problems with http.

Solution:
http://stackoverflow.com/questions/3073 … d-on-ios-9

Kind Regards,
Infinity Code Team.

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

Re: Markers don't show in the map in built app, but ok in Unity

Hi and thanks for the very quick reply.
I'm gonna look into your solution.

At the moment i am receiving the values from the database, on a table page of the app, so the protocol seem to work fine even though is http.

I'm attaching the code i modified, maybe you'll see a mistake in there...i'm very new to programming, so it probably is my mistake.

Thanks again.

Post's attachments

Attachment icon GetMarkers-Not Working.cs 6.06 kb, 145 downloads since 2016-03-22 

Re: Markers don't show in the map in built app, but ok in Unity

1. «display.php» - it is full URL, or some part?
If it is a full URL, the most likely problem is that iOS does not have this URL.
First of all, make sure that you get the correct answer from the server on iOS.

2. In lines 78-144 to have the wrong logic.
Will try to explain:
In line 121 you initialize a list of markers. This list will contain 100 copies of the last marker with the same coordinates, and tooltip.
GroupMarkers will only work for this list.
You need to do:
* make the initialization of markers list from the first cycle (i).
* create marker without inner cycle (k).

Kind Regards,
Infinity Code Team.

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

Re: Markers don't show in the map in built app, but ok in Unity

Hi again, and thanks again.

Yes, it was just part of the url, i've attached the full code now.

I did all the changes you've suggested and again, it works perfectly inside of Unity, but not on IOS.

I know for a fact that the PHP echo are received, because i get the values from the database inside the app in another scene.

For some reason it seems that i can't load the markers on the map.

I've also changed the security NSLocation as suggested on your first answer, but nothing has changed.

Anyways, if i find the solution i'll post it here.

Thanks again for helping me.

Post's attachments

Attachment icon GetMarkers-Not Working CORRECTED.cs 6.28 kb, 157 downloads since 2016-03-22 

Re: Markers don't show in the map in built app, but ok in Unity

I was a little modified your script and tested it on iOS 9, everything works well.
The modified script is attached.

Post's attachments

Attachment icon GetTargetDatabase.cs 6.29 kb, 143 downloads since 2016-03-22 

Kind Regards,
Infinity Code Team.

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

Re: Markers don't show in the map in built app, but ok in Unity

Unfortunately it still doesn't work on my iPhone.
At least now i know that the code is fine...

Hopefully i'll find what's the problem with my phone settings or in Xcode.

Thanks again for your amazing customer service.

Re: Markers don't show in the map in built app, but ok in Unity

After wasting all day modifying Apple Privacy Settings and so on, i decided to copy and paste my GameObject into a new scene and it all works fine.

This is not the first time that a Scene stops working in unity...it's a very annoying bug, but i'm glad it all works fine now.

Thanks for the support