This is a migrated thread and some comments may be shown as answers.

how to get iPhone 5 to dial out

4 Answers 17 Views
Apple iOS
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Roger
Top achievements
Rank 1
Roger asked on 20 Oct 2013, 06:01 AM
Hi,
am using phonegap to check if a connection is available:
if(navigator.connection.type !== Connection.NONE){...do the work
}
this works fine on android but when the WIFI is turned off on iPhone it keeps saying connection none...how can I get iPhone to dial out and make a data connection if the wifi is off?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Oct 2013, 01:05 PM
Hello Roger,

We could not reproduce such behavior using the connection sample on iOS 7 device targeting Cordova 3.0 and we do not see reports of such a problem in Cordova in general. Please try the sample and let us know whether you observe different behavior.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Roger
Top achievements
Rank 1
answered on 22 Oct 2013, 04:14 AM
Hi Steve,
your connection sample has nothing to do with the problem I am having.....it does not use the phone's data connection  to connect to the internet so no wonder it works. All the connection samples tell the state of the connection, in the case of iOS  "iOS cannot detect the type of cellular network connection"

I have solved the problem by adding the offline/online events listeners (as per the PhoneGap API) to set a global variable that I can check.
 
0
Steve
Telerik team
answered on 22 Oct 2013, 06:41 AM
Hello Roger,

Glad you found a way that works for you. The connection sample checks the connection of the device and when initially on wifi, it shows wifi, when you turn wifi off without leaving your app (by using the swipe up menu) it correctly detects cellular and not none as you've described. iOS has a quirk documented in Cordova's connection API which is iOS cannot detect the type of cellular network connection, but still it returns cellular and not none.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Roger
Top achievements
Rank 1
answered on 23 Oct 2013, 01:23 AM
Hi Steve,
 thanks for replying but there is 1 thing that stands out.

My JavaScript code is the same

The difference is the phone gap framework...in Android the JavaScript works as expected in a built app. In iPhone5 (iOS6) the built app does not behave as expected.....this is with the same JavaScript code.

If there was a problem with my code there would be a problem with both phones....and there isn't...so it looks like a framework interpretation issue.
Tags
Apple iOS
Asked by
Roger
Top achievements
Rank 1
Answers by
Steve
Telerik team
Roger
Top achievements
Rank 1
Share this question
or