Opening external app from custom keyboard ios 8 - ios

I wanted to know how I can open an external app from a custom keyboard in iOS 8?
is it by example possible to open Facebook, or post a Facebook message from a custom keyboard, if yes, how can I achieve this?
Thank you,
joe

I was trying to work with the UIApplication sharedApplication openURL: method in order to open the AppStore to link to the app so user's could rate it, Xcode kept telling me that the openURL method would not work in the extension. So I am sure you are able to refer back to the app itself but not open other app's which hopefully they will be able to change fairly soon.

Related

Open Siri using private API's in iOS 8

I want to make an app that won't be released on the App Store. I want this app to open siri through private API's, basically inject a home button press and hold into the events queue. I have tried using GSEvent(GSSendEvent - Inject Touch Event iOS), but it no longer works(it silently fails) after iOS 7. I believe it is possible through SBUIController but I can't figure how to use SBUIController in iOS 8. To be clear, I want to do this on a non-jailbroken phone.
How can I go about doing this in iOS 8?
Thanks
You should check out the runtime headers of all the private/public apis here.
I found a method hidden in accessibility, which could possibly work in your case. Have a look at it here: http://git.io/frK6Sw . The method is named -(void)openSiri, which suggest that it might open Siri, I haven't tried though.

Open my app from facebook app

I have an application on IOS, which posts photos and location on facebook.
I want my app to open once user tap on link(When viewing facebook from facebook app). Is this possible?
It's not possible using the built in iOS sharing but Facebook will open your app if you are using their SDK and posting with a Facebook app. (as in an app setup in their developer portal) You need to have deep linking turned on and your app profile setup to point back to your app store id. They also have a new app links thing they announced which is worth checking out. In any case your app will have to support custom URL schemes.
Sorry I can not get clearly but if I am not wrong then do you want to open your iOS app when user click on link on FB ?
If I am right then simple and sort answer, it is not possible because apple iOS dose not provide any such types of feature/API so it is better to stop fighting.

Exit an application on button click in iPhone using PhoneGap

I'm using PhoneGap in Xcode. The problem is that I want to quit application when user clicks on Logout button. How can this be achieved?
Is there any alertnative that objective-c code can be used to quit application?
You don't have to launch open using NSTask... open just calls into Launch Services, some of whose functionality is directly available from NSWorkspace.
To quit, you just call [[NSApplication sharedApplication] terminate:nil]. See NSApplication documentation.
You're technically not supposed to exit the application if you're planning to submit your App to the App Store.
See here: https://developer.apple.com/library/ios/#qa/qa2008/qa1561.html
Perhaps, you should bring the user back to some sort of login/landing page instead.

Custom URL scheme for new Facebook iOS app

Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn't seem to be working in the recently updated Facebook iOS app, it just opens the app but doesn't go to the required page.
I got this answer at developer.facebook.com:
Replace the word page with profile and it will work. Your new statement will be:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"fb://profile/247377102029332"]];
Use https://graph.facebook.com/YOUR_USERNAME to get your page ID.
In your iOS app use: fb://profile/[your ID] and the facebook app will open to your page.
The URL scheme for the iOS Facebook application is:
fb://profile/(fbid)
Same problem here. fb://page/PAGE_ID is not working anymore.
Note that fb://profile/(fbid) wasn't working properly on Facebook 4.x returning a "corrupted" page in both iPad and iPhone. Instead, fb://profile/(fbid)/wall in Facebook 4.x worked well when using an iPad but didn't work with an iPhone.
fb://page/PAGE_ID was the only option that worked on both iPhone and iPad, based on my experience.
I used to use http://wiki.akosma.com/IPhone_URL_Schemes as reference, but it's currently down...
A custom URL scheme is a mechanism through which third-party apps can communicate with each other. It doesn't allow you the provision to open a page in that particular application. It just fires an event to bring the called Application to the foreground. Going through this documentation would further clear your doubts.
The new Facebook app is built using Objective-C as against previous once in HTML5 which used to support URL scheme mechanism. This link gives a hint on that.
http://techcrunch.com/2012/08/23/facebook-for-ios-faster/

How to detect App Install on iOS from affiliate link?

Is there a way to track if the App is installed from our affiliate link without using apple linkshare or anything?
One way to do so was save the time the link was clicked and then use UIApplication openURL to check if we are able to open the app after a while. If we can open, that means the app was installed from our link.
Is there any other reliable way to detect it?
How does Facebook App Ads detect if the app was installed from their link?
Thanks.

Resources