Show Local notification without sound [duplicate] - iphone

This question already has answers here:
Can I send a Local Notification with no sound?
(4 answers)
Closed 9 years ago.
I am using local notificaitons in my ios app. Is there a way for me to show an iOS local notification with only a vibration and display, without playing any sound?

Sorry friend it is not possible with the UILocalNotification
UILocalNotification API lets you set the system default sound, choose a sound, or have no sound, and if you have some sound, it will vibrate under the right circumstances (i.e., if you have enabled the vibration from phone settings).But you have no control on settings the vibration for your UILocalnotification.

Related

iBeacon possible to wake up an app? [duplicate]

This question already has answers here:
Open app with iBeacon
(2 answers)
Closed 6 years ago.
We have requirement to integrate ibeacon in our iphone app.When user reached nearest to a beacon ,
1)App need to wake up and open automatically.Is it possible?
or
2)We need a local notification first and click on it will open the app?
First one is possible , help is highly appreciable
Thanks,
You cannot open an app on iOS automatically on beacon detection. The most you can do is send a local notification, and if the user taps on that, the app will launch.
See here for details: Can I launch an app in Foreground when I enter an iBeacon range?

Record the conversation of phone - ios [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is an iPhone Call Recorder theoretically possible?
I am an iPhone devleoper.
I want to record the conversation during phone call.
I don't know apple is allowing to do this or not.
If yes, than can anybody guide me how can i do this?
Basically In my app ,I am recording 1 audio .
Now when i call someone from my contact ,I want to play that audio as well as record the conversation.
Both play and record thing I want.
I am confused whether it is possible or not.
There is no public API for recording the calls made (or received) by the built-in Phone app.
You will have to implement your own phone calling mechanism. You'll probably want to use VoIP. (That is what Google Voice uses, for example.) You'll need to run your own server on the Internet, or contract with an existing VoIP service. You'll want to use in-app purchase to let the user buy minutes, because it costs money to run your own server or use a third-party service.
There is no public API for this. No app headed for the App Store can record phone calls made with the standard Phone app.

How iPhone application WeatherTunes realized running in the background [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How To Switch music from my app to the ipod
There is an iPhone application named WeatherTunes (天气旋律闹钟 in Chinese) in iPhone AppStor, search with key words "WeatherTunes " e, it appears at the first.
You can add alarm in WeatherTunes, even if you switch this application to background, it still runs. I look into its info.plist file, I noticed it set the "required background modes" with value "App plays audio". But I still can't figure out how it can be run in background? Thanks for any help.
Apps can run in the background if they have any of the 5 requirements:
Apps that play audio while in the Background state. A good example is Instacast while it’s playing a podcast.
Apps that track your location in the background. For example, you still want voice prompts from your turn-by-turn GPS navigation app, even if another app is Active.
Apps that listen for incoming voice-over-IP (VOIP) calls. If you use Skype on iOS, you can receive incoming Skype calls while the app is in the background.
Newsstand apps that are downloading new content.
Apps that receive continuous updates from an external accessory in the background.
It may be possible that this app is playing a silent audio file in the background, a tactic that I have seen before, but generally that will be rejected from the apple store.

Delegating something to the OS [duplicate]

This question already has answers here:
If background applications can't launch automatically how does Cardcase launch on a location change?
(2 answers)
Closed 9 years ago.
I was wondering if it is possible to tell the iphone operating system to lauch my application when I enter a particular region...If it is how can I do it?
Thank you
This will happen automatically for region monitoring - Once your application has registered for region monitoring (while it was running) and then gets suspended or stopped, and then if the region is crossed even when you app is not running the app is re-launched in the background to handle that event, from there you can post local notifications etc to alert the user and bring the app to foreground if the user is interested.
See reference to the Apple documentation here
No, your application can't launch itself for any reason.
You can, however, use background location and background local notifications to alert the user and allow them to opt to open your app.

Using iPhone default Alarm sounds in application [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Play alert sound (same as default message ringtone)
Hello all,
Quick question -
Is it possible to use one of the default sounds included on the iPhone - Marimba etc. in an iPhone application?
Thanks,
Teja
The actual directories will only be accessible after JailBreak.
Ringtones (including Marimba):
/Library/Ringtones/
System sounds:
/System/Library/Audio/UISounds/
Or use 'AudioServicesPlaySystemSound()' like mentioned by Black Frog.
Note: This method is undocumented and will cause AppStore rejection.
Download link for system sounds (comment by clusterfu_k):
Can I get default audio files of Iphone (marimba, alarm, ascending,...)?
Note: Possible copyright infringement.