In-App Resources and Cloud Resources    
This topic is assigned to Victor

May 12, 2014 04:04 AM

                              In-App Resources and Cloud Resources 


Each application has in its dashboard a Resource Manager. The Resource Manager includes all the application files like images, icons, pages, media files, etc. The resources of an App divide into 2 types: In-App Resources and Cloud Resources.


 

1. In-App Resources are bundled (hosted) in the app itself. This means that they can work in offline and online mode in the same time. 


  a) This is a small preview of the selected file.

 

  b) Files can be uploaded either by pressing the "Upload" button or by drag over.


  c) You can restrict the files appearance by "all" , "images only" "audio files only" and "video files only". Also there is a search option.


  d) The files can be sorted by: Name, Type(Kind), Size and Date Modified. Also there is a "Sync" box for each file. You may enable Synchronization for each file. See the tutorial about the Sync process and how it works here


  e) Each file can be force reloaded (refreshed), downloaded, duplicated, renamed or deleted.


  f) Search on Google for images (jpeg, png or gif) and add to App's resources.

 g). Right click on a file to download, duplicate, rename, delete or Toggle sync (enable sync)


2. Cloud Resources was created in order to decrease the size of an application. We all want to have applications which do not have big sizes. You may avoid this now by hosting the application resources on our server. The end user may anytime download the resources (Audio, Video, PDF, Images, etc) from our server directly on his device and they will work in offline mode. The user may also anytime delete the resources from the device.   

The Cloud Resources window looks very similar to the In-App Resources one but it works different and also has a few additional options. 

The additional options are:


  a) Folder. You may create folders by "right click" > New Folder. Add files in the created folders and sub-folders.


  b) Convert to HTTP Live Streaming. This is a streaming format created by Apple and is only for iOS platform. You may convert any media files (audio or video) into HTTP Live Streaming. 


How Cloud Resources work ? 

Cloud Resources (Hosted Resources) can be enabled for any native page type we have (pages that use images, audio, video or PDF files). This can be done from App Dashboard > Page Settings > Hosted Resources 



For each page you may add files that will be downloaded automatically on the device once the page is opened in the app. You may add unlimited files. The maximum file size per file for Hosted Resources is 400 MB. 

Once Hosted Resources is enabled and files are added for a page, you need to select which file will show up on the device. You may do that from the edit mode of the page (App Dashboard > Edit Pages > select the page and click edit). In the edit mode(for almost each page) there are file picker fields.


You may select a file from In-App Resources or Cloud Resources.



In this example I will select the file "sample.pdf" from Cloud Resources. Note that you need to enable Hosted Resources for the mentioned page in Pages Settings > Hosted Resources which I have done above.

Let's see how Hosted Resources work on a device: Once the PDF Reader page is opened in the app (PDF Reader page is just an example. Feel free to use any page type), the PDF file will be automatically downloaded on the device.

                                                                                         iOS


                         


                                         

                                                                                        Android


                           



If Hosted Resources is enabled then once the page is opened for the first time there will be a splash screen showing the downloading process of the file(s). If In-App resources is used, then the file will show up instantly. 


* If the same file or files with the same names are uploaded in In-App Resources and Hosted Resources, priority will have the ones from In-App Resources. Make sure to use different file name for each type of resources.


* The file types supported in the Resource Manager are:

.htm,.html,.css,.js,.png,.jpeg,.jpg,.gif,.wav,.epub,.mp3,.mov,.mp4, .wav,.av​​​​​​​​​​​i,.m4a,.3gp,.ogg,.strings,.pdf,.xml,.plist,.mobilep​​​​​​rovision,​.​c​e​r​,​.txt,.zip,.json,.ttf 


* The characters supported for file names uploaded in the Resource Manager are: English letters and characters, + '-‘ ,  '_’ ,  '.’  ,’@' , '~' .  


Platforms supported: iOS, Android and Kindle.


Cloud Resources can not be used on index or tab pages on iOS platform.


* Cloud Resources is available only for the users who have an active subscription or pre-paid plan 


best regards,

Victor,

SC Team.



May 12, 2014 05:54 AM
superrrrr great guysss



May 12, 2014 06:12 AM
Thanks for the continued improvements.  


May 12, 2014 06:59 AM
AMAZING


May 12, 2014 08:43 AM
Great new feature!  Does it take re-publishing the app with a new build in order for it to function?


May 12, 2014 10:48 AM
Great move forward. I tried it today on Chrome and clicking either resource button did nothing but worked fine I IE

J


May 12, 2014 10:52 AM
Hello to all,


Please make sure to clear the browser's cache and the new resource manager will work properly. Some small updates with fixes will be made today or tomorrow.

best regards,
Victor,
SC Team.


May 13, 2014 03:00 AM
I was waiting for the feature for last two months and finally it arrived. Thanks for the update. 
However, it needs to be fixed. 
1) I get "invalid Token" error >> Solution : Clear Cache and Refresh Browser
2) Invalid file name, even though the file name is not invalid >>>> this error appears on Windows OS... Resolved by SC (Thank God)
3) Previewer App crashes on downloading Hosted Resources>>> To be resolved. 


May 13, 2014 06:33 AM
Ashaq,


All the issue were fixed yesterday. Regarding any crashes - we did not encountered such issues. If you have any repro steps, let us know in a support ticket. The forum is not quite appropriate for reporting these types of possible issues.

best regards,
Victor,
SC Team.


May 15, 2014 01:32 PM

Hi Victor, just wondering if the new features can be previewed on the previewer app? I tried adding a Cloud resource mp3 to an existing Audio Player page in my published app, but nothing happened. Do apps have to be republished for the new features to work? Thanks Victor.



May 15, 2014 01:44 PM
Thank you Victor for this great tutorial on the powerful new Cloud Resources.


May 16, 2014 10:45 AM
Thank you all for the feedback !

Rick,

Yes, it works in the App Previewer. 
For Android: it works for Native and HTML pages 
For iOS: it works for Native Pages. HTML pages - only for new builds.

best regards,
Victor,
SC Team.


Aug 03, 2014 12:09 PM
Hi

When i convert my mp4 file to HTTP Live Streaming I got an error "invalid file name"
Why?

Thank's
Ziv


Aug 04, 2014 04:29 AM
Hello Ziv,

What is the name of the .mp4 file you are trying to convert ?


Aug 04, 2014 04:33 AM
I am happy to announce you all that Folders and Sub-Folders support have been added for In-App Resources. You may now upload entire HTML5 websites or create unlimited subfolders. This works for all pages types, including Style Settings and Navigation Settings .

best regards,
Victor,
SC Team. 


Aug 04, 2014 06:45 AM
Hi Victor
That is great news. Although it seems that it's not working for me. I just tried to add a folder through ftp and it was denied. (Response: 550 Couldn't create directory. (\xxx\aNew). I can't see a place to do it on the Resource Manager. Am I missing something.

Best Regards
Rick

Actually I forgot about the right click in the Resource Manager so that works fine. Is it going to be possible to upload new folders through ftp? 

    1 2   next