As You know by iOS 8 user can answer calls in iPad.
In older version I was checking call ability by this code:
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:#"tel:+11111"]]
But in iOs 8, this method returns true! I have 2 questions about this feature:
Really I can make call from application by iPad?
How can I check if user did not setup face time account?
Related
Previously, when building my app using the iOS 9 SDK, the push notification authorization request alert (that system alert which says: "App" Would Like to Send You Notifications ... Don't Allow / Allow) would only show when I called [[UIApplication sharedApplication] registerForRemoteNotifications].
We've decided to actually only do that at a certain point in the game, so the user is only encouraged to allow push notifications when it makes sense.
On iOS 10, I understand we must use the User Notifications framework to accomplish that (by calling requestAuthorizationWithOptions:completionHandler: on [UNUserNotificationCenter currentNotificationCenter]), enable Push Notification on the app Capabilities and setup the entitlements. And that does work on some devices, but not all of them.
On some devices, the authorization request is presented to the user right at app launch even though I did not call requestAuthorizationWithOptions:completionHandler: or registerForRemoteNotifications at any point yet.
The weirdest part is that this happens consistently on some devices (running iOS 10.1.1 or 10.2 beta), even if I install the AppStore version of the app (which was built using Xcode 7 and iOS 9 SDK).
Should I assume this is a bug of iOS 10? I couldn't find other people with the same issue, only a kinda similar issue here.
The issue is actually a change from iOS 9 to iOS 10 on Game Center's [GKLocalPlayer localPlayer].authenticateHandler.
When it is set, it will trigger a push notification permission request on iOS 10. This did not happen on iOS 9.
For anyone stumbling upon this and not finding the above answer to have been the cause of their problem, it should be noted that attempting to change the app badge will also result in a Push Notification request.
My personal situation was regarding a Cordova app, where I was loading and applying the badge plugin before initialising push, and couldn't work out why the Notification permission dialog was appearing on app launch.
I'm an iBeacon feature newbie and I'm running the AirLocate sample code here to configure an iOS device as an iBeacon device for learning and testing. As the "readme" file in the project says, I've launched the app on an iPhone 5 and an iPad 4, both running iOS 8. I've set one of them as target device by switching on the "Enable" switch in the "Configuration" option of the app, and I've chosen the "Calibration" option in the app in the other device. The target device is supposed to be displayed in the table of the calibration device, but I'm isplayed nothing.
I've swept the roles of both devices (target-calibration), but none of them seems to detect the other one.
What could I be missing?
Thanks
Here is a possible answer. I had developed my own app to configure iBeacons, but when I updated to iOS 8 I had to add this line of code to get it working
[self.locationManager requestWhenInUseAuthorization];
Now you can try add this line to AirLocate (if it does not have) and answer yes when asking to access your resources. Place this in a ViewController you access, otherwise won't get fired.
Another way could be to build your own app to handle iBeacons following tutorials or Apple's Doc, actually it's not such an effort.
There are for sure anyway other free apps, but I don't know, try to google.
Now it is working for iOS 8 after applying the changes described in this post
Is it possible to programmatically start and end call in jailbroken iOS using Objective-C? I know that with non-jailbroken device it is not possible (especially call ending), but I'm asking for JAILBROKEN versions.
To start a call use
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel://1273183781414"]];
To end a Call just kill "Phone" application
system("killall MobilePhone");
I am a bit confused... I have researched about URLs to use for sending users to the review page on the app store
I have tried:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=842516162&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8
and also:
itms-apps://itunes.apple.com/app/id842516162
I have an iPad (4th gen) and latest iPod, on the iPad it works correctly, on the iPod it comes up with a blank page.
Both are running 7.1.1
What do I need to do to get it to work on the ipod touch?
Try this
NSString *str = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=842516162";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
I have an iPhone app that is available on app store, free of cost. Now I want to make the same app to be paid. No problem til then. But the challenge before me is to release the trial version of the same app with few of features disabled or not shown at all. What I want is to put a button on the trial app that will took the user to app store for the paid version.
How to do this?
- (IBAction) openPremierVersionAppStore {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms://itunes.apple.com/us/app/shaifgupta/app_id"]];
}