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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Why the same JS code in the Android mobile phone system can display results, and has no effect on iphone cell phone?
Hi Crystal,
What JavaScript code you use?
The JavaScript code like this:
var ccid = localStorage.getItem("_copCouponID");
if (ccid == null){
create_copcoupon.execute();
} else {
update_copcoupon.execute();
}
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.
Crystal,
What happens when you run this on iPhone? Nothing?
Yes,so what's wrong?
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.
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.
Crystal,
We need the exact steps to reproduce this behaviour. Where does your friend run this code?
Hi,
I have resolved the problem, because the Javascript code I write in IOS is not compatible, so I modified the code. Thank you!