Sygic Custom URL不适用于iOS

时间:2018-04-18 10:29:49

标签: ios custom-url sygic

我正在使用iOS custom URL scheme,我想在sygic app中创建一个路由。正如他们在加载json(.sif)行程的文档中所提到的,我正在使用他们的自定义URL方案

  

com.sygic.aura://route%7Cmyitinerary.sif

加载我的.sif文件。



{
	"name":	"test",
	"version":	"2.2",
	"directives":	{
		"allowItineraryEdit":	true
	},
	"routeParts":	[{
			"properties":	{
				"routeMappingType":	"none",
				"precomputed":	false,
				"map":	"NT:2017.09"
			},
			"waypointFrom":	{
				"lon":	-315442,
				"lat":	5149939,
				"lonNavi":	-315442,
				"latNavi":	5149939,
				"type":	"start",
				"waypointId":	-1,
				"hitRadius":	50,
				"hitSpeed":	50,
				"caption":	"Barons Court Road 21/34, Cardiff, Penylan",
				"realtimeStatus":	{
					"status":	"visited",
					"estimatedTimeArrival":	"2018-04-17T13:08:15Z",
					"timeRemaining":	0,
					"distanceRemaining":	0,
					"edited":	false
				}
			},
			"waypointTo":	{
				"lon":	-312245,
				"lat":	5151827,
				"lonNavi":	-312245,
				"latNavi":	5151827,
				"type":	"via",
				"waypointId":	-1,
				"hitRadius":	50,
				"hitSpeed":	50,
				"caption":	"Llanrumney Avenue 193/218, Cardiff, Llanrumney",
				"realtimeStatus":	{
					"status":	"unvisited",
					"estimatedTimeArrival":	"2018-04-17T13:19:34Z",
					"timeRemaining":	679,
					"distanceRemaining":	4214,
					"edited":	false
				}
			}
		}, {
			"properties":	{
				"routeMappingType":	"none",
				"precomputed":	false,
				"map":	"NT:2017.09"
			},
			"waypointFrom":	{
				"lon":	-312245,
				"lat":	5151827,
				"lonNavi":	-312245,
				"latNavi":	5151827,
				"type":	"via",
				"waypointId":	-1,
				"hitRadius":	50,
				"hitSpeed":	50,
				"caption":	"Llanrumney Avenue 193/218, Cardiff, Llanrumney",
				"realtimeStatus":	{
					"status":	"unvisited",
					"estimatedTimeArrival":	"2018-04-17T13:19:34Z",
					"timeRemaining":	679,
					"distanceRemaining":	4214,
					"edited":	false
				}
			},
			"waypointTo":	{
				"lon":	-314670,
				"lat":	5152479,
				"lonNavi":	-314670,
				"latNavi":	5152479,
				"type":	"finish",
				"waypointId":	-1,
				"hitRadius":	50,
				"hitSpeed":	50,
				"caption":	"Pentwyn, United Kingdom",
				"realtimeStatus":	{
					"status":	"unvisited",
					"estimatedTimeArrival":	"2018-04-17T13:29:51Z",
					"timeRemaining":	1296,
					"distanceRemaining":	10859,
					"edited":	false
				}
			}
		}]
}




应用程序被触发并打开。但是我在屏幕截图中收到了一条奇怪的信息。

任何人都可以帮助我,为什么我会遇到这个问题?

enter image description here

1 个答案:

答案 0 :(得分:1)

问题在于文档,因为iOS上的文件访问限制,因为这个自定义URL不适用于iOS应用程序。唯一的解决方法是使用com.sygic.aura:// route_download | url(sif或json)并在某处上传此行程文件(应该是https服务器,因为Apple限制应用程序仅限安全限制)