Software Archive
Read-only legacy content
17061 Discussions

Test vs Emulator result?

Cooper_M_
Beginner
2,023 Views

Hello, I want to ask possibly weird question and I haven't found matching thread (unless I missed it or used wrong word). 

Problem is that when I make something - emulator display what I expect it to display. But if I push it into test server and check via iPad (actual live one) - both CSS file and JS file don't work at all. I haven't be able to determine WHY it works in emulator and not in test. I've tried restarting Intel XDK program, restart app on iPad, and even made a duplicate of same program I made, and stripped some stuff out that COULD have caused app to bug out but no luck. I don't get it. 

Any help would be awesome. Thank you for your time. 

0 Kudos
12 Replies
Dale_S_Intel
Employee
2,023 Views

The emulator does not truly simulate the mobile device environment, it's more of an approximation of a generic device.  I would suggest trying the Debug tab to see if you can figure out what's going on.  Also, have you tried it on Android?  Does it have the same problem?

If you can give more details about exactly what you're doing I might be able to help more.  Ideally a small example that I could use to reproduce the problem would be helpful.

Dale

 

0 Kudos
Cooper_M_
Beginner
2,023 Views

I do not have access to droid device at the moment. Just iPhone and iPad which yield similar result. I might have made a mistake somewhere in my code that impairs the css and js files from being properly used. It worked before until I added, tested via using emulator thinking it won't change in test environment. 

I'm not sure how to provide samples though. I just know that css/js worked fine before and now it does not work. I'm backtracking through my codes... and stripping it down to see if I can specify location of my mistakes... or something. 

0 Kudos
Dale_S_Intel
Employee
2,023 Views

Yes, I would recommend isolating the problem, if you can do that, I might be able to help.

 

Dale

 

0 Kudos
Cooper_M_
Beginner
2,023 Views

Silly question: is there specific way for me to include a link/script from within HTML using XDK Intel? It doesn't appear at all in testing (on my iPad or iPhone) or do any functions. But both are called from in emulator. I also noticed this working in emulator:

link rel="stylesheet" type="text/css" href="../www/cs/style.css"
script type="text/javascript" src="../www/js/app.js"     /script

But if I enter href/src like "style.css" and "app.js" it doesn't work in emulator?

Edit: saw my mistakes 

Edit 2: I tried debugging but I never understood it before. I don't understand the purpose of provisioning and P12 files. Can you explain a little? 

0 Kudos
John_H_Intel2
Employee
2,023 Views

Provisioning profiles and p12 are only used for building and IPA for installing on a device. You must have an apple developer account to be able to build and test on device. If you are not familiar with these, use google and it will help you understand the process.

 

0 Kudos
Cooper_M_
Beginner
2,023 Views

I googled a bit on it. I have heard of it before but I didn't have the opportunity to explore into it. I recall that you have to be paid member to create an app using provisioning file but I am not trying to build apps yet. I just want to practice. So does that mean I can't really use debug feature unless I paid for provisioning file/p12 file? 

0 Kudos
John_H_Intel2
Employee
2,023 Views

That is correct. You must be a paid Apple Developer member. Apple charges you $99/year, which goes 100% to them, not us.

0 Kudos
Cooper_M_
Beginner
2,023 Views

I see... What a disappointing news. Thank you. 

0 Kudos
John_H_Intel2
Employee
2,023 Views

Sorry, we dont make the rules for iOS builds, Apple does :(

0 Kudos
Cooper_M_
Beginner
2,023 Views

No need to apologize! I appreciate the help! 

0 Kudos
Pamela_H_Intel
Moderator
2,023 Views

@Cooper - at WWDC last month Apple announced that individuals no longer need to pay the $99 for testing (as long as you are at least 13 years old). It looks like that is the case . . . go to the following link and scroll to Benefits and Resources - Test on Device is there, listed in the free column.

https://developer.apple.com/support/compare-memberships/

0 Kudos
Cooper_M_
Beginner
2,023 Views

Thank you! I will look into it. :) 

0 Kudos
Reply