How to check for keyboard notification outside of my ios apps? - ios

I am trying to check for keyboard notification show/hide outside of my ios apps. I tried to run keyboard notification in the background, did not work.
I expected to switch to a different app or homescreen and my ios app should detect whether keyboard is shown or hide when i'm outside my ios apps.

it is not possible since app do not communicate with each others by default. just like in the previous answer, it's because of sandboxing. If you could tell what you want to achieve, we might be able to help

Related

Is it possible to detect another application from the current app in iOS?

I need to create sticky button which is on screen like hike button in ios
If i detect that application(WhatsApp) state event so i solve this problem. Thats why i need to create another application launched event.
Thank you in advance.
Apps on iOS are sandboxed and can not directly communicate with other apps directly. There are some API's in the iOS SDK which allows some interaction, mostly audio, share of items.
Apple does not expose to you app if an other app is launched, so checking that an other is launched is not possible.
The second issue is that you can draw on de screen outside of you own apps windows. So you will not be able to draw a button on top of some other app.

Actionable push notification isn't appearing on device with iOS 8+, when user force quit app by swiping-up

I am using ONE SIGNAL for push notification
ONE SIGNAL is providing functionality of actionable push by adding "actionButtons" key including in payload.
{"actionButtons" = {"id":"1","text":"Confirm","icon":""},{"id":"2","text":"Cancel","icon":""}, "actionSelected" = "1"}
So whenever push notification will appear on device, it will appear with two buttons "Confirm" and "Cancel" and based on user's selection 'id' of the button will be stored in "actionSelected" key.
Everything above is working perfectly whenever app is in either in foreground or in background in iOS 8+
But when user force quit application (swipe-up) notification isn't appearing on device.
I have also added "Remote Notifications" in background modes, all certificate is also set perfect. I don't know what am i missing.
If anyone got any idea about this issue then kindly help.
All suggestions are welcomed. Thanks in advance.
This is a limitation related to how OneSignal handles action buttons. OneSignal uses the content-available flag as part of a technique to support custom text on action buttons and this flag is ignored in cases where the application has been force-closed.
When force quitting any iOS app, that device becomes ineligible for notifications for that specific app until that app is ran again. So if you're testing open the app, and then close it (put in background).

Getting refrence of current touch event similar to VoiceOver

I am developing an iphone app for my internal purpose(dont want to put it on App Store).
I want Some functionality similar to built in VoiceOver Application in iPhone.
In my app, i want my app to be kept in background, and when user touches to any button,textfield or any UIElement, then my backgrounded app should be able to know the accessibility label of that element which was touched by User and then perform some action(similar to speech in voiceover). Is there any private apis available to get this detail. If it is possible for jailbroken, then still it is OK for me.
You should try to use IOHid framework to do this.
Look at this question, because it has the code how to do this:
iOS touch event notifications (private API)
Although, I am not sure this method is still applicable in iOS 7 (I believe it was discussed in iOS 6 timeframe).

Is it possible to make a push notification that doesn't open the app

I want a push notification where you could tap yes or no.If yes is tapped it would NOT open the app.
AFAIK it is not possible on iOS 6 unless you have a "Newsstand" app.
I've heard many of the newsstand-only features will be available to all apps in iOS 7 but I haven't had time to look into it yet. Maybe someone who knows more will answer.
iOS 6 can't do this - all Push notifications need to be treated as if they'll display to the user, and if they get a push when the app isn't open, it will take them to the app if they tap "Yes".
As #eran pointed out, you could modify the push notification bundle to make it only display 1 button.
iOS 7 is currently NDA so can't be discussed here. That said, if you have Xcode 5, you should have the developer doc site basically downloaded. Look at the Multitasking Guide and the Release notes.
If you have two buttons and none of them opens the app, why do you need two buttons?
If you pass null to the action-loc-key parameter, you'll get a single button that dismisses the alert without opening the app.

Can I start iOS app by pressing home button for any times&

My question:
I have an iOS app, it is minimized, and I want it to start when user press home button three times (or, for example combination of buttons, like "HOME+Volume-" and so on). Can I make it for non-jailbroken devices, only with native iOS functions?
It's not possible to customise iOS like that.
Without jailbraking, apps can only be opened by using custom URL schemes from other apps or by normally tapping on the on the home screen. To have an app open like this you would have to modify the OS and there is no way you can do that without a jailbreak.
Standard OS functionality like pressing the home button multiple times cannot be overridden because Apple is really against modifying any part of way the user interacts with apps or the OS.
No.
Not possible without jailbreak and then it would have to be some sort of preference in the OS settings.

Resources