Page 1 of 2

Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Mon Nov 25, 2013 8:50 am
by Crystal

Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Mon Nov 25, 2013 9:08 am
by Kateryna Grynko

Hi Crystal,

What JavaScript code you use?


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Mon Nov 25, 2013 9:45 am
by Crystal

The JavaScript code like this:

var ccid = localStorage.getItem("_copCouponID");
if (ccid == null){
create_copcoupon.execute();
} else {
update_copcoupon.execute();
}


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Mon Nov 25, 2013 9:52 am
by Crystal

When I run on Android phones can judge whether you want to create or modify according to CCID, and not available to iphone mobile phone.


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Mon Nov 25, 2013 12:54 pm
by Kateryna Grynko

Crystal,

What happens when you run this on iPhone? Nothing?


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Tue Nov 26, 2013 12:57 am
by Crystal

Yes,so what's wrong?


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Tue Nov 26, 2013 1:21 am
by Alena Prykhodko

What iOS version is it? Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a http://docs.appery.io/documentation/s...
Also tell steps to test.


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Tue Nov 26, 2013 6:13 am
by Crystal

I am so sorry that I don't have a complete project, I just saw my friend show me the results, the same Javascript code in iphone cell phone has no effect.


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Tue Nov 26, 2013 9:01 am
by Kateryna Grynko

Crystal,

We need the exact steps to reproduce this behaviour. Where does your friend run this code?


Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?

Posted: Thu Nov 28, 2013 9:19 am
by Crystal

Hi,
I have resolved the problem, because the Javascript code I write in IOS is not compatible, so I modified the code. Thank you!