InterviewSolution
Saved Bookmarks
| 1. |
How can you make your ionic app work in offline mode ? |
|
Answer» Offline mode means users can still use the app when network CONNECTION is lost. This can be done by CACHING API DATA so that it can be used later and a network service to DETECT when your network is lost or available. To make your app work in offline mode, you need to create an offline manager service which stores requests made during that time so that we can send the requests when network is available. For this , ionic has the ionic/storage and ionic-native/network modules. The Network MODULE provides onConnect() and onDisconnect() events which can be used to track network changes. |
|