Questions
JavaScript Bridge OneSignalDeviceInfo Not Working on Android
4 months ago by Lincoln Porter
We are using the javascript bridge in our application, not the NPM package, to get the deviceinfo to update the external id within onesignal. This works perfectly for iOS but not Android. Testing is being done via the Meidan Simulator.
if(window.median)
function median_onesignal_info(oneSignalInfo) {
if(oneSignalInfo.externalId == undefined){
median.onesignal.externalUserId.set({
externalId: "#####"
});
}
}
}
I've even added an alert within window.median before the median_onesignal_info function which never gets called/reached on Android. Again, everything works on iOS.
Please help.