I try to save onesignal playerid into storage. I use this code below;
window["plugins"].OneSignal.getIds(function(ids) { console.log(ids