Good afternoon,
I’d like to use OneSignal plugin, nice dashboard, api, multiplatform…
But I already have a custom backend service, using platform specific ids (gcm and apn) so I’d like to retrieve that id from a OneSignal’s QML element.
I’m trying this:
OneSignal{
id: onesignal
appId: “1c016…” // replace with your OneSignal appId
googleProjectNumber: “75…” // replace with your googleProjectNumber
}
function getRegId(){
console.log(“regId:”, onesignal.registrationId)
}
and I get this on console: I/OneSignal(13053): Device registered, Google Registration ID = APA91bGMNLe6r5QLxptA . . .
but when I try to call getRegId() all I see is an empty string: (getRegId): qml: regId:
Is there anything I am missing?