How can save array in native storage


my code

   this.nativeStorage.setItem('item', { service_id:, count_order: this.count_order })
      () => alert("ok"),
      error => alert(error)


And this doesn’t work?
If setItem only accepts strings, JSON.stringify is your friend.

Also, is there a reason why you use NativeStorage instead of just Ionic Storage?


Additionally, I’m not seeing any arrays here.


Probably another poor developer that was raised on PHP as I was :wink: :stuck_out_tongue: