Software Archive
Read-only legacy content
17061 Discussões

Test vs Emulator result?

Cooper_M_
Principiante
2.026 Visualizações

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 Respostas
Dale_S_Intel
Funcionário
2.026 Visualizações

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

 

Cooper_M_
Principiante
2.026 Visualizações

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. 

Dale_S_Intel
Funcionário
2.026 Visualizações

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

 

Dale

 

Cooper_M_
Principiante
2.026 Visualizações

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? 

John_H_Intel2
Funcionário
2.026 Visualizações

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.

 

Cooper_M_
Principiante
2.026 Visualizações

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? 

John_H_Intel2
Funcionário
2.026 Visualizações

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

Cooper_M_
Principiante
2.026 Visualizações

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

John_H_Intel2
Funcionário
2.026 Visualizações

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

Cooper_M_
Principiante
2.026 Visualizações

No need to apologize! I appreciate the help! 

Pamela_H_Intel
Moderador
2.026 Visualizações

@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/

Cooper_M_
Principiante
2.026 Visualizações

Thank you! I will look into it. :) 

Responder