Where from could I download iPhone system sound files - iphone

I need to play in my app iPhone system sound files, for example, message sent, message received.
I was expecting to find these sound files available by default in iOS, but it seems not, please, correct me if I'm wrong.
Is there is away to download these default system iPhone sound. I need mainly message sent, message received.

To add to what WrightCS said, Apple makes it very clear that the only media assets (sounds and pictures) you are allowed to use are the ones that they provide explicitly. If you try to use their sounds they will definitely reject your app.
They also don't want you using their media for anything other than the things they intend them for. Their Human Interface people would have whole litters of kittens if they found out somebody was repurposing their carefully chosen UI elements for other uses, and would reject your app with extreme prejudice.
In short, don't do it. It will get you rejected.

To use sounds in your app, you will either need to create these sounds yourself, or purchase sound effects from a number of different websites. Being that your application is sandboxed, you cannot access the SMS send / receive sounds (for example). I also doubt Apple will allow you to "steal" their sounds for use inside your application. Try searching for free sound effects, One Example.

Theses resources should help you get started.
https://github.com/TUNER88/iOSSystemSoundsLibrary
https://developer.apple.com/library/ios/documentation/AudioToolbox/Reference/SystemSoundServicesReference/Reference/reference.html

Related

How to hook text messages in iphone

I'm trying to develope an iphone application which helps for filtering spam text messages.
But I don't know how to hook text messages.
Please help me.
You just can't. iOS API as of today does not give you access to text messages. Not to read them, not to send them, not to filter them. Sorry to break you bad news.
If your phone is jailbroken, you could do it by accessing the SQLITE database where text messages are stored. But you definitely won't be able to distribute your application through AppStore.
In order to do what you are trying to do, you are going to need to hook into the API. It is possible to jailbreak an iPhone without it being identified as 'jail-broken', though it's a bit tricky and a single screw up can deem your HID jailbroken for life.
If you're attempting to make a program usable for any user, this is not the method you want to use.
The only way this would be possible, is through a virus.

are there any special requirements submitting iphone app which only works in combination with a connected external device

knowing that the review process for apps seems to be rather rigid to some extend I would like to ask if there are any special requrements for an app that is targeted to work with certain Midi interfaces only. The particular reason I ask is that this app can not really be tested when not connected to such an interface. Thanks
There is no specific rule regarding this.
App Store Review Guidelines
To be on the safe side, describe this when submitting the app, there is a text field to add a message to the reviewers.
In the meanwhile I submitted my app and it got rejected in the first phase because I did not include a demo video. So after I created one and put it on YouTube, provided Apple with the link, everything went well.
So as a definite advice not to loose time until Apple comes back after a week or two to just tell you to provide a video - include it right from the beginning....

reading a file saved by another app in iphone

Is there a way to have an app write a into a file and then have another app read from that file?
I mean writting into the file system of the iPhone.
I want to do this without using an internet connection. So uploading the file and then downloading from the other app is not what i mean.
Thanks!
It appears that there are ways you can, but it won't get approved by Apple if you do.
See http://blogs.oreilly.com/iphone/2008/09/sandbox-think-like-apple.html for more information.
The current sand boxing of applications does not allow this, however it appears that this may be available in future iPhone OS versions. Reference
I'm not sure exactly what circumstances you're in here, but you could register app B as a handler for a particular protocol, and have app A try to open such a link (e.g. appB://yourinfohere). It depends on how much data you want to transfer and many other things, but it might work.

How could Apple know that an iPhone app makes use of hidden API?

I wonder if they have any fancy tools that detect usage of hidden API. Does anyone know?
In my experience unless you do something that really makes Apple mad, it isn't going to be rejected. If you were to do something huge, like getting direct camera access to make a video recorder app, it would obviously be rejected.
But if you were to use something small that isn't directly visible, it probably won't get rejected.
No one can really say for sure, because Apple seems to randomly reject apps for various reasons.
Don't make and entire app based off of a Private API, because you will have spent a ton of time and Apple may or may not reject it.
One thing they do is look at the app's link tables.

iPhone gui message from perl/shell-script possible?

I want to write a perlscript on my iPhone that is able to give me a heads up at certain points so I'm wondering how I would go about doing that.
Is there a way to get a message through the gui from a script running in the background? I've been looking without much luck. I had a thought about inserting a fake sms into the sqlite db as a last resort but it seems somewhat unlikely that it would work.
It would be nice to be able to make a push notification style popup appear but that might too much to ask.
Any ideas?
For reasons of security and stability, Apple does not allow scripting languages on the iPhone. You can run them on a jailbroken phone but I'm given to understand it's a hassle.
From the Apple Push Notification Programming Guide:
Note: On a desktop system, a
background process is often the means
whereby users are informed of
downloadable data for an application
that currently isn’t running. But on a
device such as the iPhone, background
applications are, for performance and
security reasons, prohibited. Only one
application may be executing at a
time.
The iPhone is a secure and reliable phone first and a computer second. Computing is sacrificed to ensure a reliable phone.
I found a solution I liked so I decided to share it. I found an app for jailbroken iPhones called GriP - Growl for iPhone. Which changes the way push notifications and other messages are handled. It also makes it possible to send messages from the command line via something along the lines of:
/usr/bin/GriP -t "Title" -d "Description"
It has worked great so far.
Thank you for your help TechZen and molecules.
Do you want information from your phone itself or from an outside source? If you want information from an outside source, you could set up a Perl script on a computer to e-mail yourself notifications (see Sending Email with Perl Best Practice).