Send normal Siri commands through coding - iphone

I am completely new to this but here goes anyway. I've been reading that Siri has no access via API. My question might be a tad different.
What I would Like to do is send Siri this message
What is the weather like today
That's it, nothing new. I'm not trying to make Siri do something it doesn't already do. I'm just trying to send that message in my own code rather than hitting the button and saying it.
Any thoughts???
Thanks !!!

No you cannot do that. Apple has not yet provided any public APIs to developers for Siri programming. Also the link that you provide in one of your comments, it is for jailbroken devices. They must have used the private APIs.

Related

Perform action after receiving push notification without user acknowledging

I'm quite sure the answer to this question is no but here it goes.
Is it possible to send a push notification to my app and have it perform some work without the user clicking on the push notification?
And even if it WERE possible, will my application be rejected because of this?
This question is from upper management, they want me to get our appication to be able to do this. I already told them that I don't believe it's possible but maybe someone knows something I don't?
There is a method to to just what you want in Apple iOS 7 SDK, which unfortunately is under NDA at the moment so it's only allowed to discuss it inside Apple Developer Forums, but you can read more about it here

iPhone turn off bluetooth GKPeerPickerController

I agree that this question is duplicate. Please bear with me. I was also among you all to believe that is not possible to programatically turn on/off bluetooth.
But using GKPeerPickerController if bluetooth is not on user will be prompted to turn it on. Fair enough to turn on the bluetooth.
I was betting with my belief that we can not turn off the bluetooth programatically as there is no way. But this application does that so I didn't had choice to refuse.
I just want to confirm whether it is possible or not and if yes how to turn off the bluetooth using GKPeerPickerController or any other public api way ?
I know this isn't the answer you want, but no, you can't turn off bluetooth programmatically with Apple-approved APIs.
There have been a number of apps approved on the App Store this year that have done this.
But, they keep getting removed by Apple shortly after release, once they (Apple) realize what's going on. They're certainly using private APIs.
Either developers are foolish enough to think that they won't be noticed, or they are simply hoping to pull in a couple weeks of revenue before Apple pulls the app, which could be enough to pay back their cost, with some profit.
The issue is that there's a number of ways to check whether an app is using private APIs. If developers are using objective-C frameworks in the normal way, that's an easy check. In fact, Xcode does some of this automatically when you use it to upload app binaries to iTunes Connect. But, it's not a complete check. Once at Apple, the reviewers perform another check, which I've been able to deduce is more sophisticated than what Xcode does.
However, that check is still not perfect, and I'm of the opinion that it's not necessarily a matter of a lazy reviewer just forgetting to perform the check. Objective-C gives you some techniques for obfuscating method calls. Depending on how you use these techniques, you might get past the reviewers . In my experience, I have every reason (wink, wink) to believe that Apple is not running every app on a fully instrumented version of iOS, which could log all function calls, and defeat even the best attempt to hide private API usage via obfuscation techniques.
So, I can pretty much guarantee you that this explains the apps you've found on the App Store that turn off Bluetooth. Public GameKit APIs let you turn Bluetooth on, but not off.
Disclaimer: I've never worked for Apple, and no Apple insiders gave me information. But, I have gotten private APIs through the review process.
Please try below code and I think it will also work for you.
Class BluetoothManagerClass = objc_getClass( "BluetoothManager" );
BluetoothManager *btCont; = [BluetoothManagerClass sharedInstance];
[btCont setPowered:NO];
You need to add BluetoothManager class/framework in your project.
Thanks

Fake Call using PhoneGap

I have a client that would like me to build them a "Phoney Phone Call" program on the iPhone.
I need the ability to fake a phone call and have the call come from someone in the contacts and the ability to choose the ring tone.
Is this possible using PhoneGap? Anyone have any info on this?
Thanks!
Mike
Sounds like this is not possible. Haven't used PhoneGap but don't believe PhoneGap gives access to the Address Book APIs. So the "have the call come from someone in contacts" is not possible. The other stuff should be.
FYI, fake call apps do already exist. It might be wise to notify your client of this.

iPhone app rejected - because use of one private API function - but there is no alternative - what to do?

I wrote a nice app that would simplify life for many - somehow similar to these phone card apps. However, there is one private API function which I have to use to send a hash '#" in a phone call because the receiving hardware requires this. (which is understandably not allowed because of POSSIBLE abuse). But
My app does not missuse or in any way
cause damage.
Certainly the reviewers at apple don't have time to review for each single use of such functions - so therefore my app got rejected by the automated API check (so I assume). Yes I know that these issues are documented well by Apple, but I was hoping they would really "check" abuse possibilities of apps and then reject - or accept if the app is not harmfull in any way. (as happened in a similar case in appstore)
Anyway, if I don't find another solution this app will not be accepted.
What to do now?
Does it make sense to write an explanation comment when submitting to review?
Is there an alternative to send the signal of a # during a call somehow?
Is there an alternative way to sell/distribute apps? Will this affect my future apps to be submitted? What is your experience?
ps certainly, the Android version is available soon...
Thanks!
An option would be to submit it as a bug and request they "support send a hash '#" in a phone call".
You can always try the Cydia store, and probably there are other ways in the jailbreak community.

Are there new API's in the iPhone SDK which allow you to access the iPhone's Call log (Like Agile Reply in the App Store)?

I saw a new app called Agile Reply which allows you to send a sms to the person whom just called you. I didn't buy the app but I don't understand how it would work since as far as I know you can't access the call log through the official iPhone SDK. So my main question is:
Are there new API's in the iPhone SDK which allow you to access the iPhone's Call log?
I know there are similar questions here and here however I didn't know if I should hijack those or start a new one.
Take a look at CoreTelephony. While it won't give you arbitrary access to call logs, you can get notifications of call transitions, which if you can keep at least in the suspended state, may be enough. I don't know how accurate Agile Reply is.
I found the solution here but it doesn't work for iOS5.
http://iosstuff.wordpress.com/2011/08/19/accessing-iphone-call-history/