I am using Android Webview with OneSignal integration. I need to get the OneSignal player ID. This is the tutorial picture
I have added all the details mentioned in the tutorial. Now when I want to see the id in console but I use this code
<script type="text/javascript">
function init(oneSignalUserID){
console.log(oneSignalUserID);
}
</script>
It return nothing. Please help me how to output the id so I can make wordpress ajax call php function for save into database.
Thanks