window.location.href = "prefs:root=Settings" not work in iOS 10 - settings

I want to open iPhone setting app in Safari.
<script type="text/javascript">
window.location.href = "prefs:root=General&path=ManagedConfigurationList"
</script>
It is working in iOS 9, but it is not working in iOS 10.

Just replace "prefs" to "App-Prefs" for iOS 10

Related

Working with appcelerator titanium ti.coremotion on ios 8+

I am trying to develop a stepcounter using the ti.coremotion module.
I am trying to implement http://docs.appcelerator.com/platform/latest/#!/api/Modules.CoreMotion on devices with ios 8 and 9, but as it says in the doc, this only works for ios 7. I am stuck now. I tried running it on a device with ios8 and it said "Device does not supports step counting".
I tried searching it on google and got this: https://github.com/benbahrenburg/Ti.CoreMotion
which says it is for ios 7+ but works with sdk 3.2 only. What I am working with is sdk 4.1 and I need it as 3.2 will not work for other things.
Any help is appreciated.
I just build an app with SDK 5.0.2.GA to my iPhone 6S running iOS 9.1 and this sample code and it worked fine:
var CoreMotion = require("ti.coremotion");
// This code checks to see if the device can gather step counting data
if (CoreMotion.isStepCountingAvailable()) {
// If it can, it starts the step counter and outputs the data to the console
CoreMotion.startStepCountingUpdates({stepCounts: 1}, function(e){
Ti.API.error(JSON.stringify(e.numberOfSteps));
});
} else {
Ti.API.error('This device does not support counting steps.');
}
What device are you testing on? Does it work for you on a device running iOS 9?
If you have reproducible code/steps/environment then please create a JIRA ticket: http://jira.appcelerator.org

How to force kendoui mobile to use ios theme for Android

Is there a way to force kendoui mobile to use same ios theme of my application for both iOs and android.
Check the Kendo UI Mobile docs for how to force a platform style.
The theme can be set in the app initialization.
var app = new kendo.mobile.Application(document.body,
{
platform: "android"
});
as per http://docs.telerik.com/kendo-ui/api/mobile/application#configuration-platform

Xcode + PhoneGap + Making photo = no camera available

Mac OS X Lion 10.7.4
PhoneGap 1.2
I'm building my application with Ipad 6.0 Simulator.
var pictureSource,
destinationType;
function onDeviceReady() {
pictureSource = navigator.camera.PictureSourceType;
destinationType = navigator.camera.DestinationType;
if (noConnection()) alert("No internet connection. Working in offline mode.");
deviceId = device.uuid;
initDb();
initFileSystem();
}
$("#take-photo").click(function(e){
e.preventDefault();
navigator.camera.getPicture(onPhotoUriSuccess,
onPhotoFail,
{quality: 85, destinationType: destinationType.FILE_URI}
);
return false;
});
Looks like everything is right But I get an error 'no camera available'.
Maybe it's because of I'm running my application wuth Ipad 6.0 Simulator.
I have Ipad 6.0 Simulator and iOS Device are available for my application.
When I choose iOS Device and run I get an error 'no provisioned iOS devices are available with compatible iOS version...'
How can I make my camera to be available?
Your suspicion is well-founded. The simulator doesn't provide a camera.

Cordova 2.1 and ChildBrowser Works in Simulator but not on phone

I'm building an app using Xcode 4.5.1, Cordova/Phonegap 2.1 with the ChildBrowser plugin. I have the following jquery to open all external links using ChildBrowser.
$('a[href^="http"]').live('tap', function(e){
e.preventDefault();
var url = $(this).attr("href");
window.plugins.childBrowser.showWebPage(url, { showNavigationBar: true, showLocationBar: true, showAddressBar: true });
});
In the IPhone 6.0 simulator this works exactly as I want. The childbrowser window pops up and the url is loaded. And the tool bar button displays at the bottom of the childbrowser window allowing you to close the childbrowser returning you to the app exactly where you left it.
The problem is when installed on an iphone running iOS 6, the url is loaded in the childbrowser window but there is no chrome around this window. There is no tool bar or "Done" button to close the childbrowser window. So the only way to get back to the app is to shut down the app and restart it. I've searched the web for anyone having this issue and I've found nothing so I'm assuming it's something I'm doing wrong since no one else seems to have had this problem before.
Any help would be greatly appreciated.
From what I just found, this may be a bug in 2.1 ( http://community.phonegap.com/nitobi/topics/ios6_childbrowser_issue_with_phonegap_2_1_0 ), are you able to use 2.2 or 2.3? 2.3 now has childbroswer built in as 'inAppBrowser'
http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser
After searching the internet for clues and getting no response at all from the folks at community.phonegap.com. I happened across the answer to my problem here.
The problem was the reference to the childbrowser.js file. While the filename itself is all lower case. The reference that I copied from the guide looked like:
<script src="ChildBrowser.js"></script>
By changing the reference to the lower case version
<script src="childbrowser.js"></script>
Everything worked perfectly in the phone and the simulator.

UILocalNotification.applicationIconBadgeNumber doesn't work in iOS 5 !!!

I just moved to iOS 5 and found that UILocalNotification.applicationIconBadgeNumber stopped to work.
When we create any localnotification , we can set applicationIconBadgeNumber. So when pop-up comes up we can see that badgenumber on application icon.
It works fine in iOS 4.X...but in iOS 5 i can not see any icon badge.
Any solution ??
actually, the applicationIconBadgeNumber is still working, the user just has to have the "Badge App Icon" switch on in the 'Notifications' part of 'Settings'.

Resources