Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Downloading a text file is not working on iPhoneX?
Started by d.mach Jan 19 2020 02:47 AM

7 replies to this topic
download error
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

I have another problem with downloading and showing a text file from an external server.

 

On a new iPad it is working fine. A text is downloaded and then shown on screen.

 

On the iPhone when the download should start I get the message:"Download failed! ...ause the App Transport Security policy re..." (The text is cut at the edges)

 

How can I make sure iPhoneX users also can download the text file? What is causing the download to fail?

Is it a http and https issue?

 

Thanks for your help!

 

Daniela

 



[TOPIC: post.html]
#2

0x0000ff

[GLOBAL: userInfoPane.html]
0x0000ff
  • Contributor

  • 112 posts
  • Corona SDK

Have you already applied this?

 

https://docs.coronalabs.com/guide/hardware/appleATS/index.html

 

 



[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

Thanks for this information!

 

This seems like it is impossible then to allow users to create their own game content then upload it to their own webspace for letting others download it to their game later.

 

How can this be done then? Is there a way to allow players to download external content to their game from an online place they can choose?



[TOPIC: post.html]
#4

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Contributor

  • 218 posts
  • Corona SDK

Why download a text file and not just the contents? You need to 1) download file, 2) read contents, 3) magic, 4) delete file, or your app bloats. So why not just 1) receive string, 2) magic?

[TOPIC: post.html]
#5

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

Thanks for the info. Can you explain this in more detail please pixec? Why is this different to downloading the file?



[TOPIC: post.html]
#6

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Contributor

  • 218 posts
  • Corona SDK

If you download a file then you must handle file management as well. If all you send is a text file then you can probably ignore that and just send the contents

[TOPIC: post.html]
#7

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

If you download a file then you must handle file management as well. If all you send is a text file then you can probably ignore that and just send the contents

 

Do you have an example on how to achieve this? Thanks for your help!
 



[TOPIC: post.html]
#8

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Contributor

  • 218 posts
  • Corona SDK

Google LAMP. Really any basic database setup.


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: download, error