简体   繁体   English

如何从SIM卡中检测日期时间?

[英]How to detect date time from the SIM card?

I'm developing offline app using Cordova and i need to get the time from the SIM card and i searched for plugins that can get the time from the SIM card 我正在使用Cordova开发离线应用程序,我需要从SIM卡获取时间,并且我搜索了可以从SIM卡获取时间的插件

any solution or idea like a new way to get the time from offline mode will be appreciated 任何解决方案或想法,例如从离线模式获取时间的新方法,将不胜感激

Check out this plugin, maybe it helps: 看看这个插件,也许有帮助:

https://www.npmjs.com/package/cordova-plugin-sim https://www.npmjs.com/package/cordova-plugin-sim

i fixed this issue by making a background service that can validate the time and if the user changed the time in offline mode then he should go online 我通过提供可以验证时间的后台服务来解决此问题,如果用户在离线模式下更改了时间,则他应该上网

thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM