Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230053

Application not working correctly on IOS platform

$
0
0

Hi,
The previous issue about redirection is solved on iOS device, but now new problem for local storage has arise. Well the local storage is working on android device , but I am not able to get local data on iOS device. Below is code

this.storage.set('userData', {
          userName: response.userName,
          userId: this.filteredList[0].userId,
          adminId: response.adminId,
          adminName: response.adminName,
          roleId: response.roleId,
          roleName: response.roleName,
          action: response.action,
          adminRoleName:response.adminRoleName
        });

and in the second page

getLocalData() {
    this.storage.get('userData').then((data) => {
      this.userId = data.userId;
      this.roleName = data.roleName;
      this.action = data.action;
      console.log("userId ", this.userId);
    })
  }

Viewing all articles
Browse latest Browse all 230053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>