I am modifying an iOS
Application, currently application is getting local date and time from iPhone and sending it to SMS/GSM server using Messages Application in the mobile.
Currently application is working without internet and we need to keep it working without internet. I can't get the local device time anymore because the user can easily change the device time and send the wrong data.
Is there anyway to get Date and Time of SIM card network without Internet access on that device?
I reviewed the following article but it only help getting time through internet and in my case there is no involvement of internet. Get Date and Time from Apple Server
Getting local device time using this code:
let timeFormatter = DateFormatter()
timeFormatter.dateFormat = "MM/dd/yyyy HH:mm:ss"
let currentDateTime :String = timeFormatter.string(from: NSDate() as Date)
I hope there will be some solution.