How can i save media files (images, audios, etc...) to NativeScript application? - nativescript

so yeah guys, i just started learning NativeScript and i'm making test projects, i tried to make app, that plays little audio file when you touch button, but i don't know how to save files in the program, (i know, i'm 0 to explaining stuff with English) so i can use them later...
i haven't tried any plugin yet, so if there's any about my problem, i will be glad to hear about it
yeah, there's way to store them in servers or cloud, but i'm trying to make offline application...

Related

React Native Expo Best Practices for Sharing Code Base & App Experience Virtually

I am building an app with React Native using Expo and I am trying to collaborate with a third party virtually via Zoom. Ideally I would like that individual to see not just my code base (I can share my screen easily for that purpose) but what the app looks like/functions once i log in. To my understanding, I can use either the Expo app and/or Xcode. The expo app doesn't work here because you need to share the same wifi (at least I believe that's how it works) and Xcode isn't working for me because it takes up so much space locally (I have over 20 gb of free space and it still wont allow me to download). So is there a third option that would solve this problem? Am I overlooking something here? Any help would be immensely appreciated.
There's a guide on how to do what you want to do.
Alternatively, you should be able to share your Expo project with someone by sending them a link, then conference with them using Zoom, if you wish.
Another option would be to use a different IDE, for example VS Code, which has a live share plugin

best online service to backup Xcode?

I've been making some tweaks as well as adding finishing touches to an app I've been working on. I just noticed my computer started to load very slowly when compiling the app. after several screen crashes and freezes I decided to reboot in a various number of ways. http://www.macworld.com/article/2018853/when-good-macs-go-bad-steps-to-take-when-your-mac-wont-start-up.html
Thankfully I still have all my files and multiple Xcode snapshots for me to use. I don't have a flash drive on me and was wondering what would be the best online service to store my app for the time being?
I know this might be a tad unrelated but I feel this is an important topic and if anyone has any suggestions about which service to use for this task, I'd love to hear it ...ie Google drive , Dropbox, etc...I'm a noob with these services
You can use bitbucket.com, it's free for small projects.
Github is the best repository, it allows you to backup your project, you can clone it anywhere at any system.And you can update your project as well. Along with this, You can make it private.
http://git-scm.com/docs
There is another option if you don't want this to be some console
there is an iCloud drive available in Favourites, that is located in left side of any Finder Folder.

Need basic step by step instructions to get Flexpaper on to clients website

Greetings o knowledgeable ones,
I may have bitten off more than I can chew and this is the reason why I'm here!
I'm a beginner/intermediate front end coder and I have a client who has asked me to use Flexpaper to view their PDF catalogues on their website.
I know little about PHP and server side stuff (hell, I barely know front end code) and for the life of me I cant find a step by step instruction on how to upload the viewer and the PDFs on to the website/server.
I've read a couple of answers on the website that give me a glimpse into what I need to do but they seem to fall short of a complete answer.
I tried to using the 'Server Publishing' option in my local machine (using MAMP) but got stuck half way through when permissions where denied. Then found an answer eluding to the possibility of publishing to the web using the 'FlexPaper Desktop Publisher Zine' So I downloaded that and published a PDF and now I have a folder that was created on my machine but I'm a little lost from as to what to do next?
Some specific questions I have:
Do I upload the whole folder to the server and if I do what is the
code I have to include on a web page to access this Flexpaper PDF?
Do I need to upload any other applications/helper files to make the
viewer work on the website?
I have multiple PDFs(approx 15) I need to upload - is using the
'Desktop Publisher' to create each PDF the best way to do this? Or
should I use the 'Server Publishing' solution?
Why have I charged my client so little for so much work!?
Flexpaper seems like a great option for viewing PDFs online but it seems to be lacking in a beginning-to-end process of how to implement it onto websites. Unless I am missing something....
I am not a smart man.
Thanks and peace

Xcode and data - 'cloud' or local?

I am new to learning xcode, and started a simple project which main goal is for me learn Xcode.
The project is a simple app that keeps track of scores in a cardgame.
Sofar it is just for fun, for me and the guys I play cards with.
But heres an issue:
I would like to make it possible that it doesnt matter whose Iphone we are using.
Anyone with the app should be able to log in and see all of our gamescores.
That should be easy. Me and my friends could create a group, in which all of our games are stored.
Other people can create their own group, inwhich they can store theirs.
BUT where should I store the data, when building the app?
Potentially there could be a LOT of data, if a lot of people downloads the app, and plays a lot of cards!
I am a webprogrammer, and am used to working with PHP and mySQL.
Whats the smart way to deal with this?
Thanks
John
You should consider using the GameKit framework, might be best suited for your needs.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008304-CH1-SW1

Auto-update with Windows Phone 7 and PhoneGap

I'm thinking of developing a Windows Phone 7 application using PhoneGap and have a few questions around functionality available. I haven't developed a WP7 application before nor used PhoneGap so forgive me if some of the answers to these questions are obvious.
Does PhoneGap support the capability to update HTML/JS/CSS/Images hosted by the WP7 app? I imagine it's possible to easily download new content, but whether one can update or extend the existing files PhoneGap is using for the application is not clear. Given that the application functionality will be primarily driven by HTML/JS, I assume it's possible to download updated HTML/JS asynchronously and update the content on the device. In effect, this would be tantamount to updating the application without downloading a new version of the application through the MarketPlace. Assuming this is possible, what are the chances that an application which does this will pass the application verification process?
Are there any specific restrictions/guidelines that one should pay more attention to when developing an application using PhoneGap? I doubt there are but it would be helpful if anyone has any specific advice in this area.
Any help would be appreciated.
1) The short answer is yes.
The long answer is that you will need to do some native (in this case C#) dev to make that happen. I don't know the specifics of PhoneGap, but I know you can call C# methods from the JS. So you would call a method to download the data and store it in the IsolatedStorage, and then maybe have a callback to the JS to let it know it's done. Otherwise, there may be a way to download the image in JS and pass it to the code behind, but unless the PhoneGap guys have specifically catered for this scenario then I highly highly doubt it.
1.2) Yes, this will pass cert just fine. It is not up to MS to determine how/why/when/where you get your content. They don't make any money out of you updating an app, so they won't care whether you work out your own content delivery system.
2) Maybe not exactly the answer you are looking for - but if you make an app in PhoneGap, or any other non-native way, the app-gods will strike you down. To put it simpler, PhoneGap and everything like it is crap. Not the actual framework (I'm sure they put a lot of work into it), but the results. Seriously, the moment you run a non-native app you can tell how terrible it is. I don't know how to stress this enough. It's really worth developing it natively to every platform.

Resources