Software Archive
Read-only legacy content
17061 Discussions

Build for IOS with latest intel XDK

Rajesh_K_2
Beginner
1,357 Views

Hello Sir,

I am working in App which is using  carodva Media class for recording sound and playing mp3 file from server. For front end, I am using JQuery  mobile framework and also using Ajex call to communicate with server. App has three pages. App is working fine on Android device but when i tried to build setup for ios, it is getting installed properly on device but when i am starting application I am only getting first page. On first page we have buttons which allow to record sound & list file from server are not working. Even , one button simply open new page and there we have few controls is also not working. 

Could you please suggest me, do I missing any project setting during build? 

I am using latest build of Intel XDK(2366).

I am using following Plugins :-

1. Device

2. Media

3. File

4. Splash Screen 

Thanks for your supports.

Thanks & Regards,

Rajesh Kumar

 

   

 

0 Kudos
12 Replies
Swati_S_Intel1
Employee
1,357 Views

Have you tried to test your app on iOS using App Preview? Does it work with App Preview on iOS? Also, make sure you set appropriate whitelisting options for iOS Build as well. For AJAX calls, you either provide specific domains or * in the  Access List > Internal Whitelist. 

If it still doesn't work send your project zip via PM.

0 Kudos
Rajesh_K_2
Beginner
1,357 Views

Thanks, Swati S. for your reply. I verified AJAX calls are working fine. It is looking Cardova Media Plugin is crashing or not working properly. 

I tried both with 0.2.15 & 0.2.16 version of Media Plugin. Do, I need to set some sort of permission to properly work on iPhone?  

Or there is know issue with these release for IOS build.

Thanks & Regards,

Rajesh K.

 

0 Kudos
Amrita_C_Intel
Employee
1,357 Views

Hello,

See this example: https://github.com/xmnboy/hello-cordova

You can refer to the link on how to access the sound file. As for Intel XDK emulator, it does not support .mp3 files. Only .wav and .ogg files. Hope that helps.

0 Kudos
Rajesh_K_2
Beginner
1,357 Views

Hello,

Thanks for reply. Issue is that App is only not working on IOS. It is getting installed properly but display only first page. In first page, it has a button for audio recording and anther two buttons. Second button calls Ajex functions to list down file name from server in new page. I have verified Ajex call by making a simple App and it was working fine. Third button simply have few setting functionality in another page. App is working fine in Adroid device. It is looking audio recording functionality is creating problem. I tried with cardova media plugin 0.2.15 (default one) & 0.2.16.

My question is:

1. Do i need some sort of extra setting to use Media Plugin in case of IOS biuld? I am new for IOS & followed the steps found in Intel XDK web site.

2. Is there any know issue related with  media plugin 0.2.15 & 0.2.16  for IOS build?

3. If yes, please suggest me which version of Media Plugin, I should use.

4. I am uploading site http://www.diawi.com/ to upload ad-hoc build for sending to test. Can it be issue? As I mentioned App is getting installed properly.

5. Please provide me check points which I should consider.

I am using latest build of Intel XDK(2366).

I am using following  Cardova Plugins :-

1. Device

2. Media

3. File

4. Splash Screen 

Thanks for your support. Please help me to resolve this issue and without solution purpose of the project will be failed.

Thanks & Regards,

Rajesh K.

0 Kudos
John_H_Intel2
Employee
1,357 Views

You mentioned 'pages'. It is best for you to try to keep you app contained to a single index.html page and the have multiple DIV's on the page. When you start adding multiple pages, you get into trouble with what js files are loaded, which ones are not, and which ones are loaded multiple times causing issues.

 

0 Kudos
Rajesh_K_2
Beginner
1,357 Views

Thanks for your reply.

I am keeping different page in single index.html using div  as suggested by u. In fact, I have used JQuery framework provided by Intel XDK for designing & creating pages.

I tried same type of design without Cordova Media Plugin and it was working fine.

It is looking  Cordova Media Plugin is creating problem. I tried both 0.2.15 & 0.2.16 version. Any suggestion for it.

Thanks for your supports.

Thanks & Regards,

Rajesh K.

0 Kudos
John_H_Intel2
Employee
1,357 Views

Perhaps you could share a simplified example of your code that that demonstrates the problem?

0 Kudos
Swati_S_Intel1
Employee
1,357 Views

4. I am uploading site http://www.diawi.com/ to upload ad-hoc build for sending to test. Can it be issue? As I mentioned App is getting installed properly.

Have you tried installing the app on the iOS device from the email that gets sent to you? Instead of using the upload site, try installing with the OTA link provided in the email. Also when you say ad-hoc build, are you by any chance using Legacy Ad-hoc build option?  When you use Cordova plugins, make sure you build with Cordova iOS build. Also, make sure you have proper certificate and provisioning profile provided in the Projects page under build settings.

 

0 Kudos
PaulF_IntelCorp
Employee
1,357 Views

The Media plugin requires the File plugin. There is a bug in the build system that sometimes pulls in the wrong version of the File plugin. Make sure you have explicitly included the File plugin and make sure the version is 1.3.2 or higher.

0 Kudos
Francisco_A_
Beginner
1,357 Views

Good Morning,
a few days ago , if I compile HTML5 code that contains an MP3 or MP4 made with Construct 2 or Captivate, the APK don't work.
A few days ago the SAME code did work!.

I attached a piece of the school project .
A week ago the APK showed the video. Now it appears blank .
It is the same code and the same choices in Intel XDK

Anyone know how to fix it ?Thanks!
Excuse my bad English!
0 Kudos
PaulF_IntelCorp
Employee
1,357 Views

I'm having trouble identifying why it won't run, I've tried a variety of things, but nothing helps. One thing I noticed is that if the app is built with the "shared mode" library it does work. But none of the embedded mode options result in success. If you configure the app for debug and connect to the APK when it is on-device there is an "Event" object that is printed by something, somewhere in the library. it contains a MediaError code that claims the reason the video does not play is "MEDIA_ERR_SRC_NOT_SUPPORTED"

I'll ask the build engineer to take a look and see if he knows what might have caused this, it is likely due to a build system update that happened last week. I recommend you also work with the library vendor to get more information on what an "error code = 4 n/w state = 3" means -- it might help to resolve the issue.

For reference, here is a snapshot of the contents of that Event object that is being emitted by the app:

Screen Shot 2015-09-21 at 4.42.29 PM.png

0 Kudos
PaulF_IntelCorp
Employee
1,357 Views

Just an update regarding the Crosswalk media playback problem -- engineering has confirmed that an update to the embedded Crosswalk build system for CLI 4.1.2 builds (Crosswalk build versions 7, 10, 11, 12 and 14) is causing this problem. They are working on understanding what is causing this problem, and will update the build system when a solution is found.

As a workaround, install the latest version of the Intel XDK (2496) an update your app to a CLI 5.1.1 project. Then you will be able to build a Crosswalk 15 image, which will not have this problem. The CLI 5 build system for embedded Crosswalk uses a new build system that was not affected by these changes.

0 Kudos
Reply