Software Archive
Read-only legacy content
17061 Discussions

Confidence Test XDKTutorial Does not beep on iPhone

William_S_7
Beginner
1,702 Views

I have followed through the steps on the basic tutorial:- Everything okay on emulator but on App Preview running on IPhones and iPad I am not getting any beep. Can anyone help please? (I have checked my sound on etc and tried on iPhone 6Pluas, iPhone 4S and iPad mini 2.)

Have just checked it beeps okay on Android - the prob is with the iOS

 

 

0 Kudos
13 Replies
Amrita_C_Intel
Employee
1,702 Views

Hello,

Try building it for device through the build tab and install on device for testing.

0 Kudos
William_S_7
Beginner
1,702 Views

Do I have to get a developer account with Apple etc to do that or can I build and deploy directly?

If I can do directly is there link to instructions - thanks.

 

0 Kudos
Amrita_C_Intel
Employee
1,702 Views

Hello,

App preview should emulate the app in the same way. I tried that app ios and yes I am not getting any beep either. This has been reported to engineering team. Thanks for pointing it out.

0 Kudos
Amrita_C_Intel
Employee
1,702 Views

Can you try testing this app out and check if it is beeping on IOS. No need to create apple developers account to test on App preview. it should work on app preview. Good luck!

https://github.com/xmnboy/hello-cordova

0 Kudos
William_S_7
Beginner
1,702 Views

Hi,

Hope I did the right thing - I downloaded the folder from github then opened the exec file from the open a XDK project button. Then pushed the project from Test and opened in app preview. Result:

I am just getting "Waiting for window.cordova..." highlighted in blue and nothing works.

0 Kudos
PaulF_IntelCorp
Employee
1,702 Views

You're missing some key project settings.

  • Download the project from GitHub using the "download a zip" option: https://github.com/xmnboy/hello-cordova/archive/master.zip
  • unzip the download into a new directory
  • goto the Projects tab and select "Open and Intel XDK Project" (at the bottom left of the screen)
  • find the "hello-cordova.xdk" file within that dialog box

Now try running that project in the Test tab...

0 Kudos
William_S_7
Beginner
1,702 Views

 

That's what I did. I used the Open Intel XDK project button on "hello-cordoba.xdk". The only slight difference was that I did not unzip into a separate directory as that doesn't seem to be necessary on a Mac.  Everything opens okay from the exec .xdk file.I have checked which plugins cordova plugins are listed as set for the project and there are quite a lot ticked - so it seems that something is wrong in the latter stages e.g. not pushing he cordova part correctly to the the phone. By the way this one does not work with my Android tablet version of app preview either.

 

0 Kudos
PaulF_IntelCorp
Employee
1,702 Views

I just went through the same process you described, on a Mac, and that app, as downloaded from the GitHub repo, worked.

Do you have App Preview installed on your phone?

Are you trying to use the Test tab or the Debug tab?

0 Kudos
William_S_7
Beginner
1,702 Views
Hi,
 
Yes I have App Preview installed on two phones 6Plus & 4s), and an iPad mini 2. It doesn't beep on any of them. It doesn't get beyond the "Waiting for window.cordova" in blue.. This application also fails on my Android tablet running App preview.
 
I am basically running from the test tab via your cloud server but I have also tried the debug option - none of them beep. I have also tried using the old plugs in - that didn't work either. Please note that your colleague tried the original XDKTutorial app to an IPhone and couldn't get a beep either.
 
The only thing that has worked via app preview is the XDKTutorial app on the android tablet - that one beeps!
0 Kudos
PaulF_IntelCorp
Employee
1,702 Views

I've been thinking the audio was the problem, you're referring to that "beep" button...

The beep does not work in the current version of App Preview on iOS, I believe it's due to an older version of Cordova being used on that device. It does work in a built app.

It should work on Android (it works on mine). You sometimes need to increase the notification volume on your Android device to hear it, or you might have it silenced on the Android device (it's a system notification, meaning your Android device and Android system settings determine how loud and what the beep sounds like).

I'm assuming the "bark" buttons do work? Along with the other buttons? Some devices do not have a compass and some do not support vibration, in which case those features will not work. Also, there is an unresolved accelerometer and compass problem on some Android 5 devices (this is a Cordova plugin problem, not an XDK problem).

Below are some sample images of what the working app should look like. If you see the green bar and the buttons work, then the app is working. These were taken from an iPod Touch running iOS 8 and a Samsung S3 running Android 4.4:

ios-hello-corodova-master.png Screenshot_2015-07-14-15-20-56.png

Note: push the buttons to make things happen. Green buttons mean you push it a second time to make it stop. The app can be resized with pinch and zoom if the buttons are too small.

0 Kudos
William_S_7
Beginner
1,702 Views

Okay - seems like the beep button is known problem.

My app preview on the iPhones / iPad and Android (Jo Jo tablet) are not as you are getting.

I only get waiting for the cordova window.

The iPhone of course has compass and accelerometer and nothing is shown for those - confirming lack of cordova support.

All I can think of is to repeat the process - i.e. delete the project / unzip this time into a separate directory / and import it again. Although it seems unlikely that it is going to work - given that the main files are clearly unzipped as they are producing an app - albeit one that doesn't work properly.

By the way - would it not be a good idea to warn people that are following through step by step the XDKTutorial that in the end the beep is not going to beep if you are using iOS - it's very confusing if you are a newbie with the system and apple products aren't exactly rare?

 

 

 

 

0 Kudos
William_S_7
Beginner
1,702 Views

News!!

I repeated the process - the files were already unzipped but i copied them to a new directory and ...I now have the cordova working on the iPhone okish

Beep and Barks not working but Vibrate / compass and accelerometer working / geo working

0 Kudos
PaulF_IntelCorp
Employee
1,702 Views

I've added a note in the tutorial. That tutorial is due for an update, it will be revised to use the hello cordova app, once it's available in the selection of samples.

0 Kudos
Reply